Skip to main content

CommonKeys

Callable

  • CommonKeys<T>(record: Partial<Record<T, unknown>>): T[]

  • A Object.keys variant annotated to return respect literal key types


    Type parameters

    • T: string

    Parameters

    • record: Partial<Record<T, unknown>>

      A record with string-based keys

    Returns T[]

    The keys in the passed record