https://www.boundaryml.com logo
🟡 Request for Examples of Generating TypeScript A...
# questions
s
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
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
Thanks @greg (BAML). Proceeding with this approach.