kit
    Preparing search index...

    Variable getKeys

    getKeys: <T extends object>(obj: T) => (keyof T)[] = ...

    Type safe replacement for Object.keys(myObject) to iterate over a record without loosing the key's types in simple strings.

    Type Declaration

      • <T extends object>(obj: T): (keyof T)[]
      • Type Parameters

        • T extends object

        Parameters

        • obj: T

        Returns (keyof T)[]