Endo
    Preparing search index...

    Type Alias infer<P>

    Infer the TypeScript type that a Pattern matches.

    Type Parameters

    • P
    const shape = M.splitRecord({ name: M.string(), age: M.nat() });
    type Person = M.infer<typeof shape>;
    // { name: string; age: bigint }