pbechliv Posted June 17, 2020 Share Posted June 17, 2020 Hello and thanks for your time in advance. In my project's codebase we are using the startX and startY attributes of the Draggable instance but these 2 attributes don't seem to exist in the typing in draggable.d.ts . Is there a reason for this or a way to fix it? 1 Link to comment Share on other sites More sharing options...
GreenSock Posted June 17, 2020 Share Posted June 17, 2020 Sure, we can add them to the TypeScript definitions file and docs. Sorry about any confusion there. 1 Link to comment Share on other sites More sharing options...
OSUblake Posted June 17, 2020 Share Posted June 17, 2020 Quick fix would be to add this to a .d.ts file. interface Draggable { readonly startX: number; readonly startY: number; } cc @ZachSaucier 2 Link to comment Share on other sites More sharing options...
pbechliv Posted June 17, 2020 Author Share Posted June 17, 2020 Thanks a lot to both for the fast reply and the recommendation. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now