-
Notifications
You must be signed in to change notification settings - Fork 30.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't depend on typescript protocol.d.ts
- Loading branch information
1 parent
43957cc
commit ec7dc98
Showing
5 changed files
with
18 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"license": "MIT", | ||
"description": "Dependencies shared by all extensions", | ||
"dependencies": { | ||
"typescript": "4.8.4" | ||
"typescript": "npm:@typescript-deploys/[email protected]" | ||
}, | ||
"scripts": { | ||
"postinstall": "node ./postinstall.mjs" | ||
|
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,13 +1,19 @@ | ||
import * as Proto from 'typescript/lib/protocol'; | ||
export = Proto; | ||
import * as ts from 'typescript/lib/tsserverlibrary'; | ||
export = ts.server.protocol; | ||
|
||
|
||
declare enum ServerType { | ||
Syntax = 'syntax', | ||
Semantic = 'semantic', | ||
} | ||
declare module 'typescript/lib/protocol' { | ||
|
||
interface Response { | ||
readonly _serverType?: ServerType; | ||
declare module 'typescript/lib/tsserverlibrary' { | ||
namespace server.protocol { | ||
type TextInsertion = ts.TextInsertion; | ||
type ScriptElementKind = ts.ScriptElementKind; | ||
|
||
interface Response { | ||
readonly _serverType?: ServerType; | ||
} | ||
} | ||
} |
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