For us, the main problem was our low level components. You could not properly type new features, because they would use still untyped low level components. These where often so complex that our juniors could not convert them, so they used any or stayed on JS.
-
-
-
Did those components also need to be converted to TS or would you have been OK with adding types in a d.ts file and just leaving them as JS?
- 3 more replies
New conversation -
-
-
Not exactly a “snag”, but one of the most time consuming things is when you add types and catch legitimate bugs that have always been there. Definitely a positive but it can reveal some sticky bugs you weren’t prepared to address.
-
Yes! This! We're in the middle of this now and so many times it's been like "how does this even actually work now??" Most commonly, some data is optional at collection, but other code crashes if it's not there, and there's no consideration for getting from one state to the other.
- 1 more reply
New conversation -
-
-
Recent snag I helped someone with: The "export = and import = require()" docs are really important for those who are trying to type CJS modules without breaking anything. It would be helpful if they were more "front and center". https://www.typescriptlang.org/docs/handbook/modules.html …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I became too productive and my manager gave me more bugs to fix.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
1. No typings for dependencies (wrote custom one just for the stuff we actually use) 2. Partially/Badly typed packages. 3. The number of errors after enabling noImplictAny is hard to deal with (no migration is complete until this is enabled IMO)
- 1 more reply
New conversation -
-
-
Running tests with ts-node. It's slow and behaves quite differently from tsc, so some things break in ts-node and not in tsc.
-
if you are using jest, try ts-jest
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.