rk gen-types
Summary
Generate .xml.d.ts declarations for XML components imported by the project.
Description
Runs the declaration-generation half of the synchronization step that rk build / rk dev perform before type-checking, without building, deploying, or deleting orphan .xml.d.ts files. Use this so pnpm run type-check (or plain tsc --noEmit) succeeds on a fresh checkout before any build has run. Honours app.tsconfigPath and dtsOptions from the project config, the same way rk build does.
Usage
rk gen-types [options]Options
| Flag | Value/type | Default | Required |
|---|---|---|---|
--config | string | roku-config.ts found by walking upward | no |
--config
path to config file
Example:
rk gen-types --config apps/demo/roku-config.tsExamples
rk gen-types
rk gen-types --config ./roku-config.tsUpdated about 4 hours ago
Did this page help you?