developit/unfetch

Isomorphic-unfetch typescript definition error

deptno opened this issue · 2 comments

Hi.

https://github.com/developit/unfetch/blob/master/packages/isomorphic-unfetch/index.js#L1

code uses module.exports, but definition is using export default, I think it should be export = in https://github.com/developit/unfetch/blob/master/packages/isomorphic-unfetch/index.d.ts#L17

and use with `import * as fetch from 'isomorphic-unfetch'

Related issue

Definitely - would you be up for PR'ing that change?