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:
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";
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:The correct code generated here should be: