File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
packages/react-native-codegen/src/parsers/flow/modules Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -494,7 +494,11 @@ function translateFunctionTypeAnnotation(
494494 for (const flowParam of (flowFunctionTypeAnnotation.params: $ReadOnlyArray< $FlowFixMe > )) {
495495 const parsedParam = tryParse ( ( ) => {
496496 if ( flowParam . name == null ) {
497- throw new UnnamedFunctionParamParserError ( flowParam , hasteModuleName , language ) ;
497+ throw new UnnamedFunctionParamParserError (
498+ flowParam ,
499+ hasteModuleName ,
500+ language ,
501+ ) ;
498502 }
499503
500504 const paramName = flowParam . name . name ;
@@ -644,7 +648,11 @@ function buildModuleSchema(
644648 ) ;
645649
646650 if ( moduleSpecs . length === 0 ) {
647- throw new ModuleInterfaceNotFoundParserError ( hasteModuleName , ast , language ) ;
651+ throw new ModuleInterfaceNotFoundParserError (
652+ hasteModuleName ,
653+ ast ,
654+ language ,
655+ ) ;
648656 }
649657
650658 if ( moduleSpecs . length > 1 ) {
@@ -681,7 +689,7 @@ function buildModuleSchema(
681689 throw new UnusedModuleInterfaceParserError (
682690 hasteModuleName ,
683691 moduleSpec ,
684- language
692+ language ,
685693 ) ;
686694 }
687695
You can’t perform that action at this time.
0 commit comments