Typing models with jsdoc #17012
Unanswered
boxfoot
asked this question in
Help & Questions
Replies: 1 comment 1 reply
-
@boxfoot I'm in the same boat, were you able to find another way to approach this? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to set up typescript typings on my models using plain javascript with jsdoc, trying to adapt this guide
So far I've been successful when using a separate
.d.ts
file to help with some utilities. This works, for example:I'd really like to try to do this with just javascript, leaving out the
.d.ts
file, but can't figure out how. DefiningQuestionAttributes
andQuestionCreationAttributes
is easy enough using@typdef
, but I can't figure out how to combine or apply theQuestionInstance
type.Here's the closest I've gotten so far:
Thanks for any help or suggestions!
Beta Was this translation helpful? Give feedback.
All reactions