-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
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
Wrong typings generated when import() is used for types #152
Comments
Am I right that the problem is that there are |
yes if i move these types into export file avoid import |
I have a very similar issue |
@Kilcekru yes, FabricDebugCallbackData has been exported!:) |
I'll try to fix it. |
index.d.ts
The new version 5.9 has been published with the fix. |
:) great news again! |
hi @timocov i have another question about this issue. it seems that it lose tsconfig.json with ....
/**
* comments for fabric utils.
*/
export declare const fabricUtils: {
setDebugStatus: (options: FabricDebugOptions) => FabricDebugCallbackData;
};
export declare const fabricX: () => string;
export {}; expect result should be ....
/**
* comments for fabric utils.
*/
export declare const fabricUtils: {
/**
* comments for method `setDebugStatus`
* @param options
* @returns
*/
setDebugStatus: (options: FabricDebugOptions) => FabricDebugCallbackData;
};
export declare const fabricX: () => string;
export {}; |
Bug report
Bad Typings code generated
npx dts-bundle-generator src/index.ts -o index.d.ts
Sample demo is here
Input code
src/index.ts
src/fabric-utils/index.ts
src/fabric-utils/set-debug.ts
src/fabric-utils/type.common.ts
src/fabric-utils/type.debug.ts
Expected output
Actual output
Additional context
typescript@^4.2.3
,dts-bundle-generator@^5.8.0
The text was updated successfully, but these errors were encountered: