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

Add a default export to work with TypeScript #431

Merged
merged 1 commit into from
Jan 13, 2018
Merged

Add a default export to work with TypeScript #431

merged 1 commit into from
Jan 13, 2018

Conversation

matthewp
Copy link
Collaborator

TypeScript projects expect the module export to contain a default
property in order for imports to work:

import page from 'page';

This makes that work. In the future page.js will be an ES module so this
won't be necessary.

Fixes #365

TypeScript projects expect the module export to contain a `default`
property in order for imports to work:

```ts
import page from 'page';
```

This makes that work. In the future page.js will be an ES module so this
won't be necessary.

Fixes #365
@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 89.362% when pulling d7a0758 on ts into 08026b5 on master.

@matthewp matthewp merged commit b03110c into master Jan 13, 2018
@matthewp matthewp deleted the ts branch January 13, 2018 12:26
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