Generates TypeScript code from the provided type collection.
(self)
| 84 | |
| 85 | /// Generates TypeScript code from the provided type collection. |
| 86 | pub fn write(self) -> String { |
| 87 | Codegen::new().build(&self.program).code |
| 88 | } |
| 89 | |
| 90 | /// Adds a type declaration to the program body by its `TypeId`. |
| 91 | /// |