allKeys.d.ts 382 B

12345678910111213141516
  1. declare namespace allKeys {
  2. interface IOptions {
  3. prototype?: boolean;
  4. unenumerable?: boolean;
  5. }
  6. }
  7. declare function allKeys(
  8. obj: any,
  9. options: { symbol: true } & allKeys.IOptions
  10. ): Array<string | Symbol>;
  11. declare function allKeys(
  12. obj: any,
  13. options?: ({ symbol: false } & allKeys.IOptions) | allKeys.IOptions
  14. ): string[];
  15. export = allKeys;