-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use collections in Angular? #240
Comments
The latest Would be nice if the package itself provided type declarations. |
I mean, not to be blunt, but this is how OSS works. See a need, fill a need. Does it take time? Yep. Can it be a PITA? Yep. Is everyone so lucky as to be in a position at work where they are allowed/able to contribute to OSS? Nope. But if everyone contributed a line or two, it'd be done quite quickly. |
While I agree with you @icfantv , contribution comes from adoption. Lack of TS support means lower adoption. Also while I would love to contribute by creating the types, you must admit that creating the declaration files requires a solid knowledge of this lib. |
I am using vue3/vite, without It seems to be coming from this line : var DOMTokenList = global.DOMTokenList || function(){}; And as stated by MDN, |
Probably doing something wrong here
npm install collections
npm install @types/collections
then I tried to import in various ways
import * as collections from 'collections/sorted-set';
or
import * as collections from 'collections';
but the best I get is a runtime error
ReferenceError: global is not defined
at
generic-collection.js:8
How do I do it?
The text was updated successfully, but these errors were encountered: