Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

numberProp

Creates a number property schema.

Param

Default value when not specified

Param

Property options

Call Signature

numberProp(defaultValue, options): PropertySchema<number, "number", true>

Defined in: packages/sigma/src/primitives/schema.ts:116

Creates a number property schema with variable support.

Parameters

defaultValue

number

options

PropertyOptionsWithVariable

Returns

PropertySchema<number, "number", true>

Call Signature

numberProp(defaultValue, options?): PropertySchema<number, "number", false>

Defined in: packages/sigma/src/primitives/schema.ts:125

Creates a number property schema without variable support.

Parameters

defaultValue

number

options?

PropertyOptionsNoVariable

Returns

PropertySchema<number, "number", false>