remeda
Version:
A utility library for JavaScript and Typescript.
17 lines (15 loc) • 711 B
TypeScript
import { ToString } from "./ToString-DKW-jYvM.js";
//#region src/internal/types/EnumerableStringKeyOf.d.ts
/**
* A union of all keys of T which are not symbols, and where number keys are
* converted to strings, following the definition of `Object.keys` and
* `Object.entries`.
*
* Inspired and largely copied from [`sindresorhus/ts-extras`](https://github.com/sindresorhus/ts-extras/blob/44f57392c5f027268330771996c4fdf9260b22d6/source/object-keys.ts).
*
* @see EnumerableStringKeyedValueOf
*/
type EnumerableStringKeyOf<T> = Required<T> extends Record<infer K, unknown> ? ToString<K> : never;
//#endregion
export { EnumerableStringKeyOf };
//# sourceMappingURL=EnumerableStringKeyOf-BROS2pTU.d.ts.map