-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove node type ambient declaration (#618)
* adding a shim for buffer * adding node stream interface * renaming shims * remove dom-shim * using uintarray
- Loading branch information
Showing
9 changed files
with
58 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"compilerOptions": { | ||
"importHelpers": true, | ||
"noEmitOnError": true, | ||
"noImplicitAny": false, | ||
"moduleResolution": "node", | ||
"removeComments": false, | ||
"sourceMap": true, | ||
"declaration": true | ||
} | ||
} | ||
"compilerOptions": { | ||
"importHelpers": true, | ||
"noEmitOnError": true, | ||
"noImplicitAny": false, | ||
"moduleResolution": "node", | ||
"removeComments": false, | ||
"sourceMap": true, | ||
"declaration": true, | ||
} | ||
} |