typedKeys | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function typedKeys

    • Returns an array of keys of the enumerable own properties of an object, with exact types. Use when no extra properties are expected on the object. Exists because Object.keys returns always string as key type.

      Type Parameters

      • T extends object

      Parameters

      • obj: T

        Object that contains the properties and methods

      Returns (keyof T & string)[]