File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
compiler/packages/babel-plugin-react-compiler/src/Flood Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 99import * as t from '@babel/types' ;
1010import * as TypeErrors from './TypeErrors' ;
1111import { assertExhaustive } from '../Utils/utils' ;
12+ import { FlowType } from './FlowTypes' ;
1213
1314export const DEBUG = false ;
1415
@@ -196,8 +197,6 @@ export function makeVariableId(id: number): VariableId {
196197 return id as VariableId ;
197198}
198199
199- import { inspect } from 'util' ;
200- import { FlowType } from './FlowTypes' ;
201200export function printConcrete < T > (
202201 type : ConcreteType < T > ,
203202 printType : ( _ : T ) => string ,
@@ -241,7 +240,7 @@ export function printConcrete<T>(
241240 case 'Generic' :
242241 return `T${ type . id } ` ;
243242 case 'Object' : {
244- const name = `Object ${ inspect ( [ ...type . members . keys ( ) ] ) } ` ;
243+ const name = `Object [ ${ [ ...type . members . keys ( ) ] . map ( key => JSON . stringify ( key ) ) . join ( ', ' ) } ] ` ;
245244 return `${ name } ` ;
246245 }
247246 case 'Tuple' : {
You can’t perform that action at this time.
0 commit comments