DashboardcliCommandDocumentation wrapper types

CommandDocumentation wrapper types

Category: gotcha
Confidence: 1.00
ID: 01a08738-3267-7c25-a1c8-dd24da22edea
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 0
Source session: 1UT0KX8W4zH7hqVRY
Created: 2026-09-08 20:42:56
Updated: 2026-09-09 17:30:02

Content

Trap: narrowing command-wrapper documentation to { brief, fullDescription? } looks type-safe because each wrapper uses few fields, but metadata such as customUsage and examples survives transpile-only generation while tsc fails with TS2353. Fix: export and reuse the shared CommandDocumentation in list, mutation, delete, and other wrappers so all current and future metadata propagates without type drift.

Move to: