Internal
A type definition wrapper that preserves type information. Used to define and infer types in the type system.
const stringType = defineType<string>()const numberType = defineType<number>() Copy
const stringType = defineType<string>()const numberType = defineType<number>()
The type to wrap (defaults to any)
Optional
A type definition wrapper that preserves type information. Used to define and infer types in the type system.
Example