Skip to content

Improve generated API doc comments (match baseline) (#57380)#57380

Closed
huntie wants to merge 1 commit into
react:mainfrom
huntie:export-D109316360
Closed

Improve generated API doc comments (match baseline) (#57380)#57380
huntie wants to merge 1 commit into
react:mainfrom
huntie:export-D109316360

Conversation

@huntie

@huntie huntie commented Jun 30, 2026

Copy link
Copy Markdown
Member

Summary:

Surface documentation on hover for more APIs in the generated TypeScript types (types_generated/).

Changes

  • Fix doc comments that were previously detached from the intended symbol (Modal, Button, TextInput, ScrollView, and others).
  • Migrate doc comments/extra detail present in the legacy hand-written .d.ts files but missing from Flow source.
    • (Note: The quality of these vary — but lift the equivalent current state into Flow land.)
  • Reformat malformed JSDoc comments across the codebase.

Comments only — no code or type changes. Does not look to audit/improve doc comments beyond today's manual TS API baseline.

Changelog: [Internal]

Differential Revision: D109316360

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 30, 2026
@meta-codesync

meta-codesync Bot commented Jun 30, 2026

Copy link
Copy Markdown

@huntie has exported this pull request. If you are a Meta employee, you can view the originating Diff in D109316360.

huntie added a commit to huntie/react-native that referenced this pull request Jun 30, 2026
Summary:
Pull Request resolved: react#57380

Surface documentation on hover for more APIs in the generated TypeScript types (`types_generated/`).

**Changes**

- Fix doc comments that were previously detached from the intended symbol (`Modal`, `Button`, `TextInput`, `ScrollView`, and others).
- Migrate doc comments/extra detail present in the legacy hand-written `.d.ts` files but missing from Flow source.
    - (**Note**: The quality of these vary — but lift the equivalent current state into Flow land.)
- Reformat malformed JSDoc comments across the codebase.

Comments only — no code or type changes. Does not look to audit/improve doc comments beyond today's manual TS API baseline.

Changelog: [Internal]

Differential Revision: D109316360
@meta-codesync meta-codesync Bot changed the title Improve generated API doc comments (match baseline) Improve generated API doc comments (match baseline) (#57380) Jun 30, 2026
@huntie huntie force-pushed the export-D109316360 branch from a9cdfae to 2806cbf Compare June 30, 2026 13:43
Summary:
Pull Request resolved: react#57380

Surface documentation on hover for more APIs in the generated TypeScript types (`types_generated/`).

**Changes**

- Fix doc comments that were previously detached from the intended symbol (`Modal`, `Button`, `TextInput`, `ScrollView`, and others).
- Migrate doc comments/extra detail present in the legacy hand-written `.d.ts` files but missing from Flow source.
    - (**Note**: The quality of these vary — but lift the equivalent current state into Flow land.)
- Reformat malformed JSDoc comments across the codebase.

Comments only — no code or type changes. Does not look to audit/improve doc comments beyond today's manual TS API baseline.

Changelog: [Internal]

Differential Revision: D109316360
@huntie huntie force-pushed the export-D109316360 branch from 2806cbf to 940d648 Compare June 30, 2026 13:51
@huntie huntie closed this Jun 30, 2026
@huntie huntie deleted the export-D109316360 branch June 30, 2026 15:13
meta-codesync Bot pushed a commit that referenced this pull request Jun 30, 2026
Summary:
Pull Request resolved: #57382

**Context**

Strict TypeScript API readiness: High quality inline docs should reach users via TypeScript in their IDEs.

**This diff**

I asked Claude to crawl reactnative.dev and insert JSDoc comments into our core components, based on some manual-pass starting points.

This is also a quality pass on all modules touched, standardising JSDoc use, and in some cases merging/removing redundant information (preferring the docs we’ve maintained more carefully on the website).

Commit 1 of 2 (Components).

Replaces #57380.

Changelog: [Internal]

___

Differential Revision: D110195869

fbshipit-source-id: a60cded5a0c599810c80d174b7de085903cd6701
meta-codesync Bot pushed a commit that referenced this pull request Jun 30, 2026
Summary:
Pull Request resolved: #57383

**Context**

Strict TypeScript API readiness: High quality inline docs should reach users via TypeScript in their IDEs.

**This diff**

I asked Claude to crawl reactnative.dev and insert JSDoc comments into our core components, based on some manual-pass starting points.

This is also a quality pass on all modules touched, standardising JSDoc use, and in some cases merging/removing redundant information (preferring the docs we’ve maintained more carefully on the website).

**Manual edits**

- `StyleSheet`

Commit 2 of 2 (APIs).

Replaces #57380.

Changelog:
[General][Added] - Strict TypeScript API: Component and API doc comment coverage has been significantly improved

___

Differential Revision: D110195868

fbshipit-source-id: 7d8880352c934702671f89a403f334e30b1e749c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant