planttheidea/moize

Typescript Import Error

Closed this issue · 2 comments

I got an error importing moize in TypeScript, although it did work fine.

Error:
Screen Shot 2019-04-12 at 11 16 39 AM

Opening up the typing file I noticed this error:
Screen Shot 2019-04-12 at 11 16 28 AM

My thought here is we could just change that to:
export default moize; or wrap everything in a declare module with export default.

I'll send a PR for your review.

@planttheidea Thanks for merging, cutting a release and all!

@PaitoAnderson no worries, thanks for the PR! Makes it easy. 😃