tralves / nativescript-tweenjs

Use Tween.js in your NativeScript apps.
MIT License
14 stars 0 forks source link

Typings? #4

Open Lelelo1 opened 5 years ago

Lelelo1 commented 5 years ago

How can I set up typings to work in typescript for this module? I have noticed the example is in typescript. However I get no intellisense in my ts (react-nativescript) project. There is also no type declerations available at: @types/nativescript-tweenjs.

tralves commented 5 years ago

I don't use TypeScript much and I can't test it right now, but maybe this will help:

All nativescript-tweenjs is exposing the tween.js library in NativeScript. Maybe you can use the tween.js typings @types/tween.js?

Tell me if it works and I will update the docs.

Lelelo1 commented 5 years ago

Simply installing @types/tween.js did not help. I do get IntelliSense when importing tween directly - after npm i @types/tween.js.

tralves commented 5 years ago

I see... I probably have to add typings to this package so the lib is exported with the right typings. I may take a shot at that, but since I am not versed in TS, it may take a while.

If you figure it out... PRs are welcome! This plugin is just one little file, so...