-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add to definitely typed? #42
Comments
I have never created such a file, it will be cool if someone will make a PR. |
Someone created one: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/knockout.es5 |
I'm having problems using the knockout.es5 typing mentioned above. I can't add an import statement because the typing doesn't appear to export anything. I.e typescript won't let me do this: import knockoutes5 = require("knockout-es5"); because it says "knockout-es5" isn't a module. Any ideas how to solve this? |
I am not sure if it has been updated but I ended up editing the default one, here is how it looks:
Then I do
|
Thanks @grofit Is the import for knockout still needed when you do that - or can I just import es5? I am currently doing this:
Cheers! |
the d.ts should not effect things, to my knowledge you do The ONLY quirk around this I found was libraries that self extend the ko instance like I will raise an issue on ko validation around this. |
Just updated my definitions and having problems getting es5 working again now that I have openedup a stack overflow here: https://stackoverflow.com/questions/47671487/knockout-es5-typings - would really appreciate a working example! |
Any chance we could get a d.ts file to add the tracking and stuff to the ko interface.
The text was updated successfully, but these errors were encountered: