Skip to content

Fix TS1016 in generated AbortSignal types - #59912

Closed
huntie wants to merge 1 commit into
mainfrom
pr59912
Closed

huntie wants to merge 1 commit into
mainfrom
pr59912

Conversation

@huntie

@huntie huntie commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #59896 build_js_types is currently failing on main. This is due to generated types emitting a feature that isn't supported in in TypeScript (TS1016 "A required parameter cannot follow an optional parameter.").

Fix: Relocate this default inside the function instead.

Changelog: [Internal]

Test Plan

yarn build-types
yarn test-generated-typescript

✅ On main, test-generated-typescript fails with TS1016 in AbortSignal.d.ts, as build_js_types does in CI. With this change it passes, and the ReactNativeApi.d.ts snapshot is unchanged.

✅ Flow, ESLint and Prettier clean.

Not run: AbortController-itest.js (Fantom).

@huntie
huntie added this pull request to stack #59913 November 10, 2026 15:39
@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 Nov 10, 2026
@facebook-github-tools facebook-github-tools Bot added p: Expo Partner: Expo Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Nov 10, 2026
@huntie huntie closed this Nov 10, 2026
@huntie
huntie removed this pull request from stack #59913 November 10, 2026 17:25
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. p: Expo Partner: Expo Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant