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

interpreter can be null, but types doesn't support it. #46

Open
whiteand opened this issue Jul 13, 2022 · 0 comments
Open

interpreter can be null, but types doesn't support it. #46

whiteand opened this issue Jul 13, 2022 · 0 comments

Comments

@whiteand
Copy link

Example:

const code = print({
          type: "Module",
          span: {...},
          interpreter: null as any, // here
          body: [],
})

I don't want to have an interpreter as a first line in the code. So I passed null here. But types don't have null as an option for interpreter property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant