Open alex-kinokon opened 2 years ago
I guess it makes sense that TS doesn't like import assertions on type-only imports, they don't serve their purpose in that context. Accordingly deno_graph
shouldn't enforce assertions (or lack thereof) on type-only imports.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
Bug report
There doesn’t seem to be a way to import a JSON module purely as type.
Minimum reproduction:
Linter will also report a
no-assert-type
error. However, if you add the assertion as suggested by the linter, you get: