Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CustomConsole.d.ts 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. /// <reference types="node" />
  8. import { Console } from 'console';
  9. import { InspectOptions } from 'util';
  10. import type { LogMessage, LogType } from './types';
  11. declare type Formatter = (type: LogType, message: LogMessage) => string;
  12. export default class CustomConsole extends Console {
  13. private _stdout;
  14. private _stderr;
  15. private _formatBuffer;
  16. private _counters;
  17. private _timers;
  18. private _groupDepth;
  19. Console: typeof Console;
  20. constructor(stdout: NodeJS.WriteStream, stderr: NodeJS.WriteStream, formatBuffer?: Formatter);
  21. private _log;
  22. private _logError;
  23. assert(value: unknown, message?: string | Error): asserts value;
  24. count(label?: string): void;
  25. countReset(label?: string): void;
  26. debug(firstArg: unknown, ...args: Array<unknown>): void;
  27. dir(firstArg: unknown, options?: InspectOptions): void;
  28. dirxml(firstArg: unknown, ...args: Array<unknown>): void;
  29. error(firstArg: unknown, ...args: Array<unknown>): void;
  30. group(title?: string, ...args: Array<unknown>): void;
  31. groupCollapsed(title?: string, ...args: Array<unknown>): void;
  32. groupEnd(): void;
  33. info(firstArg: unknown, ...args: Array<unknown>): void;
  34. log(firstArg: unknown, ...args: Array<unknown>): void;
  35. time(label?: string): void;
  36. timeEnd(label?: string): void;
  37. timeLog(label?: string, ...data: Array<unknown>): void;
  38. warn(firstArg: unknown, ...args: Array<unknown>): void;
  39. getBuffer(): undefined;
  40. }
  41. export {};