Nested typeof operators appear to lead to incorrect isolatedDeclerations emit
Source code:
import { CoreModule } from "library/core/module";
import { MixinFunction } from "library/core/mixin";
export const BaseFeature: ReturnType<
typeof MixinFunction<typeof CoreModule>
> = MixinFunction(a);
Expected:
import { CoreModule } from "library/core/module";
import { MixinFunction } from "library/core/mixin";
export declare const BaseFeature: ReturnType<typeof MixinFunction<typeof CoreModule>>;
Actual:
import { MixinFunction } from "library/core/mixin";
export declare const BaseFeature: ReturnType<typeof MixinFunction<typeof CoreModule>>;
Note the missing CoreModule import, resulting in an invalid .d.ts file
Thanks for your awesome work on this library! ❤️
Nested
typeofoperators appear to lead to incorrect isolatedDeclerations emitSource code:
Expected:
Actual:
Note the missing
CoreModuleimport, resulting in an invalid.d.tsfileThanks for your awesome work on this library! ❤️