-
-
Notifications
You must be signed in to change notification settings - Fork 200
Open
Labels
Difficulty: MediumType: Breaking Change π₯Type: Bug πSomething isn't workingSomething isn't working
Milestone
Description
Bug Report π
Types of ast fields are sometimes string, sometimes any. Instead maybe they should conform to the generated types.
Expected Behavior
If I use ast property of a ClassDeclaration, it should have the type IDeclaration instead of string.
Current Behavior
If I use ast property of a ClassDeclaration, it has the type string instead of IDeclaration.
Possible Solution
Steps to Reproduce
- Create a
ModelFilethat has declarations - Obtain one of the declarations with for instance
modelFile.getAllDeclarations().at(0) - Now access the ast property of that declaration and check type with
typeofdeclaration (no pun intended) typeof myDeclarationisobjectbut TypeScript assumes that it'sstring, because of the type definition file.
Context (Environment)
Desktop
- OS: macOS Ventura
- Browser: NodeJS
- Version: 18.17.1
Detailed Description
Possible Implementation
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Difficulty: MediumType: Breaking Change π₯Type: Bug πSomething isn't workingSomething isn't working