File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
packages/react-devtools-shared/src/backend/fiber Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ function createVirtualInstance(
248248type DevToolsInstance = FiberInstance | VirtualInstance | FilteredFiberInstance ;
249249
250250type getDisplayNameForFiberType = ( fiber : Fiber ) => string | null ;
251- type getTypeSymbolType = ( type : any ) => symbol | number ;
251+ type getTypeSymbolType = ( type : any ) => symbol | string | number ;
252252
253253type ReactPriorityLevelsType = {
254254 ImmediatePriority : number ,
@@ -541,13 +541,12 @@ export function getInternalReactConstants(version: string): {
541541 // End of copied code.
542542 // **********************************************************
543543
544- function getTypeSymbol ( type : any ) : symbol | number {
544+ function getTypeSymbol ( type : any ) : symbol | string | number {
545545 const symbolOrNumber =
546546 typeof type === 'object' && type !== null ? type . $$typeof : type ;
547547
548548 return typeof symbolOrNumber === 'symbol'
549- ? // $FlowFixMe[incompatible-return] `toString()` doesn't match the type signature?
550- symbolOrNumber . toString ( )
549+ ? symbolOrNumber . toString ( )
551550 : symbolOrNumber ;
552551 }
553552
You can’t perform that action at this time.
0 commit comments