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

FlagValue/typeDefaultRequired
--configstringroku-config.ts found by walking upwardno

--config

path to config file

Example:

rk gen-types --config apps/demo/roku-config.ts

Examples

rk gen-types
rk gen-types --config ./roku-config.ts

Did this page help you?