TypeScript
Here’s a sample repository: https://github.com/BoundaryML/baml-examples/tree/main/nextjs-starter
To set up BAML in typescript do the following:
Install BAML VSCode Extension
https://marketplace.visualstudio.com/items?itemName=boundary.baml-extension
- syntax highlighting
- testing playground
- prompt previews
Update your package.json
This command will help you convert .baml
files to .ts
files. Everytime you modify your .baml
files,
you must re-run this command, and regenerate the baml_client
folder.
Our VSCode extension automatically runs this command when you save a BAML file.
package.json