Closed boneskull closed 5 years ago
a prereq to this is probably going to be more docstrings.
Adding
// @ts-check
to the top of a JS file lets VSCode validate the types (to the best of its ability) against existing TS types. This seems like a good way to ensure they are correct while implementing.
There's likely also a way to do the type checks as part of the build.... that way might actually be conversion to TypeScript. not sure.
this is essentially done, but not yet merged.
this is resolved by a7400201fa3e6ee75e48e40af0b8270fbd3e4761
ansi-escapes has an example of providing types and testing those types.