This code generates TypeScript types from prix-fixe menus.
You can build and run this code locally, but we recommend GitHub Codespaces.
Once you have your development environment configured, build the code with npm run compile
or tsc --watch
.
Run the script with node build/src/index.js
. This code will read the menu at samples/menu/menu.yaml
and print Typescript to standard out.
You can read more about the menu structure in the Interactive Menu Explorer Tutorial and Prix Fixe Concepts.