facebook / react-native

Transform all remaining utility types (#55178)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55178 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='ALL'` Reviewed By: SamChou19815 Differential Revision: D90728908 fbshipit-source-id: a8a1a06eb274cc32b12e893679aa92034eb962c4
Marco Wang Marco Wang committed on Jan 16, 2026, 12:02 AM
Showing 30 changed files +82 additions -88 deletions
Browse files at this commit โ†’