Open ghost opened 6 years ago
This is entirely because we strive not to rewrite people's code, and so during declaration emit, we preserve their interop-requiring-import-style. I'm... not sure if it's a bug or just unfortunate? I know prior to the new declaration emitter it'd be in the "unfortunate" category, since we also had the same problem with noImplicitAny
; but the new declaration emitter solved all those problems by annotating any
's on anything missing them. So in that same vein, I can conceive us changing our emit to automatically fix this up, too.
IMO - this is the (implied) expected behavior of auto-generated declaration files. You would think your generated declarations would be "universally" consumable, but as of now - they're unfortunately not :( I'd be very happy to see this fixed (assuming I can call it a bug).
Bump. It would be great if this was fixed. 😄
TypeScript Version: 3.2.0-dev.20181019
Search Terms:
Code
Expected behavior:
Output
.d.ts
is:Actual behavior:
Discovered in
quill
on DefinitelyTyped, which imports fromquill-delta
, which is written in TypeScript withesModuleInterop
.