-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Other: Just alias as the actual ideal type when using stubs, see #718
- Loading branch information
Showing
3 changed files
with
10 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
// minimal stub for Long instances for reference when not using long.js, | ||
// i.e. <reference path="node_modules/protobufjs/stub-long.d.ts" /> | ||
|
||
type Long = LongStub; | ||
|
||
interface LongStub { | ||
lo: number, | ||
hi: number, | ||
unsigned?: boolean | ||
} | ||
type Long = number; |
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,7 +1,4 @@ | ||
// minimal stub for node types for reference when not using node, | ||
// i.e. <reference path="node_modules/protobufjs/stub-node.d.ts" /> | ||
|
||
type Buffer = BufferStub; | ||
|
||
interface BufferStub extends Uint8Array { | ||
} | ||
type Buffer = Uint8Array; |