expo-api-docs
Installation
SKILL.md
Documenting Expo APIs
Guidelines for writing TSDoc comments in Expo SDK packages. The docs generation system (GenerateDocsAPIData.ts + TypeDoc) extracts these comments to produce API reference documentation.
Document APIs as you write them, not as an afterthought. When implementing new features, write TSDoc comments alongside the code.
When to Use
- Implementing new features that expose public TypeScript APIs
- Adding or modifying public APIs in
packages/expo-* - Documenting functions, types, interfaces, constants, or enums
- Adding platform-specific annotations
- Writing code examples in docblocks
Core Principles
- Third-person declarative — describe what the function does, not what to do
- Explain the iceberg — document failure modes, side effects, concurrency behavior, not just params/returns
- Quality over quantity — no docs is better than useless docs like "The width" for a
widthproperty