BARGS
    Preparing search index...

    Type Alias InferParserPositionals<T>

    InferParserPositionals: T extends CallablePositionalsParser<infer P>
        ? P
        : T extends Parser<unknown, infer P> ? P : never

    Extract the inferred positionals tuple type from a CallablePositionalsParser or Parser.

    Type Parameters

    • T
    const positionals = pos.positionals(
    pos.string({ name: 'source', required: true }),
    pos.string({ name: 'dest', required: true }),
    );

    // Extract the type for use elsewhere
    type Positionals = InferParserPositionals<typeof positionals>;
    // readonly [string, string]