#Don't know what this is called.

20 messages · Page 1 of 1 (latest)

regal tigerBOT
#
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
lament brook
#

that's what ts is for

#

or you could also use jsdoc

errant falcon
#

Got any links for me to read or..?

lament brook
#

well, both of those are googlable, but sure

errant falcon
#

I want to make sure I'm looking at the right information, sorry.

lament brook
errant falcon
#

Ah, I know this was possible, for example: "async execute(interaction)". Is that no longer available or..?

lament brook
#

vscode (for example) has a typescript server built-in, and ts itself can also process jsdoc within js files
idk about other ides, but they likely have similar setups

lament brook
errant falcon
#

Ah, okay, thank you. I'll do more research on this.

errant falcon
lament brook
#

node can't read that

errant falcon
#

Yeah, did more research and figured that out.

#

Would hate to switch to ts

#

I know this WAS possible.

lament brook
#

well, no, it's just either use ts or jsdoc to provide types

#

"type annotations in js" sounds to me like you're already just writing ts

lament brook
#

i believe you could use d.ts files to avoid a compilation workflow, but that's just more maintenance to keep them in sync than writing ts directly for most cases