Skip to content

Fix types of automatic and classic runtimes #11

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

Merged
merged 5 commits into from
May 4, 2021
Merged

Fix types of automatic and classic runtimes #11

merged 5 commits into from
May 4, 2021

Conversation

remcohaszing
Copy link
Member

Initial checklist

  • I read the support docs
  • I read the contributing guide
  • I agree to follow the code of conduct
  • I searched issues and couldn’t find anything (or linked relevant results below)
  • If applicable, I’ve added docs and tests

Description of changes

This specifies the children prop must be a valid xast child for the automatic runtime, but a valid attribute for the classic runtime.

Nesting properties in a `@typedef` type annotation will generate a namespace,
which can be used to generate the required JSX namespace.
This specifies the children prop must be a valid xast child for the automatic
runtime, but a valid attribute for the classic runtime.
@remcohaszing remcohaszing requested a review from wooorm May 3, 2021 20:19
Copy link
Member

@ChristianMurphy ChristianMurphy left a comment

Choose a reason for hiding this comment

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

Thanks @remcohaszing!
Looks good, seems that in the process it also fixed an ESLint warning, and the linter now wants the disable removed

 /home/runner/work/xastscript/xastscript/test-d/classic.tsx: line 10, col 19, Error - '@typescript-eslint/no-unsafe-argument' rule is disabled but never reported. (eslint-comments/no-unused-disable)

Copy link
Member

@wooorm wooorm left a comment

Choose a reason for hiding this comment

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

One or two small things!

@wooorm wooorm changed the title Fix automatic runtime children types Fix types of automatic and classic runtimes May 4, 2021
@wooorm wooorm merged commit 401082d into syntax-tree:runtime-types May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants