Structure #
A specification is a regular ES module. The following examples use TypeScript, but you may also write them in JavaScript. If you do use TypeScript, you’ll want to install the types from @antithesishq/bombadil.
Both properties and action generators are exposed to Bombadil as exports:
export const myProperty = ...;
export const myAction = ...;You may split up your specification into multiple modules and structure it the way you like, but the top-level specification you give to Bombadil must only export properties and action generators.