I am planning to use BAML to generate Typescript APIs(Service/Controller/Router files) and test cases (playwright files) around that. Any reference/examples to typescript generation BAML ?
g
greg (BAML)
09/20/2025, 5:42 PM
BAML functions are much better at generating strucured data than source code. If you want source code, your BAML function's return type shoud be
string
, and you'll need to specify in the prompt what sort of TypeScript code you want to generate (e.g. what dependencies are Ok).
s
Suresh Unnikrishnan
09/22/2025, 5:49 AM
Thanks @greg (BAML). Proceeding with this approach.