-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(typescript-estree): add support for declare class properties (#1136
- Loading branch information
1 parent
6d0f2ce
commit 1508670
Showing
10 changed files
with
5,865 additions
and
2,841 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
7 changes: 7 additions & 0 deletions
7
.../shared-fixtures/fixtures/typescript/basics/abstract-class-with-declare-properties.src.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,7 @@ | ||
abstract class AbstractDeclProps { | ||
declare prop1: string; | ||
declare abstract prop2: string; | ||
declare public abstract prop3: string; | ||
declare readonly abstract prop4: string; | ||
declare public readonly abstract prop5: string; | ||
} |
9 changes: 9 additions & 0 deletions
9
packages/shared-fixtures/fixtures/typescript/basics/class-with-declare-properties.src.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,9 @@ | ||
class DeclProps { | ||
declare prop1: string; | ||
declare public prop2: string; | ||
declare static prop3: string; | ||
declare readonly prop3: string; | ||
declare public readonly prop4: string; | ||
declare public static prop5: string; | ||
declare public static readonly prop6: string; | ||
} |
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.