index.d.ts 351 B

12345678910111213141516
  1. /**
  2. Lowercase the keys of an object.
  3. @returns A new object with the keys lowercased.
  4. @example
  5. ```
  6. import lowercaseKeys = require('lowercase-keys');
  7. lowercaseKeys({FOO: true, bAr: false});
  8. //=> {foo: true, bar: false}
  9. ```
  10. */
  11. declare function lowercaseKeys<T extends unknown>(object: {[key: string]: T}): {[key: string]: T};
  12. export = lowercaseKeys;