Commit 75e1f06
fix: align AccessibilityRole TypeScript definitions (#56863)
Summary:
- Align `ViewAccessibility.d.ts`'s `AccessibilityRole` union with the roles already supported by the Flow type and generated API snapshot.
- Add TypeScript type coverage for `grid` and `pager`, which are among the roles missing from this declaration.
## Changelog:
[General] [Fixed] - Align TypeScript accessibility role definitions with supported React Native accessibility roles
Pull Request resolved: #56863
Test Plan:
- `npx prettier --check packages/react-native/Libraries/Components/View/ViewAccessibility.d.ts packages/react-native/types/__typetests__/index.tsx`
- `npm run test-typescript -- --pretty false`
- `npm run test-generated-typescript -- --pretty false`
Reviewed By: huntie
Differential Revision: D105592939
Pulled By: Abbondanzo
fbshipit-source-id: 9b88c22091dc4051cc1c1c45a7424f078bc4dc541 parent 949b804 commit 75e1f06
2 files changed
Lines changed: 13 additions & 1 deletion
File tree
- packages/react-native
- Libraries/Components/View
- types/__typetests__
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
| |||
215 | 216 | | |
216 | 217 | | |
217 | 218 | | |
218 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
219 | 229 | | |
220 | 230 | | |
221 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
| 546 | + | |
| 547 | + | |
546 | 548 | | |
547 | 549 | | |
548 | 550 | | |
| |||
0 commit comments