@jossmac/lil-libs
    Preparing search index...

    Function typedKeys

    • Typed alternative to Object.keys() that preserves key inference.

      • T extends object
      • value: T

        Object whose own enumerable string keys to collect.

      An array typed as (keyof T)[] rather than string[].

      const obj = { foo: 1, bar: "hello" };
      const keys = typedKeys(obj);
      // ^? ("foo" | "bar")[]