Libraries
    Preparing search index...

    Type Alias FixedMethods<TRawMethods, TBase>

    FixedMethods: {
        [K in keyof TRawMethods]: TRawMethods[K] extends (
            this: any,
            ...args: infer A,
        ) => any
            ? (
                ...args: A,
            ) => TBase & FixedMethods<TRawMethods, TBase> & HiddenExtensionMethods
            : TRawMethods[K]
    }

    Overrides extension method return types so they always return the full extended builder type. This ensures extension methods preserve all other extension methods through chaining (e.g. s.string().email().slug()).

    The self-reference (FixedMethods appears in its own mapped return types) is resolved lazily by TypeScript because the recursion sits inside a function-return position within a conditional mapped type.

    Type Parameters

    • TRawMethods
    • TBase