index.d.ts 1.2 KB

1234567891011121314151617181920212223242526272829
  1. declare const logger: {
  2. readonly trace: (message: any, ...rest: any[]) => void;
  3. readonly debug: (message: any, ...rest: any[]) => void;
  4. readonly info: (message: any, ...rest: any[]) => void;
  5. readonly warn: (message: any, ...rest: any[]) => void;
  6. readonly error: (message: any, ...rest: any[]) => void;
  7. readonly log: (message: any, ...rest: any[]) => void;
  8. };
  9. declare const once: {
  10. (type: keyof typeof logger): (message: any, ...rest: any[]) => void;
  11. clear(): void;
  12. trace: (message: any, ...rest: any[]) => void;
  13. debug: (message: any, ...rest: any[]) => void;
  14. info: (message: any, ...rest: any[]) => void;
  15. warn: (message: any, ...rest: any[]) => void;
  16. error: (message: any, ...rest: any[]) => void;
  17. log: (message: any, ...rest: any[]) => void;
  18. };
  19. declare const deprecate: (message: any, ...rest: any[]) => void;
  20. declare const pretty: {
  21. (type: keyof typeof logger): (message: any, ...args: any[]) => void;
  22. trace: (message: any, ...args: any[]) => void;
  23. debug: (message: any, ...args: any[]) => void;
  24. info: (message: any, ...args: any[]) => void;
  25. warn: (message: any, ...args: any[]) => void;
  26. error: (message: any, ...args: any[]) => void;
  27. };
  28. export { deprecate, logger, once, pretty };