How to use the intersectionTypeAnnotation function from @babel/types
Find comprehensive JavaScript @babel/types.intersectionTypeAnnotation code examples handpicked from public code repositorys.
115 116 117 118 119 120 121 122 123 124
function intersectionTypeAnnotation(types: $ReadOnlyArray<BabelAST>): BabelAST { invariant( types.length > 0, 'RelayFlowBabelFactories: cannot create an intersection of 0 types', ); return types.length === 1 ? types[0] : t.intersectionTypeAnnotation(types); } function lineComments( ...lines: $ReadOnlyArray<string>
0
1
3
+ 3 other calls in file
@babel/types.identifier is the most popular function in @babel/types (20936 examples)