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 9
9
import * as t from '@babel/types' ;
10
10
import * as TypeErrors from './TypeErrors' ;
11
11
import { assertExhaustive } from '../Utils/utils' ;
12
+ import { FlowType } from './FlowTypes' ;
12
13
13
14
export const DEBUG = false ;
14
15
@@ -196,8 +197,6 @@ export function makeVariableId(id: number): VariableId {
196
197
return id as VariableId ;
197
198
}
198
199
199
- import { inspect } from 'util' ;
200
- import { FlowType } from './FlowTypes' ;
201
200
export function printConcrete < T > (
202
201
type : ConcreteType < T > ,
203
202
printType : ( _ : T ) => string ,
@@ -241,7 +240,7 @@ export function printConcrete<T>(
241
240
case 'Generic' :
242
241
return `T${ type . id } ` ;
243
242
case 'Object' : {
244
- const name = `Object ${ inspect ( [ ...type . members . keys ( ) ] ) } ` ;
243
+ const name = `Object [ ${ [ ...type . members . keys ( ) ] . map ( key => JSON . stringify ( key ) ) . join ( ', ' ) } ] ` ;
245
244
return `${ name } ` ;
246
245
}
247
246
case 'Tuple' : {
You can’t perform that action at this time.
0 commit comments