debuggable.d.ts 877 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import {Callable} from './types.js';
  2. import {Debugger} from './create-debugger.js';
  3. /**
  4. * Debuggable options.
  5. */
  6. export type DebuggableOptions = {
  7. namespace?: string,
  8. noEnvironmentNamespace?: boolean,
  9. noInstantiationMessage?: boolean,
  10. }
  11. /**
  12. * Debuggable.
  13. */
  14. export class Debuggable {
  15. /**
  16. * Instantiation message.
  17. */
  18. static INSTANTIATION_MESSAGE: string;
  19. /**
  20. * Debug.
  21. */
  22. debug: Debugger;
  23. /**
  24. * Debug.
  25. */
  26. ctorDebug: Debugger;
  27. /**
  28. * Возвращает функцию-отладчик с сегментом пространства имен
  29. * указанного в параметре метода.
  30. *
  31. * @param method
  32. * @protected
  33. */
  34. protected getDebuggerFor(method: Callable): Debugger;
  35. /**
  36. * Constructor.
  37. *
  38. * @param container
  39. * @param options
  40. */
  41. constructor(options?: DebuggableOptions);
  42. }