-
Notifications
You must be signed in to change notification settings - Fork 72
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
[TypeScript] Array definitions incomplete (missing type) #154
Comments
Is it possible to mark a library as not under typescript definition so that typescript will ignore it and not warn? Maintaining a typescript definition file for this project is pretty difficult to do manually and the automatic generator doesn't appear to be working as well as we would like. |
I'll try to check if it's possible to do this. What are you using to generate the definition file ? If it's an external tools maybe I could ask if they could upgrade their tools ? |
It's worth a go... the tool is: tsd-jsdoc (https://github.com/englercj/tsd-jsdoc) |
Hello, author of the The issue is coming from things like this: ForerunnerDB/doc/Mixin.Updating.js.html Line 64 in 1ec15de
Those annotations should include the array's element type. JSDoc accepts both I'm considering adding an option to assume |
Hi,
Typescript generates lots of warning due to Arrays being untyped.
For example line 1818:
private static _updateSplicePush(arr: Array, index: Number, doc: Object): void;
should be something like :
private static _updateSplicePush(arr: Array<any>, index: Number, doc: Object): void;
in order to prevent those (many) warnings.
The exact error message is :
Thanks
The text was updated successfully, but these errors were encountered: