At Forest Admin, we strive to provide the best internal tool experience for every user, and also the best development experience for those who set it up.
What are the biggest advantages of TypeScript?
- Tighter integration with your editor, with relevant suggestions, code completion and more tools.
- Static type checking allowing early error catching and type inference due to strong type approach of coding.
Modern editors are smart enough to fetch the Types definition of the packages you are using. Types clearly indicate what the package exports, and what do the exported code looks like. In other words, it describes the package and tells the developer what to use, and how to use it.
Now, with the Types included in our packages, here is what your editor will propose:
How about that? Everything related to the context you are working with is proposed. In this case, we have strongly typed our smart field configuration system and each attribute allowed by Forest Admin to configure a smart field is at your disposal. There is no need to reach the documentation. In addition, please note that the editor clearly shows the type of what is proposed (and thus, the value you can use).
What does it mean for you as a TypeScript developer?
By integrating Types we wanted to ease the development of your admin panel, and make your developers' coding experience better. They clarify how our tool looks like while coding, and help you with some suggestions and code completion.
We are also now fully compatible with TypeScript. It means you can make a further step by coding your internal tool and work on your Forest Admin integration directly using TypeScript with scalability, velocity, strength, and robustness in mind.