forked from microsoftgraph/msgraph-sdk-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shims.d.ts
21 lines (20 loc) · 858 Bytes
/
shims.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
* -------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
* See License in the project root for license information.
* -------------------------------------------------------------------------------------------
*/
/**
* Shim for Node stream interface.
*/
interface NodeStream {
/**
* Shim for Node stream interface when the environment does not use @types/node.
* Using @types/node appends the ambient Node definition to the global scope which is not desirable.
* https://github.com/microsoftgraph/msgraph-sdk-javascript/issues/600
*/
readable: boolean;
readableLength: number;
read(size?: number): any;
on(event: string | symbol, listener: (...args: any[]) => void): this;
}