@node-red/editor-client 2.0.4 → 2.1.0-beta.2
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.
- package/locales/en-US/editor.json +37 -7
- package/locales/ko/editor.json +1 -1
- package/package.json +2 -2
- package/public/red/about +109 -0
- package/public/red/images/node-red-256.svg +1 -0
- package/public/red/keymap.json +13 -2
- package/public/red/red.js +6122 -3663
- package/public/red/red.min.js +1 -1
- package/public/red/style.min.css +2 -2
- package/public/red/tours/first-flow.js +80 -0
- package/public/red/tours/welcome.js +135 -0
- package/public/tours/first-flow.js +82 -0
- package/public/types/node/assert.d.ts +127 -0
- package/public/types/node/async_hooks.d.ts +229 -0
- package/public/types/node/buffer.d.ts +25 -1
- package/public/types/node/child_process.d.ts +514 -6
- package/public/types/node/cluster.d.ts +265 -0
- package/public/types/node/console.d.ts +136 -1
- package/public/types/node/crypto.d.ts +1189 -1
- package/public/types/node/dgram.d.ts +144 -1
- package/public/types/node/dns.d.ts +383 -10
- package/public/types/node/domain.d.ts +27 -1
- package/public/types/node/events.d.ts +81 -1
- package/public/types/node/fs.d.ts +2273 -1
- package/public/types/node/globals.d.ts +616 -1
- package/public/types/node/http.d.ts +489 -1
- package/public/types/node/http2.d.ts +961 -0
- package/public/types/node/https.d.ts +142 -0
- package/public/types/node/module.d.ts +55 -0
- package/public/types/node/net.d.ts +296 -1
- package/public/types/node/os.d.ts +242 -1
- package/public/types/node/path.d.ts +156 -1
- package/public/types/node/perf_hooks.d.ts +274 -0
- package/public/types/node/process.d.ts +412 -1
- package/public/types/node/querystring.d.ts +31 -1
- package/public/types/node/readline.d.ts +173 -0
- package/public/types/node/stream.d.ts +358 -0
- package/public/types/node/string_decoder.d.ts +10 -0
- package/public/types/node/timers.d.ts +19 -0
- package/public/types/node/tls.d.ts +783 -0
- package/public/types/node/trace_events.d.ts +64 -0
- package/public/types/node/tty.d.ts +69 -0
- package/public/types/node/url.d.ts +119 -1
- package/public/types/node/util.d.ts +210 -0
- package/public/types/node/v8.d.ts +190 -0
- package/public/types/node/vm.d.ts +155 -0
- package/public/types/node/wasi.d.ts +89 -0
- package/public/types/node/worker_threads.d.ts +241 -0
- package/public/types/node/zlib.d.ts +364 -0
- package/public/types/node-red/func.d.ts +1 -1
- package/public/types/node-red/util.d.ts +1 -1
- package/public/vendor/ace/worker-jsonata.js +1 -1
- package/public/vendor/monaco/dist/ThirdPartyNotices.txt +192 -192
- package/public/vendor/monaco/dist/css.worker.js +1 -1
- package/public/vendor/monaco/dist/editor.js +2 -2
- package/public/vendor/monaco/dist/editor.worker.js +1 -1
- package/public/vendor/monaco/dist/html.worker.js +1 -1
- package/public/vendor/monaco/dist/json.worker.js +1 -1
- package/public/vendor/monaco/dist/locale/cs.js +44 -10
- package/public/vendor/monaco/dist/locale/de.js +46 -12
- package/public/vendor/monaco/dist/locale/es.js +46 -12
- package/public/vendor/monaco/dist/locale/fr.js +43 -9
- package/public/vendor/monaco/dist/locale/it.js +45 -11
- package/public/vendor/monaco/dist/locale/ja.js +45 -11
- package/public/vendor/monaco/dist/locale/ko.js +44 -10
- package/public/vendor/monaco/dist/locale/pl.js +42 -8
- package/public/vendor/monaco/dist/locale/pt-br.js +49 -15
- package/public/vendor/monaco/dist/locale/qps-ploc.js +1445 -0
- package/public/vendor/monaco/dist/locale/ru.js +48 -14
- package/public/vendor/monaco/dist/locale/tr.js +49 -15
- package/public/vendor/monaco/dist/locale/zh-hans.js +48 -14
- package/public/vendor/monaco/dist/locale/zh-hant.js +45 -11
- package/public/vendor/monaco/dist/theme/monoindustrial.json +228 -0
- package/public/vendor/monaco/dist/theme/solarized-dark.json +1082 -0
- package/public/vendor/monaco/dist/ts.worker.js +2 -2
- package/public/vendor/vendor.js +4 -4
- package/templates/index.mst +5 -1
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
|
|
2
|
+
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
|
|
3
|
+
|
|
4
|
+
declare module 'stream' {
|
|
5
|
+
import EventEmitter = require('events');
|
|
6
|
+
|
|
7
|
+
class internal extends EventEmitter {
|
|
8
|
+
pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean | undefined; }): T;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
namespace internal {
|
|
12
|
+
class Stream extends internal {
|
|
13
|
+
constructor(opts?: ReadableOptions);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface ReadableOptions {
|
|
17
|
+
highWaterMark?: number | undefined;
|
|
18
|
+
encoding?: BufferEncoding | undefined;
|
|
19
|
+
objectMode?: boolean | undefined;
|
|
20
|
+
read?(this: Readable, size: number): void;
|
|
21
|
+
destroy?(this: Readable, error: Error | null, callback: (error: Error | null) => void): void;
|
|
22
|
+
autoDestroy?: boolean | undefined;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
class Readable extends Stream implements NodeJS.ReadableStream {
|
|
26
|
+
/**
|
|
27
|
+
* A utility method for creating Readable Streams out of iterators.
|
|
28
|
+
*/
|
|
29
|
+
static from(iterable: Iterable<any> | AsyncIterable<any>, options?: ReadableOptions): Readable;
|
|
30
|
+
|
|
31
|
+
readable: boolean;
|
|
32
|
+
readonly readableEncoding: BufferEncoding | null;
|
|
33
|
+
readonly readableEnded: boolean;
|
|
34
|
+
readonly readableFlowing: boolean | null;
|
|
35
|
+
readonly readableHighWaterMark: number;
|
|
36
|
+
readonly readableLength: number;
|
|
37
|
+
readonly readableObjectMode: boolean;
|
|
38
|
+
destroyed: boolean;
|
|
39
|
+
constructor(opts?: ReadableOptions);
|
|
40
|
+
_read(size: number): void;
|
|
41
|
+
read(size?: number): any;
|
|
42
|
+
setEncoding(encoding: BufferEncoding): this;
|
|
43
|
+
pause(): this;
|
|
44
|
+
resume(): this;
|
|
45
|
+
isPaused(): boolean;
|
|
46
|
+
unpipe(destination?: NodeJS.WritableStream): this;
|
|
47
|
+
unshift(chunk: any, encoding?: BufferEncoding): void;
|
|
48
|
+
wrap(oldStream: NodeJS.ReadableStream): this;
|
|
49
|
+
push(chunk: any, encoding?: BufferEncoding): boolean;
|
|
50
|
+
_destroy(error: Error | null, callback: (error?: Error | null) => void): void;
|
|
51
|
+
destroy(error?: Error): void;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Event emitter
|
|
55
|
+
* The defined events on documents including:
|
|
56
|
+
* 1. close
|
|
57
|
+
* 2. data
|
|
58
|
+
* 3. end
|
|
59
|
+
* 4. error
|
|
60
|
+
* 5. pause
|
|
61
|
+
* 6. readable
|
|
62
|
+
* 7. resume
|
|
63
|
+
*/
|
|
64
|
+
addListener(event: "close", listener: () => void): this;
|
|
65
|
+
addListener(event: "data", listener: (chunk: any) => void): this;
|
|
66
|
+
addListener(event: "end", listener: () => void): this;
|
|
67
|
+
addListener(event: "error", listener: (err: Error) => void): this;
|
|
68
|
+
addListener(event: "pause", listener: () => void): this;
|
|
69
|
+
addListener(event: "readable", listener: () => void): this;
|
|
70
|
+
addListener(event: "resume", listener: () => void): this;
|
|
71
|
+
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
72
|
+
|
|
73
|
+
emit(event: "close"): boolean;
|
|
74
|
+
emit(event: "data", chunk: any): boolean;
|
|
75
|
+
emit(event: "end"): boolean;
|
|
76
|
+
emit(event: "error", err: Error): boolean;
|
|
77
|
+
emit(event: "pause"): boolean;
|
|
78
|
+
emit(event: "readable"): boolean;
|
|
79
|
+
emit(event: "resume"): boolean;
|
|
80
|
+
emit(event: string | symbol, ...args: any[]): boolean;
|
|
81
|
+
|
|
82
|
+
on(event: "close", listener: () => void): this;
|
|
83
|
+
on(event: "data", listener: (chunk: any) => void): this;
|
|
84
|
+
on(event: "end", listener: () => void): this;
|
|
85
|
+
on(event: "error", listener: (err: Error) => void): this;
|
|
86
|
+
on(event: "pause", listener: () => void): this;
|
|
87
|
+
on(event: "readable", listener: () => void): this;
|
|
88
|
+
on(event: "resume", listener: () => void): this;
|
|
89
|
+
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
90
|
+
|
|
91
|
+
once(event: "close", listener: () => void): this;
|
|
92
|
+
once(event: "data", listener: (chunk: any) => void): this;
|
|
93
|
+
once(event: "end", listener: () => void): this;
|
|
94
|
+
once(event: "error", listener: (err: Error) => void): this;
|
|
95
|
+
once(event: "pause", listener: () => void): this;
|
|
96
|
+
once(event: "readable", listener: () => void): this;
|
|
97
|
+
once(event: "resume", listener: () => void): this;
|
|
98
|
+
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
99
|
+
|
|
100
|
+
prependListener(event: "close", listener: () => void): this;
|
|
101
|
+
prependListener(event: "data", listener: (chunk: any) => void): this;
|
|
102
|
+
prependListener(event: "end", listener: () => void): this;
|
|
103
|
+
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
104
|
+
prependListener(event: "pause", listener: () => void): this;
|
|
105
|
+
prependListener(event: "readable", listener: () => void): this;
|
|
106
|
+
prependListener(event: "resume", listener: () => void): this;
|
|
107
|
+
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
108
|
+
|
|
109
|
+
prependOnceListener(event: "close", listener: () => void): this;
|
|
110
|
+
prependOnceListener(event: "data", listener: (chunk: any) => void): this;
|
|
111
|
+
prependOnceListener(event: "end", listener: () => void): this;
|
|
112
|
+
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
113
|
+
prependOnceListener(event: "pause", listener: () => void): this;
|
|
114
|
+
prependOnceListener(event: "readable", listener: () => void): this;
|
|
115
|
+
prependOnceListener(event: "resume", listener: () => void): this;
|
|
116
|
+
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
117
|
+
|
|
118
|
+
removeListener(event: "close", listener: () => void): this;
|
|
119
|
+
removeListener(event: "data", listener: (chunk: any) => void): this;
|
|
120
|
+
removeListener(event: "end", listener: () => void): this;
|
|
121
|
+
removeListener(event: "error", listener: (err: Error) => void): this;
|
|
122
|
+
removeListener(event: "pause", listener: () => void): this;
|
|
123
|
+
removeListener(event: "readable", listener: () => void): this;
|
|
124
|
+
removeListener(event: "resume", listener: () => void): this;
|
|
125
|
+
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
126
|
+
|
|
127
|
+
[Symbol.asyncIterator](): AsyncIterableIterator<any>;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
interface WritableOptions {
|
|
131
|
+
highWaterMark?: number | undefined;
|
|
132
|
+
decodeStrings?: boolean | undefined;
|
|
133
|
+
defaultEncoding?: BufferEncoding | undefined;
|
|
134
|
+
objectMode?: boolean | undefined;
|
|
135
|
+
emitClose?: boolean | undefined;
|
|
136
|
+
write?(this: Writable, chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
|
|
137
|
+
writev?(this: Writable, chunks: Array<{ chunk: any, encoding: BufferEncoding }>, callback: (error?: Error | null) => void): void;
|
|
138
|
+
destroy?(this: Writable, error: Error | null, callback: (error: Error | null) => void): void;
|
|
139
|
+
final?(this: Writable, callback: (error?: Error | null) => void): void;
|
|
140
|
+
autoDestroy?: boolean | undefined;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
class Writable extends Stream implements NodeJS.WritableStream {
|
|
144
|
+
readonly writable: boolean;
|
|
145
|
+
readonly writableEnded: boolean;
|
|
146
|
+
readonly writableFinished: boolean;
|
|
147
|
+
readonly writableHighWaterMark: number;
|
|
148
|
+
readonly writableLength: number;
|
|
149
|
+
readonly writableObjectMode: boolean;
|
|
150
|
+
readonly writableCorked: number;
|
|
151
|
+
destroyed: boolean;
|
|
152
|
+
constructor(opts?: WritableOptions);
|
|
153
|
+
_write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
|
|
154
|
+
_writev?(chunks: Array<{ chunk: any, encoding: BufferEncoding }>, callback: (error?: Error | null) => void): void;
|
|
155
|
+
_destroy(error: Error | null, callback: (error?: Error | null) => void): void;
|
|
156
|
+
_final(callback: (error?: Error | null) => void): void;
|
|
157
|
+
write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
|
|
158
|
+
write(chunk: any, encoding: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean;
|
|
159
|
+
setDefaultEncoding(encoding: BufferEncoding): this;
|
|
160
|
+
end(cb?: () => void): void;
|
|
161
|
+
end(chunk: any, cb?: () => void): void;
|
|
162
|
+
end(chunk: any, encoding: BufferEncoding, cb?: () => void): void;
|
|
163
|
+
cork(): void;
|
|
164
|
+
uncork(): void;
|
|
165
|
+
destroy(error?: Error): void;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Event emitter
|
|
169
|
+
* The defined events on documents including:
|
|
170
|
+
* 1. close
|
|
171
|
+
* 2. drain
|
|
172
|
+
* 3. error
|
|
173
|
+
* 4. finish
|
|
174
|
+
* 5. pipe
|
|
175
|
+
* 6. unpipe
|
|
176
|
+
*/
|
|
177
|
+
addListener(event: "close", listener: () => void): this;
|
|
178
|
+
addListener(event: "drain", listener: () => void): this;
|
|
179
|
+
addListener(event: "error", listener: (err: Error) => void): this;
|
|
180
|
+
addListener(event: "finish", listener: () => void): this;
|
|
181
|
+
addListener(event: "pipe", listener: (src: Readable) => void): this;
|
|
182
|
+
addListener(event: "unpipe", listener: (src: Readable) => void): this;
|
|
183
|
+
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
184
|
+
|
|
185
|
+
emit(event: "close"): boolean;
|
|
186
|
+
emit(event: "drain"): boolean;
|
|
187
|
+
emit(event: "error", err: Error): boolean;
|
|
188
|
+
emit(event: "finish"): boolean;
|
|
189
|
+
emit(event: "pipe", src: Readable): boolean;
|
|
190
|
+
emit(event: "unpipe", src: Readable): boolean;
|
|
191
|
+
emit(event: string | symbol, ...args: any[]): boolean;
|
|
192
|
+
|
|
193
|
+
on(event: "close", listener: () => void): this;
|
|
194
|
+
on(event: "drain", listener: () => void): this;
|
|
195
|
+
on(event: "error", listener: (err: Error) => void): this;
|
|
196
|
+
on(event: "finish", listener: () => void): this;
|
|
197
|
+
on(event: "pipe", listener: (src: Readable) => void): this;
|
|
198
|
+
on(event: "unpipe", listener: (src: Readable) => void): this;
|
|
199
|
+
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
200
|
+
|
|
201
|
+
once(event: "close", listener: () => void): this;
|
|
202
|
+
once(event: "drain", listener: () => void): this;
|
|
203
|
+
once(event: "error", listener: (err: Error) => void): this;
|
|
204
|
+
once(event: "finish", listener: () => void): this;
|
|
205
|
+
once(event: "pipe", listener: (src: Readable) => void): this;
|
|
206
|
+
once(event: "unpipe", listener: (src: Readable) => void): this;
|
|
207
|
+
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
208
|
+
|
|
209
|
+
prependListener(event: "close", listener: () => void): this;
|
|
210
|
+
prependListener(event: "drain", listener: () => void): this;
|
|
211
|
+
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
212
|
+
prependListener(event: "finish", listener: () => void): this;
|
|
213
|
+
prependListener(event: "pipe", listener: (src: Readable) => void): this;
|
|
214
|
+
prependListener(event: "unpipe", listener: (src: Readable) => void): this;
|
|
215
|
+
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
216
|
+
|
|
217
|
+
prependOnceListener(event: "close", listener: () => void): this;
|
|
218
|
+
prependOnceListener(event: "drain", listener: () => void): this;
|
|
219
|
+
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
220
|
+
prependOnceListener(event: "finish", listener: () => void): this;
|
|
221
|
+
prependOnceListener(event: "pipe", listener: (src: Readable) => void): this;
|
|
222
|
+
prependOnceListener(event: "unpipe", listener: (src: Readable) => void): this;
|
|
223
|
+
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
224
|
+
|
|
225
|
+
removeListener(event: "close", listener: () => void): this;
|
|
226
|
+
removeListener(event: "drain", listener: () => void): this;
|
|
227
|
+
removeListener(event: "error", listener: (err: Error) => void): this;
|
|
228
|
+
removeListener(event: "finish", listener: () => void): this;
|
|
229
|
+
removeListener(event: "pipe", listener: (src: Readable) => void): this;
|
|
230
|
+
removeListener(event: "unpipe", listener: (src: Readable) => void): this;
|
|
231
|
+
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
interface DuplexOptions extends ReadableOptions, WritableOptions {
|
|
235
|
+
allowHalfOpen?: boolean | undefined;
|
|
236
|
+
readableObjectMode?: boolean | undefined;
|
|
237
|
+
writableObjectMode?: boolean | undefined;
|
|
238
|
+
readableHighWaterMark?: number | undefined;
|
|
239
|
+
writableHighWaterMark?: number | undefined;
|
|
240
|
+
writableCorked?: number | undefined;
|
|
241
|
+
read?(this: Duplex, size: number): void;
|
|
242
|
+
write?(this: Duplex, chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
|
|
243
|
+
writev?(this: Duplex, chunks: Array<{ chunk: any, encoding: BufferEncoding }>, callback: (error?: Error | null) => void): void;
|
|
244
|
+
final?(this: Duplex, callback: (error?: Error | null) => void): void;
|
|
245
|
+
destroy?(this: Duplex, error: Error | null, callback: (error: Error | null) => void): void;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
// Note: Duplex extends both Readable and Writable.
|
|
249
|
+
class Duplex extends Readable implements Writable {
|
|
250
|
+
readonly writable: boolean;
|
|
251
|
+
readonly writableEnded: boolean;
|
|
252
|
+
readonly writableFinished: boolean;
|
|
253
|
+
readonly writableHighWaterMark: number;
|
|
254
|
+
readonly writableLength: number;
|
|
255
|
+
readonly writableObjectMode: boolean;
|
|
256
|
+
readonly writableCorked: number;
|
|
257
|
+
allowHalfOpen: boolean;
|
|
258
|
+
constructor(opts?: DuplexOptions);
|
|
259
|
+
_write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
|
|
260
|
+
_writev?(chunks: Array<{ chunk: any, encoding: BufferEncoding }>, callback: (error?: Error | null) => void): void;
|
|
261
|
+
_destroy(error: Error | null, callback: (error: Error | null) => void): void;
|
|
262
|
+
_final(callback: (error?: Error | null) => void): void;
|
|
263
|
+
write(chunk: any, encoding?: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean;
|
|
264
|
+
write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
|
|
265
|
+
setDefaultEncoding(encoding: BufferEncoding): this;
|
|
266
|
+
end(cb?: () => void): void;
|
|
267
|
+
end(chunk: any, cb?: () => void): void;
|
|
268
|
+
end(chunk: any, encoding?: BufferEncoding, cb?: () => void): void;
|
|
269
|
+
cork(): void;
|
|
270
|
+
uncork(): void;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
type TransformCallback = (error?: Error | null, data?: any) => void;
|
|
274
|
+
|
|
275
|
+
interface TransformOptions extends DuplexOptions {
|
|
276
|
+
read?(this: Transform, size: number): void;
|
|
277
|
+
write?(this: Transform, chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
|
|
278
|
+
writev?(this: Transform, chunks: Array<{ chunk: any, encoding: BufferEncoding }>, callback: (error?: Error | null) => void): void;
|
|
279
|
+
final?(this: Transform, callback: (error?: Error | null) => void): void;
|
|
280
|
+
destroy?(this: Transform, error: Error | null, callback: (error: Error | null) => void): void;
|
|
281
|
+
transform?(this: Transform, chunk: any, encoding: BufferEncoding, callback: TransformCallback): void;
|
|
282
|
+
flush?(this: Transform, callback: TransformCallback): void;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
class Transform extends Duplex {
|
|
286
|
+
constructor(opts?: TransformOptions);
|
|
287
|
+
_transform(chunk: any, encoding: BufferEncoding, callback: TransformCallback): void;
|
|
288
|
+
_flush(callback: TransformCallback): void;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
class PassThrough extends Transform { }
|
|
292
|
+
|
|
293
|
+
interface FinishedOptions {
|
|
294
|
+
error?: boolean | undefined;
|
|
295
|
+
readable?: boolean | undefined;
|
|
296
|
+
writable?: boolean | undefined;
|
|
297
|
+
}
|
|
298
|
+
function finished(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, options: FinishedOptions, callback: (err?: NodeJS.ErrnoException | null) => void): () => void;
|
|
299
|
+
function finished(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, callback: (err?: NodeJS.ErrnoException | null) => void): () => void;
|
|
300
|
+
namespace finished {
|
|
301
|
+
function __promisify__(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, options?: FinishedOptions): Promise<void>;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
function pipeline<T extends NodeJS.WritableStream>(stream1: NodeJS.ReadableStream, stream2: T, callback?: (err: NodeJS.ErrnoException | null) => void): T;
|
|
305
|
+
function pipeline<T extends NodeJS.WritableStream>(stream1: NodeJS.ReadableStream, stream2: NodeJS.ReadWriteStream, stream3: T, callback?: (err: NodeJS.ErrnoException | null) => void): T;
|
|
306
|
+
function pipeline<T extends NodeJS.WritableStream>(
|
|
307
|
+
stream1: NodeJS.ReadableStream,
|
|
308
|
+
stream2: NodeJS.ReadWriteStream,
|
|
309
|
+
stream3: NodeJS.ReadWriteStream,
|
|
310
|
+
stream4: T,
|
|
311
|
+
callback?: (err: NodeJS.ErrnoException | null) => void,
|
|
312
|
+
): T;
|
|
313
|
+
function pipeline<T extends NodeJS.WritableStream>(
|
|
314
|
+
stream1: NodeJS.ReadableStream,
|
|
315
|
+
stream2: NodeJS.ReadWriteStream,
|
|
316
|
+
stream3: NodeJS.ReadWriteStream,
|
|
317
|
+
stream4: NodeJS.ReadWriteStream,
|
|
318
|
+
stream5: T,
|
|
319
|
+
callback?: (err: NodeJS.ErrnoException | null) => void,
|
|
320
|
+
): T;
|
|
321
|
+
function pipeline(
|
|
322
|
+
streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>,
|
|
323
|
+
callback?: (err: NodeJS.ErrnoException | null) => void,
|
|
324
|
+
): NodeJS.WritableStream;
|
|
325
|
+
function pipeline(
|
|
326
|
+
stream1: NodeJS.ReadableStream,
|
|
327
|
+
stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream,
|
|
328
|
+
...streams: Array<NodeJS.ReadWriteStream | NodeJS.WritableStream | ((err: NodeJS.ErrnoException | null) => void)>,
|
|
329
|
+
): NodeJS.WritableStream;
|
|
330
|
+
namespace pipeline {
|
|
331
|
+
function __promisify__(stream1: NodeJS.ReadableStream, stream2: NodeJS.WritableStream): Promise<void>;
|
|
332
|
+
function __promisify__(stream1: NodeJS.ReadableStream, stream2: NodeJS.ReadWriteStream, stream3: NodeJS.WritableStream): Promise<void>;
|
|
333
|
+
function __promisify__(stream1: NodeJS.ReadableStream, stream2: NodeJS.ReadWriteStream, stream3: NodeJS.ReadWriteStream, stream4: NodeJS.WritableStream): Promise<void>;
|
|
334
|
+
function __promisify__(
|
|
335
|
+
stream1: NodeJS.ReadableStream,
|
|
336
|
+
stream2: NodeJS.ReadWriteStream,
|
|
337
|
+
stream3: NodeJS.ReadWriteStream,
|
|
338
|
+
stream4: NodeJS.ReadWriteStream,
|
|
339
|
+
stream5: NodeJS.WritableStream,
|
|
340
|
+
): Promise<void>;
|
|
341
|
+
function __promisify__(streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>): Promise<void>;
|
|
342
|
+
function __promisify__(
|
|
343
|
+
stream1: NodeJS.ReadableStream,
|
|
344
|
+
stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream,
|
|
345
|
+
...streams: Array<NodeJS.ReadWriteStream | NodeJS.WritableStream>,
|
|
346
|
+
): Promise<void>;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
interface Pipe {
|
|
350
|
+
close(): void;
|
|
351
|
+
hasRef(): boolean;
|
|
352
|
+
ref(): void;
|
|
353
|
+
unref(): void;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export = internal;
|
|
358
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
|
|
3
|
+
|
|
4
|
+
declare module 'string_decoder' {
|
|
5
|
+
class StringDecoder {
|
|
6
|
+
constructor(encoding?: BufferEncoding);
|
|
7
|
+
write(buffer: Buffer): string;
|
|
8
|
+
end(buffer?: Buffer): string;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
|
|
3
|
+
|
|
4
|
+
declare module 'timers' {
|
|
5
|
+
function setTimeout(callback: (...args: any[]) => void, ms?: number, ...args: any[]): NodeJS.Timeout;
|
|
6
|
+
namespace setTimeout {
|
|
7
|
+
function __promisify__(ms: number): Promise<void>;
|
|
8
|
+
function __promisify__<T>(ms: number, value: T): Promise<T>;
|
|
9
|
+
}
|
|
10
|
+
function clearTimeout(timeoutId: NodeJS.Timeout): void;
|
|
11
|
+
function setInterval(callback: (...args: any[]) => void, ms?: number, ...args: any[]): NodeJS.Timeout;
|
|
12
|
+
function clearInterval(intervalId: NodeJS.Timeout): void;
|
|
13
|
+
function setImmediate(callback: (...args: any[]) => void, ...args: any[]): NodeJS.Immediate;
|
|
14
|
+
namespace setImmediate {
|
|
15
|
+
function __promisify__(): Promise<void>;
|
|
16
|
+
function __promisify__<T>(value: T): Promise<T>;
|
|
17
|
+
}
|
|
18
|
+
function clearImmediate(immediateId: NodeJS.Immediate): void;
|
|
19
|
+
}
|