forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed errors on specifier-less imports
- Loading branch information
Showing
44 changed files
with
367 additions
and
88 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
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
8 changes: 7 additions & 1 deletion
8
tests/baselines/reference/ambientExportDefaultErrors.errors.txt
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
5 changes: 4 additions & 1 deletion
5
tests/baselines/reference/checkExportsObjectAssignPrototypeProperty.errors.txt
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
10 changes: 10 additions & 0 deletions
10
tests/baselines/reference/es6ImportWithoutFromClauseInEs5.errors.txt
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 @@ | ||
es6ImportWithoutFromClauseInEs5_1.ts(1,8): error TS2307: Cannot find module 'es6ImportWithoutFromClauseInEs5_0' or its corresponding type declarations. | ||
|
||
|
||
==== es6ImportWithoutFromClauseInEs5_0.ts (0 errors) ==== | ||
export var a = 10; | ||
|
||
==== es6ImportWithoutFromClauseInEs5_1.ts (1 errors) ==== | ||
import "es6ImportWithoutFromClauseInEs5_0"; | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
!!! error TS2307: Cannot find module 'es6ImportWithoutFromClauseInEs5_0' or its corresponding type declarations. |
7 changes: 5 additions & 2 deletions
7
tests/baselines/reference/es6ImportWithoutFromClauseWithExport.errors.txt
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,13 @@ | ||
client.ts(1,1): error TS1191: An import declaration cannot have modifiers. | ||
client.ts(1,15): error TS2307: Cannot find module 'server' or its corresponding type declarations. | ||
|
||
|
||
==== server.ts (0 errors) ==== | ||
export var a = 10; | ||
|
||
==== client.ts (1 errors) ==== | ||
==== client.ts (2 errors) ==== | ||
export import "server"; | ||
~~~~~~ | ||
!!! error TS1191: An import declaration cannot have modifiers. | ||
!!! error TS1191: An import declaration cannot have modifiers. | ||
~~~~~~~~ | ||
!!! error TS2307: Cannot find module 'server' or its corresponding type declarations. |
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,20 @@ | ||
index.ts(1,8): error TS2307: Cannot find module './extention' or its corresponding type declarations. | ||
|
||
|
||
==== extension.d.ts (0 errors) ==== | ||
declare global { | ||
namespace globalThis { | ||
var test: string; | ||
} | ||
} | ||
|
||
export {} | ||
|
||
==== index.ts (1 errors) ==== | ||
import "./extention"; | ||
~~~~~~~~~~~~~ | ||
!!! error TS2307: Cannot find module './extention' or its corresponding type declarations. | ||
|
||
globalThis.tests = "a-b"; | ||
console.log(globalThis.test.split("-")); | ||
|
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
28 changes: 0 additions & 28 deletions
28
tests/baselines/reference/jsxClassAttributeResolution.errors.txt
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.