File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
packages/react-native-codegen/src/parsers Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -24,18 +24,14 @@ import type {
2424 NativeModuleEnumMap ,
2525 OptionsShape ,
2626 EventTypeAnnotation ,
27+ ObjectTypeAnnotation ,
2728} from '../CodegenSchema.js' ;
2829
2930import type { Parser } from './parser' ;
3031import type { ParserType } from './errors' ;
3132import type { ParserErrorCapturer , TypeDeclarationMap , PropAST } from './utils' ;
3233import type { ComponentSchemaBuilderConfig } from './schema.js' ;
3334
34- type ObjectTypeAnnotationShape = {
35- type : 'ObjectTypeAnnotation' ,
36- properties : Array < NamedShape < EventTypeAnnotation >> ,
37- } ;
38-
3935const {
4036 getConfigType,
4137 extractNativeModuleName,
@@ -865,7 +861,7 @@ function getEventArgument(
865861 buildPropertiesForEvent : (
866862 property : PropAST ,
867863 ) => NamedShape < EventTypeAnnotation > ,
868- ): ObjectTypeAnnotationShape {
864+ ): ObjectTypeAnnotation < EventTypeAnnotation > {
869865 return {
870866 type : 'ObjectTypeAnnotation' ,
871867 properties : argumentProps . map ( buildPropertiesForEvent ) ,
You can’t perform that action at this time.
0 commit comments