visionmedia / page.js

Micro client-side router inspired by the Express router
http://visionmedia.github.com/page.js
7.67k stars 687 forks source link

Add a default export to work with TypeScript #431

Closed matthewp closed 6 years ago

matthewp commented 6 years ago

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

coveralls commented 6 years ago

Coverage Status

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