Type Alias ExclusiveKey<K, M, R>Protected

ExclusiveKey<K, M, R>: keyof {
        [E in keyof Exactify<M> as K extends keyof Exactify<M[E]> | R
            ? K
            : never]: never
    } extends never
    ? K
    : never

Tests a string literal type to determine whether it is a key of any Entity in an EntityMap or is a member of a union of reserved keys.

Type Parameters

  • K extends string

    The string literal type to test.

  • M extends EntityMap

    The EntityMap.

  • R extends string = never

    The reserved set of string literal types.

K if K is exclusive or never otherwise.