You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(api): Move runtime constant definitions from @commontools/api to @commontools/runner (#2004)
chore(api): Move runtime constant definitions from @commontools/api to @commontools/runner
Changed ID, ID_FIELD, TYPE, NAME, and UI from concrete exports to ambient declarations in @commontools/api, getting it closer to being a pure TypeScript interface package. The actual runtime values are now defined in @commontools/runner/src/builder/types.ts, where the runtime environment is created. Type compatibility is maintained by having the runner reference the API's declared types using typeof, ensuring both locations share the same TypeScript symbol types.
`schema` and `toSchema` are now being defined in runner as well.
`h` is now defined in the `html` package.
Non-pattern code like tests or Lit components should import the types from @commontools/runner instead of @commontools/api
0 commit comments