Typed wrapper around Object.keys that preserves the key type.
Object.keys
The source object.
objectKeys({ a: 1, b: 2 }) // => ["a", "b"] (typed as ("a" | "b")[]) Copy
objectKeys({ a: 1, b: 2 }) // => ["a", "b"] (typed as ("a" | "b")[])
Typed wrapper around
Object.keysthat preserves the key type.