fridays / next-routes

Universal dynamic routes for Next.js
MIT License
2.47k stars 230 forks source link

fix: switch wildcard imports for more specific named imports [typescript] #158

Closed disintegrator closed 6 years ago

disintegrator commented 6 years ago

The default imports in the module typings were not necessary. Instead, we used imports and select the exact bits we need out of http and next. This has the nice side-effect of being compatible with environments where esModuleInterop is either true or false.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 96.104% when pulling 7f7521b760ab7fac24218b9cc19b2fc4b0d4f7d5 on disintegrator:ts-esinterop into f713c1ed1e371d4209a20f64b32c3ad15fa5325c on fridays:master.

fridays commented 6 years ago

Sounds great!