typespeed 2.4.1 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/dist/database.decorator.js +2 -4
  2. package/dist/typespeed.js +4 -1
  3. package/introduction/tsconfig.json +20 -0
  4. package/package.json +2 -4
  5. package/src/database.decorator.ts +2 -4
  6. package/src/typespeed.ts +4 -1
  7. package/app/node_modules/.package-lock.json +0 -134
  8. package/app/node_modules/@types/body-parser/LICENSE +0 -21
  9. package/app/node_modules/@types/body-parser/README.md +0 -16
  10. package/app/node_modules/@types/body-parser/index.d.ts +0 -107
  11. package/app/node_modules/@types/body-parser/package.json +0 -58
  12. package/app/node_modules/@types/connect/LICENSE +0 -21
  13. package/app/node_modules/@types/connect/README.md +0 -16
  14. package/app/node_modules/@types/connect/index.d.ts +0 -93
  15. package/app/node_modules/@types/connect/package.json +0 -32
  16. package/app/node_modules/@types/express/LICENSE +0 -21
  17. package/app/node_modules/@types/express/README.md +0 -16
  18. package/app/node_modules/@types/express/index.d.ts +0 -136
  19. package/app/node_modules/@types/express/package.json +0 -45
  20. package/app/node_modules/@types/express-serve-static-core/LICENSE +0 -21
  21. package/app/node_modules/@types/express-serve-static-core/README.md +0 -16
  22. package/app/node_modules/@types/express-serve-static-core/index.d.ts +0 -1281
  23. package/app/node_modules/@types/express-serve-static-core/package.json +0 -55
  24. package/app/node_modules/@types/mime/LICENSE +0 -21
  25. package/app/node_modules/@types/mime/Mime.d.ts +0 -10
  26. package/app/node_modules/@types/mime/README.md +0 -16
  27. package/app/node_modules/@types/mime/index.d.ts +0 -35
  28. package/app/node_modules/@types/mime/lite.d.ts +0 -7
  29. package/app/node_modules/@types/mime/package.json +0 -29
  30. package/app/node_modules/@types/node/LICENSE +0 -21
  31. package/app/node_modules/@types/node/README.md +0 -16
  32. package/app/node_modules/@types/node/assert/strict.d.ts +0 -8
  33. package/app/node_modules/@types/node/assert.d.ts +0 -961
  34. package/app/node_modules/@types/node/async_hooks.d.ts +0 -518
  35. package/app/node_modules/@types/node/buffer.d.ts +0 -2323
  36. package/app/node_modules/@types/node/child_process.d.ts +0 -1399
  37. package/app/node_modules/@types/node/cluster.d.ts +0 -410
  38. package/app/node_modules/@types/node/console.d.ts +0 -412
  39. package/app/node_modules/@types/node/constants.d.ts +0 -18
  40. package/app/node_modules/@types/node/crypto.d.ts +0 -3973
  41. package/app/node_modules/@types/node/dgram.d.ts +0 -545
  42. package/app/node_modules/@types/node/diagnostics_channel.d.ts +0 -192
  43. package/app/node_modules/@types/node/dns/promises.d.ts +0 -370
  44. package/app/node_modules/@types/node/dns.d.ts +0 -660
  45. package/app/node_modules/@types/node/dom-events.d.ts +0 -126
  46. package/app/node_modules/@types/node/domain.d.ts +0 -170
  47. package/app/node_modules/@types/node/events.d.ts +0 -682
  48. package/app/node_modules/@types/node/fs/promises.d.ts +0 -1159
  49. package/app/node_modules/@types/node/fs.d.ts +0 -3976
  50. package/app/node_modules/@types/node/globals.d.ts +0 -303
  51. package/app/node_modules/@types/node/globals.global.d.ts +0 -1
  52. package/app/node_modules/@types/node/http.d.ts +0 -1714
  53. package/app/node_modules/@types/node/http2.d.ts +0 -2133
  54. package/app/node_modules/@types/node/https.d.ts +0 -542
  55. package/app/node_modules/@types/node/index.d.ts +0 -134
  56. package/app/node_modules/@types/node/inspector.d.ts +0 -2741
  57. package/app/node_modules/@types/node/module.d.ts +0 -115
  58. package/app/node_modules/@types/node/net.d.ts +0 -883
  59. package/app/node_modules/@types/node/os.d.ts +0 -473
  60. package/app/node_modules/@types/node/package.json +0 -237
  61. package/app/node_modules/@types/node/path.d.ts +0 -191
  62. package/app/node_modules/@types/node/perf_hooks.d.ts +0 -625
  63. package/app/node_modules/@types/node/process.d.ts +0 -1488
  64. package/app/node_modules/@types/node/punycode.d.ts +0 -117
  65. package/app/node_modules/@types/node/querystring.d.ts +0 -131
  66. package/app/node_modules/@types/node/readline/promises.d.ts +0 -143
  67. package/app/node_modules/@types/node/readline.d.ts +0 -653
  68. package/app/node_modules/@types/node/repl.d.ts +0 -424
  69. package/app/node_modules/@types/node/stream/consumers.d.ts +0 -12
  70. package/app/node_modules/@types/node/stream/promises.d.ts +0 -42
  71. package/app/node_modules/@types/node/stream/web.d.ts +0 -330
  72. package/app/node_modules/@types/node/stream.d.ts +0 -1440
  73. package/app/node_modules/@types/node/string_decoder.d.ts +0 -67
  74. package/app/node_modules/@types/node/test.d.ts +0 -783
  75. package/app/node_modules/@types/node/timers/promises.d.ts +0 -93
  76. package/app/node_modules/@types/node/timers.d.ts +0 -101
  77. package/app/node_modules/@types/node/tls.d.ts +0 -1111
  78. package/app/node_modules/@types/node/trace_events.d.ts +0 -171
  79. package/app/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  80. package/app/node_modules/@types/node/ts4.8/assert.d.ts +0 -961
  81. package/app/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -518
  82. package/app/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2323
  83. package/app/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1399
  84. package/app/node_modules/@types/node/ts4.8/cluster.d.ts +0 -410
  85. package/app/node_modules/@types/node/ts4.8/console.d.ts +0 -412
  86. package/app/node_modules/@types/node/ts4.8/constants.d.ts +0 -18
  87. package/app/node_modules/@types/node/ts4.8/crypto.d.ts +0 -3972
  88. package/app/node_modules/@types/node/ts4.8/dgram.d.ts +0 -545
  89. package/app/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -192
  90. package/app/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -370
  91. package/app/node_modules/@types/node/ts4.8/dns.d.ts +0 -660
  92. package/app/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -126
  93. package/app/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  94. package/app/node_modules/@types/node/ts4.8/events.d.ts +0 -682
  95. package/app/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1138
  96. package/app/node_modules/@types/node/ts4.8/fs.d.ts +0 -3875
  97. package/app/node_modules/@types/node/ts4.8/globals.d.ts +0 -302
  98. package/app/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  99. package/app/node_modules/@types/node/ts4.8/http.d.ts +0 -1651
  100. package/app/node_modules/@types/node/ts4.8/http2.d.ts +0 -2133
  101. package/app/node_modules/@types/node/ts4.8/https.d.ts +0 -542
  102. package/app/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  103. package/app/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2741
  104. package/app/node_modules/@types/node/ts4.8/module.d.ts +0 -115
  105. package/app/node_modules/@types/node/ts4.8/net.d.ts +0 -883
  106. package/app/node_modules/@types/node/ts4.8/os.d.ts +0 -473
  107. package/app/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  108. package/app/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -625
  109. package/app/node_modules/@types/node/ts4.8/process.d.ts +0 -1488
  110. package/app/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  111. package/app/node_modules/@types/node/ts4.8/querystring.d.ts +0 -131
  112. package/app/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -143
  113. package/app/node_modules/@types/node/ts4.8/readline.d.ts +0 -653
  114. package/app/node_modules/@types/node/ts4.8/repl.d.ts +0 -424
  115. package/app/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  116. package/app/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -42
  117. package/app/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -330
  118. package/app/node_modules/@types/node/ts4.8/stream.d.ts +0 -1440
  119. package/app/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  120. package/app/node_modules/@types/node/ts4.8/test.d.ts +0 -784
  121. package/app/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  122. package/app/node_modules/@types/node/ts4.8/timers.d.ts +0 -94
  123. package/app/node_modules/@types/node/ts4.8/tls.d.ts +0 -1111
  124. package/app/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -171
  125. package/app/node_modules/@types/node/ts4.8/tty.d.ts +0 -206
  126. package/app/node_modules/@types/node/ts4.8/url.d.ts +0 -902
  127. package/app/node_modules/@types/node/ts4.8/util.d.ts +0 -2017
  128. package/app/node_modules/@types/node/ts4.8/v8.d.ts +0 -541
  129. package/app/node_modules/@types/node/ts4.8/vm.d.ts +0 -644
  130. package/app/node_modules/@types/node/ts4.8/wasi.d.ts +0 -158
  131. package/app/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -695
  132. package/app/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  133. package/app/node_modules/@types/node/tty.d.ts +0 -206
  134. package/app/node_modules/@types/node/url.d.ts +0 -902
  135. package/app/node_modules/@types/node/util.d.ts +0 -2017
  136. package/app/node_modules/@types/node/v8.d.ts +0 -541
  137. package/app/node_modules/@types/node/vm.d.ts +0 -644
  138. package/app/node_modules/@types/node/wasi.d.ts +0 -158
  139. package/app/node_modules/@types/node/worker_threads.d.ts +0 -695
  140. package/app/node_modules/@types/node/zlib.d.ts +0 -517
  141. package/app/node_modules/@types/qs/LICENSE +0 -21
  142. package/app/node_modules/@types/qs/README.md +0 -16
  143. package/app/node_modules/@types/qs/index.d.ts +0 -62
  144. package/app/node_modules/@types/qs/package.json +0 -65
  145. package/app/node_modules/@types/range-parser/LICENSE +0 -21
  146. package/app/node_modules/@types/range-parser/README.md +0 -55
  147. package/app/node_modules/@types/range-parser/index.d.ts +0 -35
  148. package/app/node_modules/@types/range-parser/package.json +0 -25
  149. package/app/node_modules/@types/send/LICENSE +0 -21
  150. package/app/node_modules/@types/send/README.md +0 -16
  151. package/app/node_modules/@types/send/index.d.ts +0 -231
  152. package/app/node_modules/@types/send/package.json +0 -33
  153. package/app/node_modules/@types/serve-static/LICENSE +0 -21
  154. package/app/node_modules/@types/serve-static/README.md +0 -16
  155. package/app/node_modules/@types/serve-static/index.d.ts +0 -113
  156. package/app/node_modules/@types/serve-static/package.json +0 -38
  157. package/app/node_modules/colors/LICENSE +0 -25
  158. package/app/node_modules/colors/README.md +0 -221
  159. package/app/node_modules/colors/examples/normal-usage.js +0 -82
  160. package/app/node_modules/colors/examples/safe-string.js +0 -79
  161. package/app/node_modules/colors/index.d.ts +0 -136
  162. package/app/node_modules/colors/lib/colors.js +0 -211
  163. package/app/node_modules/colors/lib/custom/trap.js +0 -46
  164. package/app/node_modules/colors/lib/custom/zalgo.js +0 -110
  165. package/app/node_modules/colors/lib/extendStringPrototype.js +0 -110
  166. package/app/node_modules/colors/lib/index.js +0 -13
  167. package/app/node_modules/colors/lib/maps/america.js +0 -10
  168. package/app/node_modules/colors/lib/maps/rainbow.js +0 -12
  169. package/app/node_modules/colors/lib/maps/random.js +0 -11
  170. package/app/node_modules/colors/lib/maps/zebra.js +0 -5
  171. package/app/node_modules/colors/lib/styles.js +0 -95
  172. package/app/node_modules/colors/lib/system/has-flag.js +0 -35
  173. package/app/node_modules/colors/lib/system/supports-colors.js +0 -151
  174. package/app/node_modules/colors/package.json +0 -45
  175. package/app/node_modules/colors/safe.d.ts +0 -48
  176. package/app/node_modules/colors/safe.js +0 -10
  177. package/app/node_modules/colors/themes/generic-logging.js +0 -12
  178. package/app/node_modules/dateformat/LICENSE +0 -20
  179. package/app/node_modules/dateformat/Readme.md +0 -204
  180. package/app/node_modules/dateformat/lib/dateformat.js +0 -1
  181. package/app/node_modules/dateformat/package.json +0 -38
  182. package/app/node_modules/mkdirp/CHANGELOG.md +0 -15
  183. package/app/node_modules/mkdirp/LICENSE +0 -21
  184. package/app/node_modules/mkdirp/bin/cmd.js +0 -68
  185. package/app/node_modules/mkdirp/index.js +0 -31
  186. package/app/node_modules/mkdirp/lib/find-made.js +0 -29
  187. package/app/node_modules/mkdirp/lib/mkdirp-manual.js +0 -64
  188. package/app/node_modules/mkdirp/lib/mkdirp-native.js +0 -39
  189. package/app/node_modules/mkdirp/lib/opts-arg.js +0 -23
  190. package/app/node_modules/mkdirp/lib/path-arg.js +0 -29
  191. package/app/node_modules/mkdirp/lib/use-native.js +0 -10
  192. package/app/node_modules/mkdirp/package.json +0 -44
  193. package/app/node_modules/mkdirp/readme.markdown +0 -266
  194. package/app/node_modules/tinytim/.travis.yml +0 -5
  195. package/app/node_modules/tinytim/README.md +0 -212
  196. package/app/node_modules/tinytim/index.js +0 -1
  197. package/app/node_modules/tinytim/lib/index.js +0 -55
  198. package/app/node_modules/tinytim/lib/tinytim.js +0 -50
  199. package/app/node_modules/tinytim/package.json +0 -24
  200. package/app/node_modules/tinytim/test/files/html.tim +0 -1
  201. package/app/node_modules/tinytim/test/files/string.tim +0 -1
  202. package/app/node_modules/tinytim/test/files/string2.tim +0 -1
  203. package/app/node_modules/tinytim/test/render-file-replace.js +0 -39
  204. package/app/node_modules/tinytim/test/render-replace.js +0 -94
  205. package/app/node_modules/tinytim/test/tim-replace.js +0 -95
  206. package/app/node_modules/tracer/README.md +0 -747
  207. package/app/node_modules/tracer/lib/color_console.js +0 -15
  208. package/app/node_modules/tracer/lib/console.js +0 -165
  209. package/app/node_modules/tracer/lib/dailyfile.js +0 -92
  210. package/app/node_modules/tracer/lib/index.js +0 -10
  211. package/app/node_modules/tracer/lib/settings.js +0 -25
  212. package/app/node_modules/tracer/lib/utils.js +0 -58
  213. package/app/node_modules/tracer/package.json +0 -53
  214. package/app/node_modules/tracer/types/index.d.ts +0 -189
@@ -1,303 +0,0 @@
1
- // Declare "static" methods in Error
2
- interface ErrorConstructor {
3
- /** Create .stack property on a target object */
4
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
5
-
6
- /**
7
- * Optional override for formatting stack traces
8
- *
9
- * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces
10
- */
11
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
12
-
13
- stackTraceLimit: number;
14
- }
15
-
16
- /*-----------------------------------------------*
17
- * *
18
- * GLOBAL *
19
- * *
20
- ------------------------------------------------*/
21
-
22
- // For backwards compability
23
- interface NodeRequire extends NodeJS.Require { }
24
- interface RequireResolve extends NodeJS.RequireResolve { }
25
- interface NodeModule extends NodeJS.Module { }
26
-
27
- declare var process: NodeJS.Process;
28
- declare var console: Console;
29
-
30
- declare var __filename: string;
31
- declare var __dirname: string;
32
-
33
- declare var require: NodeRequire;
34
- declare var module: NodeModule;
35
-
36
- // Same as module.exports
37
- declare var exports: any;
38
-
39
- /**
40
- * Only available if `--expose-gc` is passed to the process.
41
- */
42
- declare var gc: undefined | (() => void);
43
-
44
- //#region borrowed
45
- // from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
46
- /** A controller object that allows you to abort one or more DOM requests as and when desired. */
47
- interface AbortController {
48
- /**
49
- * Returns the AbortSignal object associated with this object.
50
- */
51
-
52
- readonly signal: AbortSignal;
53
- /**
54
- * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
55
- */
56
- abort(reason?: any): void;
57
- }
58
-
59
- /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
60
- interface AbortSignal extends EventTarget {
61
- /**
62
- * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
63
- */
64
- readonly aborted: boolean;
65
- readonly reason: any;
66
- onabort: null | ((this: AbortSignal, event: Event) => any);
67
- throwIfAborted(): void;
68
- }
69
-
70
- declare var AbortController: typeof globalThis extends {onmessage: any; AbortController: infer T}
71
- ? T
72
- : {
73
- prototype: AbortController;
74
- new(): AbortController;
75
- };
76
-
77
- declare var AbortSignal: typeof globalThis extends {onmessage: any; AbortSignal: infer T}
78
- ? T
79
- : {
80
- prototype: AbortSignal;
81
- new(): AbortSignal;
82
- abort(reason?: any): AbortSignal;
83
- timeout(milliseconds: number): AbortSignal;
84
- };
85
- //#endregion borrowed
86
-
87
- //#region ArrayLike.at()
88
- interface RelativeIndexable<T> {
89
- /**
90
- * Takes an integer value and returns the item at that index,
91
- * allowing for positive and negative integers.
92
- * Negative integers count back from the last item in the array.
93
- */
94
- at(index: number): T | undefined;
95
- }
96
- interface String extends RelativeIndexable<string> {}
97
- interface Array<T> extends RelativeIndexable<T> {}
98
- interface ReadonlyArray<T> extends RelativeIndexable<T> {}
99
- interface Int8Array extends RelativeIndexable<number> {}
100
- interface Uint8Array extends RelativeIndexable<number> {}
101
- interface Uint8ClampedArray extends RelativeIndexable<number> {}
102
- interface Int16Array extends RelativeIndexable<number> {}
103
- interface Uint16Array extends RelativeIndexable<number> {}
104
- interface Int32Array extends RelativeIndexable<number> {}
105
- interface Uint32Array extends RelativeIndexable<number> {}
106
- interface Float32Array extends RelativeIndexable<number> {}
107
- interface Float64Array extends RelativeIndexable<number> {}
108
- interface BigInt64Array extends RelativeIndexable<bigint> {}
109
- interface BigUint64Array extends RelativeIndexable<bigint> {}
110
- //#endregion ArrayLike.at() end
111
-
112
- /**
113
- * @since v17.0.0
114
- *
115
- * Creates a deep clone of an object.
116
- */
117
- declare function structuredClone<T>(
118
- value: T,
119
- transfer?: { transfer: ReadonlyArray<import('worker_threads').TransferListItem> },
120
- ): T;
121
-
122
- /*----------------------------------------------*
123
- * *
124
- * GLOBAL INTERFACES *
125
- * *
126
- *-----------------------------------------------*/
127
- declare namespace NodeJS {
128
- interface CallSite {
129
- /**
130
- * Value of "this"
131
- */
132
- getThis(): unknown;
133
-
134
- /**
135
- * Type of "this" as a string.
136
- * This is the name of the function stored in the constructor field of
137
- * "this", if available. Otherwise the object's [[Class]] internal
138
- * property.
139
- */
140
- getTypeName(): string | null;
141
-
142
- /**
143
- * Current function
144
- */
145
- getFunction(): Function | undefined;
146
-
147
- /**
148
- * Name of the current function, typically its name property.
149
- * If a name property is not available an attempt will be made to try
150
- * to infer a name from the function's context.
151
- */
152
- getFunctionName(): string | null;
153
-
154
- /**
155
- * Name of the property [of "this" or one of its prototypes] that holds
156
- * the current function
157
- */
158
- getMethodName(): string | null;
159
-
160
- /**
161
- * Name of the script [if this function was defined in a script]
162
- */
163
- getFileName(): string | undefined;
164
-
165
- /**
166
- * Current line number [if this function was defined in a script]
167
- */
168
- getLineNumber(): number | null;
169
-
170
- /**
171
- * Current column number [if this function was defined in a script]
172
- */
173
- getColumnNumber(): number | null;
174
-
175
- /**
176
- * A call site object representing the location where eval was called
177
- * [if this function was created using a call to eval]
178
- */
179
- getEvalOrigin(): string | undefined;
180
-
181
- /**
182
- * Is this a toplevel invocation, that is, is "this" the global object?
183
- */
184
- isToplevel(): boolean;
185
-
186
- /**
187
- * Does this call take place in code defined by a call to eval?
188
- */
189
- isEval(): boolean;
190
-
191
- /**
192
- * Is this call in native V8 code?
193
- */
194
- isNative(): boolean;
195
-
196
- /**
197
- * Is this a constructor call?
198
- */
199
- isConstructor(): boolean;
200
- }
201
-
202
- interface ErrnoException extends Error {
203
- errno?: number | undefined;
204
- code?: string | undefined;
205
- path?: string | undefined;
206
- syscall?: string | undefined;
207
- }
208
-
209
- interface ReadableStream extends EventEmitter {
210
- readable: boolean;
211
- read(size?: number): string | Buffer;
212
- setEncoding(encoding: BufferEncoding): this;
213
- pause(): this;
214
- resume(): this;
215
- isPaused(): boolean;
216
- pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined; }): T;
217
- unpipe(destination?: WritableStream): this;
218
- unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
219
- wrap(oldStream: ReadableStream): this;
220
- [Symbol.asyncIterator](): AsyncIterableIterator<string | Buffer>;
221
- }
222
-
223
- interface WritableStream extends EventEmitter {
224
- writable: boolean;
225
- write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
226
- write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
227
- end(cb?: () => void): this;
228
- end(data: string | Uint8Array, cb?: () => void): this;
229
- end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
230
- }
231
-
232
- interface ReadWriteStream extends ReadableStream, WritableStream { }
233
-
234
- interface RefCounted {
235
- ref(): this;
236
- unref(): this;
237
- }
238
-
239
- type TypedArray =
240
- | Uint8Array
241
- | Uint8ClampedArray
242
- | Uint16Array
243
- | Uint32Array
244
- | Int8Array
245
- | Int16Array
246
- | Int32Array
247
- | BigUint64Array
248
- | BigInt64Array
249
- | Float32Array
250
- | Float64Array;
251
- type ArrayBufferView = TypedArray | DataView;
252
-
253
- interface Require {
254
- (id: string): any;
255
- resolve: RequireResolve;
256
- cache: Dict<NodeModule>;
257
- /**
258
- * @deprecated
259
- */
260
- extensions: RequireExtensions;
261
- main: Module | undefined;
262
- }
263
-
264
- interface RequireResolve {
265
- (id: string, options?: { paths?: string[] | undefined; }): string;
266
- paths(request: string): string[] | null;
267
- }
268
-
269
- interface RequireExtensions extends Dict<(m: Module, filename: string) => any> {
270
- '.js': (m: Module, filename: string) => any;
271
- '.json': (m: Module, filename: string) => any;
272
- '.node': (m: Module, filename: string) => any;
273
- }
274
- interface Module {
275
- /**
276
- * `true` if the module is running during the Node.js preload
277
- */
278
- isPreloading: boolean;
279
- exports: any;
280
- require: Require;
281
- id: string;
282
- filename: string;
283
- loaded: boolean;
284
- /** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */
285
- parent: Module | null | undefined;
286
- children: Module[];
287
- /**
288
- * @since v11.14.0
289
- *
290
- * The directory name of the module. This is usually the same as the path.dirname() of the module.id.
291
- */
292
- path: string;
293
- paths: string[];
294
- }
295
-
296
- interface Dict<T> {
297
- [key: string]: T | undefined;
298
- }
299
-
300
- interface ReadOnlyDict<T> {
301
- readonly [key: string]: T | undefined;
302
- }
303
- }
@@ -1 +0,0 @@
1
- declare var global: typeof globalThis;