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

feat(ts-interface-generator): support non-default-export classes #476

Merged
merged 3 commits into from
Sep 26, 2024

Conversation

akudev
Copy link
Contributor

@akudev akudev commented Sep 23, 2024

  • create appropriate interface for classes which are not default exports; this will make cases work when the default export is an instance of the class (but it still requires the class itself to be exported as named export, so the module augmentation can kick in).

  • Add new way of writing finer-grained tests, so new cases can be covered more easily

  • Re-initialize base types for each generation to handle multiple invocations in different type worlds properly - happens in tests

  • Rename the "testdata" folder to "samples"

- create appropriate interface for classes which are not default
exports; this will make cases work when the default export is an
*instance* of the class (but it still requires the class itself to be
exported as named export, so the module augmentation can kick in).

- Add new way of writing finer-grained tests, so new cases can be
covered more easily

- Re-initialize base types for each generation to handle multiple
invocations in different type worlds properly - happens in tests

- Rename the "testdata" folder to "samples"
@akudev akudev requested a review from petermuessig September 23, 2024 21:11
Copy link
Contributor

@petermuessig petermuessig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akudev akudev merged commit 569ed0b into main Sep 26, 2024
7 checks passed
@akudev akudev deleted the feat/nonDefaultExports branch September 26, 2024 13:59
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

Successfully merging this pull request may close these issues.

2 participants