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

Crashes with import types #160

Closed
orta opened this issue Jan 8, 2023 · 1 comment
Closed

Crashes with import types #160

orta opened this issue Jan 8, 2023 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers typescript TypeScript compatibility or extensions

Comments

@orta
Copy link

orta commented Jan 8, 2023

This type can't be used inside a .civet file:

type CompilerOptions = import("monaco-editor")

Assume it's just not been added yet:

unknown:1:30 Failed to parse
Expected:
Dot "."
Whitespace /[\s]+/
JSMultiLineComment "/*"
@edemaine edemaine added bug Something isn't working typescript TypeScript compatibility or extensions good first issue Good for newcomers labels Jan 8, 2023
STRd6 added a commit that referenced this issue Jan 13, 2023
@STRd6 STRd6 closed this as completed in 5690968 Jan 13, 2023
@edemaine
Copy link
Collaborator

@orta Import types should now be available in v0.5.38.

You can even write it without parentheses if you prefer:

type CompilerOptions = import "monaco-editor"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers typescript TypeScript compatibility or extensions
Projects
None yet
Development

No branches or pull requests

2 participants