Commit ec339df
Summary:
The generated Flow libdef for `babel/types` declared `duplicates` as a required parameter on `getBindingIdentifiers` and `getOuterBindingIdentifiers`.
It is actually optional, both at runtime (only read as a truthy flag, defaulting to the non-duplicate map) and in the upstream TS types:
https://github.com/babel/babel/blob/7.x/packages/babel-types/src/retrievers/getBindingIdentifiers.ts#L17-L36
This prevented legitimate single-argument use later in this stack. Separating it for export to RN + Metro.
Changelog: [Internal]
Differential Revision: D111056985
1 parent d2ac190 commit ec339df
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3848 | 3848 | | |
3849 | 3849 | | |
3850 | 3850 | | |
3851 | | - | |
3852 | | - | |
| 3851 | + | |
| 3852 | + | |
3853 | 3853 | | |
3854 | 3854 | | |
3855 | 3855 | | |
| |||
0 commit comments