ah, I see - it's worth raising an official TS issue about it. The problem is there is no clear way to synthesize a reference to this type using import("foo").Type syntax and that's how type references are emitted
Comments
Log in with your Bluesky account to leave a comment
it's certainly fixable today because the compiler could emit an import type statement and aut-generate a valid local identifier for what it wants but perhaps the TS team would like to make it work with `import().Type`
Comments
https://www.typescriptlang.org/play/?#code/JYOwLgpgTgZghgYwgAgGIHt3IN4F8BQ+EAHgA7pRg5qbJwDOyARAH4bpPIH4D0PyAC3QB3ZABMsAV2TCowSMnkB+ZCHRhgSZGAFwqAAzaZ9ixnElh0AWgToAtqQA2EMHABGzwdAi9+wgZoCpnSO9FhqVLZQUBAIVADmwABuECCKYADkjBHI8eggIHDIbihJcI7AYnQwkFDItg7OGvn4YACepCgAKhD0VAC8ig4UYAAUGQB0PKCkFhkAlBNG6EA