Closed frantic1048 closed 5 years ago
With existing type definition, ts could not recognize resumable.js as a module nor find the default export info.
However, resumable.js is actually a UMD module. And it has default export.
This PR fixes the type definition to make resumable.js could be correctly recognized as a module in ts. And then ts user could use resumable.js as a usual module like:
import Resumable from 'resumable.js' const resumable = new Resumable()
Can we get this thing merged :)
With existing type definition, ts could not recognize resumable.js as a module nor find the default export info.
However, resumable.js is actually a UMD module. And it has default export.
This PR fixes the type definition to make resumable.js could be correctly recognized as a module in ts. And then ts user could use resumable.js as a usual module like: