Closed stared closed 1 year ago
Thanks for the great explanation. Will take a look at it.
@stared can you give the new version (0.9) a try. Tested default exports of interfaces and classes + inheritance , but maybe I missed some cases.
Thanks @demike!
It works, but almost. Nodes are fine, named, and unique. But person
is of the type default
instead of Person
.
Ahhh forgot the members ... Will do that
@stared the new version 0.10.0 should support members of "default export type"
Works like a charm - thank you!
First, thank you @demike for developing this nice and useful project! :)
However, it does not work well with
export default class
. That is:I prepared a minimal example, https://github.com/stared/tsuml2-default-export-error-example (commit 7e2a479 for the version resulting in an error):
I run
tsuml2 --glob "./src/**/*.ts" -m
and get:Changing to non-default export makes it work (https://github.com/stared/tsuml2-default-export-error-example/commit/c9d15ec0fb16ce2dbd0f3f4e419c1b54ed905952):
My project has plenty of default exports. To create a diagram I need to manually change them not non-default exports (and consequently, non-default imports).
Is there a way to make it work?