Commit ea6884c
Transform $ReadOnlyMap to ReadonlyMap (#55110)
Summary:
Pull Request resolved: #55110
We are transforming the following utility types to be more consistent with typescript and better AI integration:
* `$NonMaybeType` -> `NonNullable`
* `$ReadOnly` -> `Readonly`
* `$ReadOnlyArray` -> `ReadonlyArray`
* `$ReadOnlyMap` -> `ReadonlyMap`
* `$ReadOnlySet` -> `ReadonlySet`
* `$Keys` -> `keyof`
* `$Values` -> `Values`
* `mixed` -> `unknown`
See details in https://fb.workplace.com/groups/flowlang/permalink/1837907750148213/.
drop-conflicts
Command:
`js1 flow-runner codemod flow/transformUtilityType --format-files=false --legacy-type='$ReadOnlyMap'`
Changelog: [Internal]
Reviewed By: SamChou19815
Differential Revision: D90425806
fbshipit-source-id: e725c86053879a571b36aaeae1154d779571b3621 parent b60f533 commit ea6884c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
0 commit comments