-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: typescript createProgram doesn't support incremental mode (#5346)
* fix: typescript createProgram doesn't support incremental mode * test: added test for PR #5346 Co-authored-by: Jasper De Moor <jasperdemoor@gmail.com>
- Loading branch information
1 parent
6100114
commit 837d1fb
Showing
8 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
packages/core/integration-tests/test/integration/ts-types/composite/add.ts
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 @@ | ||
export const add = (a: number, b: number) => a + b; |
3 changes: 3 additions & 0 deletions
3
packages/core/integration-tests/test/integration/ts-types/composite/expected.d.ts
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,3 @@ | ||
export const add: (a: number, b: number) => number; | ||
|
||
//# sourceMappingURL=index.d.ts.map |
1 change: 1 addition & 0 deletions
1
packages/core/integration-tests/test/integration/ts-types/composite/index.ts
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 @@ | ||
export * from './add'; |
6 changes: 6 additions & 0 deletions
6
packages/core/integration-tests/test/integration/ts-types/composite/package.json
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,6 @@ | ||
{ | ||
"name": "ts-composite", | ||
"private": true, | ||
"main": "dist/main.js", | ||
"types": "dist/index.d.ts" | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/core/integration-tests/test/integration/ts-types/composite/tsconfig.json
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,10 @@ | ||
{ | ||
"compilerOptions": { | ||
"composite": true, | ||
}, | ||
"files": [ | ||
"index.ts", | ||
"add.ts" | ||
], | ||
"references": [] | ||
} |
Empty file.
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