util.d.ts 793 B

1234567891011121314151617181920
  1. /**
  2. * Minimal implementation of Node.js util.inherits function.
  3. * Sets up prototype inheritance between constructor functions.
  4. */
  5. export declare function inherits(ctor: any, superCtor: any): void;
  6. /**
  7. * Minimal implementation of Node.js util.promisify function.
  8. * Converts callback-based functions to Promise-based functions.
  9. */
  10. export declare function promisify(fn: Function): Function;
  11. /**
  12. * Minimal implementation of Node.js util.inspect function.
  13. * Converts a value to a string representation for debugging.
  14. */
  15. export declare function inspect(value: any): string;
  16. /**
  17. * Minimal implementation of Node.js util.format function.
  18. * Provides printf-style string formatting with basic placeholder support.
  19. */
  20. export declare function format(template: string, ...args: any[]): string;