|
| 1 | +import * as _util from 'util'; |
| 2 | +import * as _buffer from 'buffer'; |
| 3 | +import * as _cp from 'child_process'; |
| 4 | +import * as _os from 'os'; |
| 5 | +import * as _v8 from 'v8'; |
| 6 | +import * as _vm from 'vm'; |
| 7 | +import * as _path from 'path'; |
| 8 | +import * as _url from 'url'; |
| 9 | +import * as _sd from 'string_decoder'; |
| 10 | +import * as _qs from 'querystring'; |
| 11 | +import * as _querystring from 'querystring'; |
| 12 | +import * as _assert from 'assert'; |
| 13 | +import * as _stream from 'stream'; |
| 14 | +import * as _fs from 'fs'; |
| 15 | +import * as _crypto from 'crypto'; |
| 16 | +import * as _zlib from 'zlib'; |
| 17 | +import * as _readline from 'readline'; |
| 18 | +import * as _ph from 'perf_hooks'; |
| 19 | +import * as _ah from 'async_hooks'; |
| 20 | +import * as _timers from 'timers'; |
| 21 | +import * as _events from 'events'; |
| 22 | +import * as _dns from 'dns'; |
| 23 | +import * as _net from 'net'; |
| 24 | +import * as _tls from 'tls'; |
| 25 | +import * as _http from 'http'; |
| 26 | +import * as _https from 'https'; |
| 27 | +import * as _http2 from 'http2'; |
| 28 | +import * as _dgram from 'dgram'; |
| 29 | + |
| 30 | +declare global { |
| 31 | + namespace node { |
| 32 | + const util: typeof _util; |
| 33 | + const buffer: typeof _buffer; |
| 34 | + const child_process: typeof _cp; |
| 35 | + const childProcess: typeof _cp; |
| 36 | + const os: typeof _os; |
| 37 | + const v8: typeof _v8; |
| 38 | + const vm: typeof _vm; |
| 39 | + const path: typeof _path; |
| 40 | + const url: typeof _url; |
| 41 | + const StringDecoder: typeof _sd; |
| 42 | + const querystring: typeof _qs; |
| 43 | + const assert: typeof _assert; |
| 44 | + const stream: typeof _stream; |
| 45 | + const fs: typeof _fs; |
| 46 | + const fsp: typeof _fs.promises; |
| 47 | + const crypto: typeof _crypto; |
| 48 | + const zlib: typeof _zlib; |
| 49 | + const readline: typeof _readline; |
| 50 | + const perf_hooks: typeof _ph; |
| 51 | + const perfHooks: typeof _ph; |
| 52 | + const async_hooks: typeof _ah; |
| 53 | + const asyncHooks: typeof _ah; |
| 54 | + const timers: typeof _timers; |
| 55 | + const events: typeof _events; |
| 56 | + const dns: typeof _dns; |
| 57 | + const net: typeof _net; |
| 58 | + const tls: typeof _tls; |
| 59 | + const http: typeof _http; |
| 60 | + const https: typeof _https; |
| 61 | + const http2: typeof _http2; |
| 62 | + const dgram: typeof _dgram; |
| 63 | + } |
| 64 | +} |
0 commit comments