Primitives$const$const Callable$const<T>(value: T, options?: SchemaOptions<object>): ConstType<T>Create a new EnumType instance with the given options. Example$const(1)$const("foobar")Type parametersT: undefined | JsonValueParametersvalue: Toptions: SchemaOptions<object> = {}Additional options to pass to the constant.Returns ConstType<T>
Create a new
EnumType
instance with the given options.Example