Skip to content

InferDef

InferDef<T> = [type.infer<T>] extends [never] ? unknown : type.infer<T>

Defined in: src/schema/index.ts:634

Infer the TypeScript type of an arktype string def, falling back to unknown for defs arktype cannot statically resolve (e.g. custom scope aliases, which are validated at runtime instead).

T extends string