# Generates the frontend's TypeScript types from the Go structs, which are # the single source of truth for parameters and results (see tool-handoff.md). # Regenerate with: go generate ./... packages: - path: "github.com/JustinZeus/spreadlab/internal/engine" output_path: "web/src/types/engine.ts" include_files: - "scenario.go" - path: "github.com/JustinZeus/spreadlab/internal/api" output_path: "web/src/types/api.ts" include_files: - "api.go" frontmatter: | import type { Config, Result } from "./engine"; type_mappings: engine.Config: "Config" engine.Result: "Result"