to-json.d.ts 540 B

1234567891011
  1. import { ErrorLike, ErrorPOJO } from "./types";
  2. /**
  3. * Custom JSON serializer for Error objects.
  4. * Returns all built-in error properties, as well as extended properties.
  5. */
  6. export declare function toJSON<E extends ErrorLike>(this: E): ErrorPOJO & E;
  7. /**
  8. * Returns own, inherited, enumerable, non-enumerable, string, and symbol keys of `obj`.
  9. * Does NOT return members of the base Object prototype, or the specified omitted keys.
  10. */
  11. export declare function getDeepKeys(obj: object, omit?: Array<string | symbol>): Set<string | symbol>;