Description:
Sequelize generates the database object during runtime, so it is not
easy to add types. Nonetheless, types make development a lot
faster and reduce errors. So, we built a script to generate these
types at my company. This worked fine for auto completion, but when
you clicked on the model names, it would take you to the type
declaration, not the model or function definition. This was
troublesome and inefficient.
So my colleague and I built this extension for VS Code that allows
us to include where the model is defined in our types. Now, clicking on the
model or properties takes us here, making development faster and more intuitive.
This is useful for any library that uses factories, or any
library that is written in a non-typed language. It is an open
source project, so it is available for free on the VS Code
marketplace.
An improvement we are working on is adding this script for
sequelize, so people can easily add types to their old sequelize
models.
Languages:
TypeScript
Frameworks:
VS Code Extensions
Platforms:
VS Code
Tools:
Typescript (program), VS Code Extension API