Skip to content

StringType

Defined in: packages/schema/src/types/string.ts:3

  • ExpressionValueType<string>

new StringType(__namedParameters): StringType

Defined in: packages/schema/src/types/base.ts:39

TypeParams<string> = {}

StringType

ExpressionValueType<string>.constructor

readonly input_: Value

Defined in: packages/schema/src/types/base.ts:34

ExpressionValueType.input_


readonly output_: string

Defined in: packages/schema/src/types/base.ts:35

ExpressionValueType.output_

cast(value): string

Defined in: packages/schema/src/types/expression.ts:43

any

string

ExpressionValueType.cast


protected cast_(value): string

Defined in: packages/schema/src/types/string.ts:4

any

string

ExpressionValueType.cast_


parse(value, ctx): Result<string, SchemaError>

Defined in: packages/schema/src/types/base.ts:58

Value | undefined

TypeParseContext

Result<string, SchemaError>

ExpressionValueType.parse


protected parse_(value): Result<string, SchemaError>

Defined in: packages/schema/src/types/expression.ts:31

Value | undefined

Result<string, SchemaError>

ExpressionValueType.parse_


protected validate_(value): Result<void, string>

Defined in: packages/schema/src/types/base.ts:48

string

Result<void, string>

ExpressionValueType.validate_