Infer a static TypeScript type from a Pattern value. Works like Zod's z.infer<typeof schema>.
z.infer<typeof schema>
const shape = M.splitRecord({ name: M.string(), age: M.nat() });type Person = TypeFromPattern<typeof shape>;// { name: string; age: bigint } Copy
const shape = M.splitRecord({ name: M.string(), age: M.nat() });type Person = TypeFromPattern<typeof shape>;// { name: string; age: bigint }
Infer a static TypeScript type from a Pattern value. Works like Zod's
z.infer<typeof schema>.