Report a bug
π Search Terms
type.fn
π§© Context
- ArkType version: 2.2
- TypeScript version (5.1+): 5.9, 6.0
π§βπ» Repro
type.fn.raw is always undefined, but exists at the type-level (typed as a function):
import { type } from "arktype"
type.fn.raw() // throws type.fn.raw is not a function
// ^? FnParser<{}>.raw: (...args: unknown[]) => (...args: unknown[]) => unknown
// An alias of fn with no type-level validation or inference.
// Useful when wrapping fn or using it to parse a dynamic definition.
Playground: Link
Edit: Fixed an incorrect playground link.
Report a bug
π Search Terms
type.fn
π§© Context
π§βπ» Repro
type.fn.rawis always undefined, but exists at the type-level (typed as a function):Playground: Link
Edit: Fixed an incorrect playground link.