Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

--modular flag generates type imports without type keyword which triggers ts(1444) #7

Open
wvffle opened this issue Jul 6, 2022 · 0 comments

Comments

@wvffle
Copy link

wvffle commented Jul 6, 2022

In a project that I am working on, we have strict typescript rules enabled and every imported type must be a import type { Type } from 'module' type of import. Otherwise it triggers an error:

image

The correct code generated here should be:

import type { Actor, Album, Artist, Library, Track } from "./data-contracts";
import type { RequestParams } from "./http-client";
import { ContentType, HttpClient } from "./http-client";
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant