#Moving from JS to TS
13 messages · Page 1 of 1 (latest)
- 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!
like what are some things from TS that i can use to help me out
type everything properly
thats it
the whole point of typescript is it's type system so that's what you would use mostly 
The main thing that it makes useful when it comes to D.JS imo is what you need to typeguard/check for null. I'm sure you'd much rather find out about these errors right in your editor during development than during production and therefore have to take your bot down.
Setting TypeScript to strict also helps to make your life a bit more miserable and overwhelming, but you going to thank yourself couple months later when your project gets complex.
Has never caused me any issues tbh, I always enable strict
how do you even enable strict
in the tsconfig
it enables a bunch of settings like no implicit any etc
ohh ic