Registry entry for typed-jszip #620
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Typings URL: https://github.com/sebastianhaas/typed-jszip
Questions (for new typings):
index.js
<->index.d.ts
)?I took most of the definitions from DefinitelyTyped, as stated in the readme.
There are still two problems existing, I don't really know how to resolve them so I would be glad if somebody could help out.
_Definitions issue_
JSZip uses a constructor-like function to create an instance of
JSZip
. Since they both have the same name, but the first one is an interface in a namespace, using it in typescript will currently result in a rather uglyIs there a way to make JSZip both the name of an interface as well as an object holding a constructor like function?
https://stuk.github.io/jszip/documentation/api_jszip/constructor.html
_Browser test issue_
I wrote tests for all major use-cases, server-side runs fine, but I don't really have experience with
jspm
and I can't get it running on the browser-side. It appears that generator-typings is not producing ready-to-use framework for the browser atm.