Last change
on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
547 bytes
|
Line | |
---|
1 | declare module 'domain' {
|
---|
2 | import EventEmitter = require('events');
|
---|
3 |
|
---|
4 | class Domain extends EventEmitter implements NodeJS.Domain {
|
---|
5 | run<T>(fn: (...args: any[]) => T, ...args: any[]): T;
|
---|
6 | add(emitter: EventEmitter | NodeJS.Timer): void;
|
---|
7 | remove(emitter: EventEmitter | NodeJS.Timer): void;
|
---|
8 | bind<T extends Function>(cb: T): T;
|
---|
9 | intercept<T extends Function>(cb: T): T;
|
---|
10 | members: Array<EventEmitter | NodeJS.Timer>;
|
---|
11 | enter(): void;
|
---|
12 | exit(): void;
|
---|
13 | }
|
---|
14 |
|
---|
15 | function create(): Domain;
|
---|
16 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.