-
Notifications
You must be signed in to change notification settings - Fork 12.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a code fixer for --isolatedDeclarations errors #58260
Commits on Apr 19, 2024
-
Add a fixer to fix type errors for --isolatedDeclarations
This code fixer fixes the following patterns. 1. Adding missing types on places that type can be explicitly annotated 2. Adding satisfies with type assertion on a value. 3. Create a namespace for expando functions and declare the property on the namespace. 4. Factor out expressions in heritage clauses (class B extends <expression>) and give them separate names. Signed-off-by: Hana Joo <hanajoo@google.com>
Configuration menu - View commit details
-
Copy full SHA for 4e506f9 - Browse repository at this point
Copy the full SHA 4e506f9View commit details
Commits on Apr 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0191a46 - Browse repository at this point
Copy the full SHA 0191a46View commit details -
Configuration menu - View commit details
-
Copy full SHA for c9698a3 - Browse repository at this point
Copy the full SHA c9698a3View commit details
Commits on Apr 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 33e82b3 - Browse repository at this point
Copy the full SHA 33e82b3View commit details -
Suggest a type annotation for widened unions of type literals
such as "A"|"B" --> string in case the d.ts emitter widens it. Also expose 'getWidenedLiteralType' as an internal API for the fixer to be able to imitate what the type checker is doing.
Configuration menu - View commit details
-
Copy full SHA for 5704f4e - Browse repository at this point
Copy the full SHA 5704f4eView commit details
Commits on Apr 26, 2024
-
Call widening functions on the correct type when adding satisfies to …
…expressions Widening of types only work on types from variable declaration, so when getWidenedLiteralType is being called on expressions the compiler wouldn't widen it. So call getWidenedLiteralType on the type of variables instead on those cases.
Configuration menu - View commit details
-
Copy full SHA for cb45ffe - Browse repository at this point
Copy the full SHA cb45ffeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 00e507c - Browse repository at this point
Copy the full SHA 00e507cView commit details
Commits on Apr 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 023d32f - Browse repository at this point
Copy the full SHA 023d32fView commit details -
Factor out a functionality to generate a variable name
and reuse it. Remove suggestVariableName as this adds very little value compared to the code size it had.
Configuration menu - View commit details
-
Copy full SHA for 38f6a3d - Browse repository at this point
Copy the full SHA 38f6a3dView commit details -
Update src/compiler/diagnosticMessages.json
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 2086cb9 - Browse repository at this point
Copy the full SHA 2086cb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 03cc990 - Browse repository at this point
Copy the full SHA 03cc990View commit details -
Remove unused imports, also use getEmitDeclarations to check to provi…
…de fixes for them
Configuration menu - View commit details
-
Copy full SHA for c4f0b81 - Browse repository at this point
Copy the full SHA c4f0b81View commit details -
Configuration menu - View commit details
-
Copy full SHA for 69d0044 - Browse repository at this point
Copy the full SHA 69d0044View commit details -
Configuration menu - View commit details
-
Copy full SHA for 48ed32b - Browse repository at this point
Copy the full SHA 48ed32bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1632489 - Browse repository at this point
Copy the full SHA 1632489View commit details