Primitives$string$string Callable$string(options?: SchemaOptions<StringOptions, string>): StringTypeCreate a new StringType instance with the given options. Example$string$string()$string({maxLength: 3})Parametersoptions: SchemaOptions<StringOptions, string> = {}Additional options to pass to the string.Returns StringTypeA StringType.
Create a new
StringType
instance with the given options.Example