-
Notifications
You must be signed in to change notification settings - Fork 721
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: isExported should use the type checker
This partially adds support for export declarations under the same name. BREAKING CHANGE: Global files previously had all declarations marked as not-exported. This was inconsistent with TypeScript's concept of visibility. Now non-modules will have all members exported.
- Loading branch information
Showing
34 changed files
with
236 additions
and
209 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4057,7 +4057,7 @@ | |
} | ||
} | ||
}, | ||
"defaultValue": " []" | ||
"defaultValue": "[]" | ||
}, | ||
{ | ||
"id": 233, | ||
|
13 changes: 6 additions & 7 deletions
13
src/test/converter/constructor-properties/constructor-properties.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 |
---|---|---|
@@ -1,32 +1,31 @@ | ||
/** | ||
* A class with constructor properties. | ||
*/ | ||
class Vector2 | ||
{ | ||
class Vector2 { | ||
/** | ||
* @param x X component of the Vector | ||
* @param y Y component of the Vector | ||
* @param name Vector name | ||
*/ | ||
constructor(public x:number, public y:number, | ||
constructor(public x: number, public y: number, | ||
readonly name: string) { | ||
} | ||
} | ||
|
||
|
||
/** | ||
* A class with inherited and overwritten constructor properties. | ||
*/ | ||
class Vector3 extends Vector2 | ||
{ | ||
class Vector3 extends Vector2 { | ||
/** | ||
* @param x X component of the Vector | ||
* @param y Y component of the Vector | ||
* @param z Z component of the Vector | ||
* @param name Vector name | ||
*/ | ||
constructor(x:number, public y:number, public z:number, | ||
constructor(x: number, public y: number, public z: number, | ||
readonly name: string) { | ||
super(x, y, name); | ||
} | ||
} | ||
|
||
export {}; |
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
Oops, something went wrong.