-
Notifications
You must be signed in to change notification settings - Fork 7
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
default exports not working #73
Comments
In Would you like to contribute to this? |
I could work on it if you can explain further |
I think the easiest way is to checkout the project. run it.only("should export 'default' classes, async () => {
const data = await parseData(`<your jsdoc / javascript goes in here`);
const parser = new JSDocTsdParser();
// Step in here to check why the flag is not set
parser.parse(data);
// Get the transformed class
const result = parser.resolveMembership();
result.should.include.keys("One");
const classDeclaration: dom.ClassDeclaration= result.get("One") as dom.ClassDeclaration;
// Ensure that the flag is set correctly
expect(classDeclaration.flags).to.equal(dom.DeclarationFlags.ExportDefault);
// You don't have to do this in the test, but you can get the result dts with
const dts = parser.generateTypeDefinition();
console.log(dts);
}); You can debug the test with vs code config |
For example, the below code does not generate the correct typing definition
It generates the below type description which does not include the default export
It's missing the default export
The text was updated successfully, but these errors were encountered: