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

Refactored types #519

Merged
merged 2 commits into from
Nov 25, 2019
Merged

Refactored types #519

merged 2 commits into from
Nov 25, 2019

Conversation

dolezel
Copy link
Contributor

@dolezel dolezel commented Nov 25, 2019

No description provided.

@dolezel dolezel merged commit c159f43 into next Nov 25, 2019
@dolezel dolezel deleted the types_refactoring branch November 25, 2019 14:08
const migrationRunner = require('../index')

const { Migration } = migrationRunner
const { default: migrationRunner, Migration } = require('../dist')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Cool ✨
Didn't know that this is possible

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The problem is, that typescript does not produce commonjs compatible default export.
microsoft/TypeScript#2719
But as the es6 is future 🙏 and many other packages switched to using es6 exports/imports, I will not try to fix it...

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