-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
AnimStateGraph: Add JSDoc types #2986
Conversation
AnimStateGraph_DataFromObjectLayer: Extend type of states/transitions
Fix lint
@willeastcott @ellthompson is this a PR that we can review + merge? |
How does this affects docs generation? |
Good point, it currently produces a 404, which should be fixed to produce a proper object description (maybe inline):
I mainly did this for |
Eavesdropping in, but I'd love to see support for explicit TS definition contributions somehow. Been doing a bunch of work to get proper types for some things, but not sure how I could possibly contribute the work to the project at all: https://gist.github.com/vmwxiong/eabc60834b32801f5a38de99f4acad80 |
The generated For more "advanced" typing like yours it would make sense to append it directly to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviews and change
Any is good enough, we shouldn't overcomplicate types like this. |
Disappointed to see the project not moving to support type safe definitions. |
@vmwxiong I think you missed this conversation: playcanvas/model-viewer#98 (comment) The plan is to make You may have also noticed this week that I have submitted several issues on the repo about improving the Typescript definitions. So saying that 'the project is not moving to support type safe definitions' is not fair or accurate, IMHO. The only time it is difficult to solve typing definitions problems is when it negatively impacts the quality of the API reference manual. Otherwise, everybody is excited to be improving the quality of the typings. |
Ah, thanks for the clarification, apologies for jumping to conclusions
…On Thu, Nov 11, 2021, 10:52 AM Will Eastcott ***@***.***> wrote:
@vmwxiong <https://github.com/vmwxiong> I think you missed this
conversation: playcanvas/model-viewer#98 (comment)
<playcanvas/model-viewer#98 (comment)>
The plan is to make AnimStateGraph internal. So this is no longer an
issue.
You may have also noticed this week that I have submitted several issues
on the repo about improving the Typescript definitions. So saying that 'the
project is not moving to support type safe definitions' is not fair or
accurate, IMHO. The only time it is difficult to solve typing definitions
problems is when it negatively impacts the quality of the API reference
manual. Otherwise, everybody is excited to be improving the quality of the
typings.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2986 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARC2QNQR5Y6NZ2FVFC5J5NLULQGIPANCNFSM4ZORQZJA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Currently there are no types in
playcanvas.d.ts
:This PR implements all the types the class
AnimStateGraph
accepts:This enables Intellisense for e.g. PC Viewer:
Fixing ESLint is not so easy, because I am running into some VSCode/TypeScript issue or so: eslint/eslint#14235
I confirm I have signed the Contributor License Agreement.