Repository navigation
Commit 4a851dd
authored
Drop
Summary:
Flow's builtin `PropertyDescriptor<T = unknown>` is becoming non-generic, as in TypeScript's `lib.es5.d.ts`: its `value`, `get` and `set` use `any`, and `Object.getOwnPropertyDescriptor` no longer takes a type argument. The new builtins reject `PropertyDescriptor<X>` annotations and `Object.getOwnPropertyDescriptor<X>(...)` calls.
Remove those type arguments. Today's Flow accepts all of these sites without them.
Nothing changes at runtime.
Changelog: [Internal] Drop `PropertyDescriptor` type arguments.
Differential Revision: D129956546
Pull Request resolved: #59814PropertyDescriptor type arguments that the upcoming non-generic builtin rejects1 parent fe398e5 commit 4a851dd
3 files changed
Lines changed: 3 additions & 3 deletions
File tree
- packages/react-native
- Libraries/Utilities
- src/private/webapis/dom/oldstylecollections
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments