Files

9 lines
308 B
Diff

--- old.noInferRedeclaration.js
+++ new.noInferRedeclaration.js
@@= skipped -20, +20 lines =@@
//// [a.d.ts]
export declare const f: <T>(x: T, y: NoInfer<T>) => T;
//// [b.d.ts]
-export declare const g: <T>(x: T, y: globalThis.NoInfer<T>) => T;
+import { f } from "./a";
+export declare const g: typeof f;