Skip to content
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

import * as & export * as does not work. #239

Closed
Patrick-clone opened this issue Mar 24, 2023 · 1 comment
Closed

import * as & export * as does not work. #239

Patrick-clone opened this issue Mar 24, 2023 · 1 comment

Comments

@Patrick-clone
Copy link

Bug report
Using import * as and or export * as results in an empty output d.ts file.

Input code
one.ts

export class One {}

two.ts

export class Two {}

combine.ts

import * as One from "./one";
import * as Two from "./two";

export { One, Two };

Expected output

// Generated by dts-bundle-generator v7.2.0

declare module One {
    export class One {
    }
}

declare module Two {
    export class Two {
    }
}

export {};

Actual output

// Generated by dts-bundle-generator v7.2.0



export {};

Additional context
Dts-bundle-generator version: 7.2.0
tsconfig.json:

{
    "compilerOptions": {
        "strict": false,
        "noImplicitAny": true,
        "rootDir": "./",
        "target": "es2017",
        "outDir": "dist",
        "declaration": true,
        "moduleResolution": "node",
        "preserveConstEnums": true,
        "typeRoots": ["./types"]
    },
    "include": ["src"],
    "exclude": ["node_module"]
}
@timocov
Copy link
Owner

timocov commented Mar 25, 2023

Duplicate of #134

@timocov timocov marked this as a duplicate of #134 Mar 25, 2023
@timocov timocov closed this as not planned Won't fix, can't repro, duplicate, stale Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants