We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug report
Input code
// index.ts import { fn } from "./other-file"; export function a() {} a.fn = fn;
// other-file.ts export function fn() {}
Actual output
// Generated by dts-bundle-generator v9.5.1 declare function fn(): void; export declare function a(): void; export declare namespace a { var fn: typeof fn; } export {};
Notice that the type of var fn refers to var fn and not to function fn
var fn
function fn
Expected output
Maybe this?
// Generated by dts-bundle-generator v9.5.1 declare function fn(): void; type fn_type = typeof fn; export declare function a(): void; export declare namespace a { var fn: fn_type; } export {};
or this
// Generated by dts-bundle-generator v9.5.1 declare function fn$1(): void; export declare function a(): void; export declare namespace a { var fn: typeof fn$1; } export {};
Additional context
This also happens in rollup-plugin-dts
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug report
Input code
Actual output
Notice that the type of
var fn
refers tovar fn
and not tofunction fn
Expected output
Maybe this?
or this
Additional context
This also happens in rollup-plugin-dts
The text was updated successfully, but these errors were encountered: