Creates a TypeDef wrapper for a given type.
const stringType = defineType<string>()const envDataType = defineType<{ env: Record<string, string> }>() Copy
const stringType = defineType<string>()const envDataType = defineType<{ env: Record<string, string> }>()
The type to wrap (defaults to never)
A TypeDef instance wrapping the specified type
Creates a TypeDef wrapper for a given type.
Example