Generate TypeScript definitions for DocTypes on the fly
summary
A small Frappe app called frappe typescript type generator watches Doctype creations and updates and writes TypeScript interfaces into the front end, placing files like mab/src/types/asset_registers/drawing_file.ts and grouping by module. Generated interfaces include correct primitives, select union types for options, optional/null markers, and field descriptions as comments. Used with a React + TypeScript app and the existing getDoc hook, it eliminates manual backend↔frontend edits and produces immediate autocomplete and compile-time errors, and it works in the My Asset Buddy codebase.
AI-written summary · about








