π Search Terms
import elided declarations
π Version & Regression Information
- This changed between versions 5.5-beta and 5.5-rc
β― Playground Link
Workbench
π» Code
// @declaration: true
// @filename: utils.ts
export interface Evt { }
// @filename: decl.ts
import {Evt} from './utils'
export const o = <T>(o: T) => () : T => null!
// @filename: main.ts
import { o } from './decl'
import { Evt } from './utils'
export const f = { o: o({ v: null! as Evt}) };
π Actual behavior
main.d.ts contains f: { o: () => { v: Evt; }; } but the import for Evt is elided from the declaration file.
π Expected behavior
Evt should be preserved in the declaration file.
Additional information about the issue
No response