#Moving from JS to TS

13 messages · Page 1 of 1 (latest)

polar flume
#

I've recently made a decision to move over to TS, what are some things I should know before I do the switch?

shell larkBOT
#
  • 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!
polar flume
#

like what are some things from TS that i can use to help me out

clever swan
#

type everything properly

#

thats it

static oyster
#

the whole point of typescript is it's type system so that's what you would use mostly myDudes

azure cave
split grail
#

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.

azure cave
polar flume
#

how do you even enable strict

limber bane
#

it enables a bunch of settings like no implicit any etc

polar flume
#

ohh ic