@pleisto/active-support
    Preparing search index...

    Type Alias infer<pattern>

    infer: InvertPattern<NoInfer<pattern>, unknown>

    P.infer<typeof somePattern> will return the type of the value matched by this pattern.

    Read the documentation for P.infer on GitHub

    Type Parameters

    • pattern
    const userPattern = { name: P.string }
    type User = P.infer<typeof userPattern>