Skip to content
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

feat: support constructor node types #1512

Merged
merged 3 commits into from
Dec 21, 2022

Conversation

flugg
Copy link
Contributor

@flugg flugg commented Dec 20, 2022

Hi again! Sorry for "spamming" with PRs - hope you find them useful.

This time I would like to propose a new parser for constructor types, kind of like what the package currently has for function nodes. And similarly to functions, there's no built-in formatter for constructors, so that's kind of up to the user. But it's still nice if the parsing doesn't fail when referencing a type which uses a constructor (even though we're actually not interested in the type at all and have excluded it using Pick). One example of such a type is React's ReactElement which has a JSXElementConstructor, quite similar to the test case I added.

I used the same assertMissingFormatterFor utility function as used in the previous PR (#1511)

@domoritz domoritz changed the title Support constructor node types feat: support constructor node types Dec 21, 2022
@flugg
Copy link
Contributor Author

flugg commented Dec 21, 2022

Fixed the conflicts here

@domoritz domoritz merged commit 888f691 into vega:next Dec 21, 2022
@flugg flugg deleted the feature/support-constructor-types branch December 21, 2022 15:13
@github-actions github-actions bot mentioned this pull request Dec 22, 2022
@github-actions
Copy link

🚀 PR was released in v1.2.0 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants