CredentialNames<T>: T extends {
        requiredCredentialNames: readonly (infer U extends string)[];
    }
    ? U
    : never

Extracts the names of required credentials from a type.

Type Parameters

  • T

    The type containing credential requirements.

Returns

The string literal type of credential names.