I will be posting a series of Thank you <techstack-component> posts to thank some of the important technologies used in building SQL Frames starting with this one about TypeScript.
Building a major framework with the goal to make it easy to use, by as many as possible and to solve as many use cases as possible, the choice of the programming language can potentially make a huge difference. SQL Frames gladly embraced TypeScript. As this was done mid-way after several thousands of lines of code, it was not a trivial effort. However, it did pay off well.
anys and almost no
unknowns to gradually getting rid of most
anys with some
In spite of lots of manual testing and some test automation there have been some bugs that were easily surfaced due to type checking errors. All of these have been fixed and that's part of the reason to move away from
any and if necessary towards
Another reason to move towards TypeScript was the fact that there is a way to use TYPE DOC to auto generate documentation for the API.
While there are several benefits of moving to TypeScript the single most drawback is the build time. What used to take few seconds using rollup.js ended up being several seconds. This killed the productivity for a while but that has been solved and will be discussed in another post.