File tree Expand file tree Collapse file tree 9 files changed +27
-26
lines changed
react-devtools-extensions/src
react-devtools-shell/src/app Expand file tree Collapse file tree 9 files changed +27
-26
lines changed Original file line number Diff line number Diff line change 6565 "eslint-plugin-react-internal" : " link:./scripts/eslint-rules" ,
6666 "fbjs-scripts" : " ^3.0.1" ,
6767 "filesize" : " ^6.0.1" ,
68- "flow-bin" : " ^0.199.1 " ,
69- "flow-remove-types" : " ^2.198.2 " ,
68+ "flow-bin" : " ^0.201.0 " ,
69+ "flow-remove-types" : " ^2.201.0 " ,
7070 "glob" : " ^7.1.6" ,
7171 "glob-stream" : " ^6.1.0" ,
7272 "google-closure-compiler" : " ^20230206.0.0" ,
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ function setup(hook: any) {
5454 const setupNativeStyleEditor =
5555 require ( 'react-devtools-shared/src/backend/NativeStyleEditor/setupNativeStyleEditor' ) . default ;
5656
57- const bridge = new Bridge ( {
57+ const bridge = new Bridge < $FlowFixMe , $FlowFixMe > ( {
5858 listen ( fn ) {
5959 const listener = ( event : $FlowFixMe ) => {
6060 if (
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ function ignoreStrings(
1212 stringsToIgnore : Array < string > ,
1313) : void {
1414 // $FlowFixMe[prop-missing] index access only allowed for objects with index keys
15- console [ methodName ] = ( ...args ) => {
15+ console [ methodName ] = ( ...args : $ReadOnlyArray < mixed > ) => {
1616 const maybeString = args [ 0 ] ;
1717 if ( typeof maybeString === 'string' ) {
1818 for ( let i = 0 ; i < stringsToIgnore . length ; i ++ ) {
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ export const CaptureUpdate = 3;
161161let hasForceUpdate = false ;
162162
163163let didWarnUpdateInsideUpdate ;
164- let currentlyProcessingQueue ;
164+ let currentlyProcessingQueue : ? SharedQueue < $FlowFixMe > ;
165165export let resetCurrentlyProcessingQueue : ( ) => void ;
166166if ( __DEV__ ) {
167167 didWarnUpdateInsideUpdate = false ;
@@ -475,7 +475,6 @@ export function processUpdateQueue<State>(
475475 hasForceUpdate = false ;
476476
477477 if ( __DEV__ ) {
478- // $FlowFixMe[escaped-generic] discovered when updating Flow
479478 currentlyProcessingQueue = queue . shared ;
480479 }
481480
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ export type UpdateQueue<S, A> = {
165165} ;
166166
167167let didWarnAboutMismatchedHooksForComponent ;
168- let didWarnUncachedGetSnapshot ;
168+ let didWarnUncachedGetSnapshot : void | true ;
169169let didWarnAboutUseWrappedInTryCatch ;
170170if ( __DEV__ ) {
171171 didWarnAboutMismatchedHooksForComponent = new Set < string | null > ( ) ;
Original file line number Diff line number Diff line change @@ -642,8 +642,8 @@ export function createSignatureFunctionForTransform(): <T>(
642642 getCustomHooks?: () => Array < Function > ,
643643) => T | void {
644644 if ( __DEV__ ) {
645- let savedType ;
646- let hasCustomHooks ;
645+ let savedType : mixed ;
646+ let hasCustomHooks : boolean ;
647647 let didCollectHooks = false ;
648648 return function < T > (
649649 type: T,
Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ export function processModelChunk(
126126 id : number ,
127127 model : ReactModel ,
128128) : Chunk {
129+ // $FlowFixMe[incompatible-type] stringify can return null
129130 const json : string = stringify ( model , request . toJSON ) ;
130131 const row = id . toString ( 16 ) + ':' + json + '\n' ;
131132 return stringToChunk ( row ) ;
@@ -146,6 +147,7 @@ export function processImportChunk(
146147 id : number ,
147148 clientReferenceMetadata : ReactModel ,
148149) : Chunk {
150+ // $FlowFixMe[incompatible-type] stringify can return null
149151 const json : string = stringify ( clientReferenceMetadata ) ;
150152 const row = serializeRowHeader ( 'I' , id ) + json + '\n' ;
151153 return stringToChunk ( row ) ;
Original file line number Diff line number Diff line change @@ -44,4 +44,4 @@ inference_mode=experimental.lti
4444%REACT_RENDERER_FLOW_OPTIONS%
4545
4646[version]
47- ^0.199.1
47+ ^0.201.0
Original file line number Diff line number Diff line change @@ -8180,22 +8180,22 @@ flatted@^3.1.0:
81808180 resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787"
81818181 integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==
81828182
8183- flow-bin@^0.199.1 :
8184- version "0.199.1 "
8185- resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.199.1 .tgz#678eac2303fa898227f4d103264b6ce49f4430c1 "
8186- integrity sha512-Ic0Mp9iZ2exbH0mNj/XhzUWPZa9JylHb6uQARZnnYCTRwumOpjNOP0qwyRTltWrbCpfHjnWngNO9VLaVKHz2aQ ==
8187-
8188- flow-parser@^0.198.2 :
8189- version "0.198.2 "
8190- resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.198.2 .tgz#4c225995896b6be75943e9358e606a4fd86c87d9 "
8191- integrity sha512-tCQzqXbRAz0ZadIhAXGwdp/xsusADo8IK9idgc/2qCK5RmazbKDGedyykfRtzWgy7Klt4f4NZxq0o/wFUg6plQ ==
8192-
8193- flow-remove-types@^2.198.2 :
8194- version "2.198.2 "
8195- resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.198.2 .tgz#1b9e0e32eead4554f0d325391bbeb0c7a2a2993f "
8196- integrity sha512-l7ua9FnZwI0HUUUu2Khj3pYnGSlkY5vOE60bgG1ajPJ9P+KzRgXIjpCaS4iTbUEpu6olzRrAVJtJ5N8kxmvpiQ ==
8197- dependencies:
8198- flow-parser "^0.198.2 "
8183+ flow-bin@^0.201.0 :
8184+ version "0.201.0 "
8185+ resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.201.0 .tgz#bc8d7c3687526313d7a24dd920873a0273148d81 "
8186+ integrity sha512-fqx6CMOhX9Xm4mN+tq/c7sqcm8aHFV1ipbLz2ZCzoNcPuUNZPoSVYm4p0qZqH0HyzMMEP1OWlU7dIkuSJ02cpg ==
8187+
8188+ flow-parser@^0.201.0 :
8189+ version "0.201.0 "
8190+ resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.201.0 .tgz#d2005d4dae6fddf60d30f9ae0fb49a13c9c51cfe "
8191+ integrity sha512-G4oeDNpNGyIrweF9EnoHatncAihMT0tQgV6NMdyM5I7fhrz9Pr13PJ2KLQ673O4wj9KooTdBpeeYHdDNAQoyyw ==
8192+
8193+ flow-remove-types@^2.201.0 :
8194+ version "2.201.0 "
8195+ resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.201.0 .tgz#d02d8a3ff3cb17d23da35c9786b02cdccc0ef9b8 "
8196+ integrity sha512-EaS6Q0ApEjFdwD/JtBC1Hm+0j6mMsHeV5FR6MP+UI1RdTeNMdadMITt0Vb3XPBANLXZufaNzs6EMwpGNPzwwoA ==
8197+ dependencies:
8198+ flow-parser "^0.201.0 "
81998199 pirates "^3.0.2"
82008200 vlq "^0.2.1"
82018201
You can’t perform that action at this time.
0 commit comments