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

stringProp

Creates a string property schema.

Param

Default string value

Param

Property options

Call Signature

stringProp(defaultValue, options): PropertySchema<string, "string", true>

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

Creates a string property schema with variable support.

Parameters

defaultValue

string

options

PropertyOptionsWithVariable

Returns

PropertySchema<string, "string", true>

Call Signature

stringProp(defaultValue, options?): PropertySchema<string, "string", false>

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

Creates a string property schema without variable support.

Parameters

defaultValue

string

options?

PropertyOptionsNoVariable

Returns

PropertySchema<string, "string", false>