debug.d.ts 614 B

12345678910111213141516
  1. declare const MAX_ARGUMENT_LENGTH = 200;
  2. /**
  3. * helper function that tried to get a string value for
  4. * arbitrary "debug" arg
  5. */
  6. declare function getStringValue(v: any): string | void;
  7. /**
  8. * helper function that redacts a string representation of a "debug" arg
  9. */
  10. declare function genRedactedString(str: string, maxLen: number): string;
  11. /**
  12. * a wrapper for the `debug` module, used to generate
  13. * "debug functions" that trim the values in their output
  14. */
  15. export default function genDebugFunction(namespace: string): (...args: any[]) => void;
  16. export { MAX_ARGUMENT_LENGTH, getStringValue, genRedactedString };