errors.d.ts 800 B

1234567891011121314151617181920212223242526272829303132
  1. /// <reference types="node" />
  2. declare const g: typeof globalThis | NodeJS.Global;
  3. declare class AssertionError extends g.Error {
  4. generatedMessage: any;
  5. name: any;
  6. code: any;
  7. actual: any;
  8. expected: any;
  9. operator: any;
  10. constructor(options: any);
  11. }
  12. declare function message(key: any, args: any): any;
  13. declare function E(sym: any, val: any): void;
  14. export declare const Error: {
  15. new (key: any, ...args: any[]): {
  16. [x: string]: any;
  17. };
  18. [x: string]: any;
  19. };
  20. export declare const TypeError: {
  21. new (key: any, ...args: any[]): {
  22. [x: string]: any;
  23. };
  24. [x: string]: any;
  25. };
  26. export declare const RangeError: {
  27. new (key: any, ...args: any[]): {
  28. [x: string]: any;
  29. };
  30. [x: string]: any;
  31. };
  32. export { message, AssertionError, E, };