augment-vir - v32.2.2
    Preparing search index...

    Type Alias HasMultipleCallSignatures<T>

    HasMultipleCallSignatures: T extends {
        (...arguments_: A): unknown;
        (...arguments_: B): unknown;
    }
        ? B extends A ? A extends B ? false : true : true
        : false

    Tests if the given function has multiple call signatures. Needed to handle the case of a single call signature with properties, as multiple call signatures cannot currently be supported due to a TypeScript limitation.

    Copied from the internal HasMultipleCallSignatures type in the type-fest package so that this package's public types do not depend on type-fest (see the note in type-checks.ts).

    Type Parameters

    • T extends (...arguments_: any[]) => unknown