Skip to content

Add undefined to Symbol.declarations' type - #42975

Merged
Nathan Shively-Sanders (sandersn) merged 4 commits into
masterfrom
add-undefined-to-Symbol.declarations
Mar 1, 2021
Merged

Add undefined to Symbol.declarations' type#42975
Nathan Shively-Sanders (sandersn) merged 4 commits into
masterfrom
add-undefined-to-Symbol.declarations

Conversation

@sandersn

@sandersn Nathan Shively-Sanders (sandersn) commented Feb 26, 2021

Copy link
Copy Markdown
Member

Symbol.declarations now has type Declaration[] | undefined.

Symbol.declarations now has type `Declaration[] | undefined`.

I made a mistake somewhere in the checker related to JS checking, so
there are quite a few test failures right now.
@ajafff

Copy link
Copy Markdown
Contributor

While you are at it, could you fix the rest of #24706 as well?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No good understanding of the highlevel change, but two picky comments...

Comment thread src/compiler/builderState.ts Outdated
Comment thread src/compiler/checker.ts Outdated
@sandersn
Nathan Shively-Sanders (sandersn) deleted the add-undefined-to-Symbol.declarations branch March 1, 2021 22:32
@sandersn

Copy link
Copy Markdown
Member Author

Ahmed Jaffery (@ajaff) I'm going to see how easy it is to fix valueDeclaration too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug Housekeeping Housekeeping PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants