File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
packages/react-native-codegen/src/generators Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,20 @@ const ALL_GENERATORS = {
7373 generateViewConfigJs : generateViewConfigJs . generate ,
7474} ;
7575
76+ type FilesOutput = Map < string , string > ;
77+
78+ type GenerateFunction = (
79+ libraryName : string ,
80+ schema : SchemaType ,
81+ packageName ? : string ,
82+ assumeNonnull : boolean ,
83+ headerPrefix ? : string ,
84+ ) => FilesOutput ;
85+
86+ type LibraryGeneratorsFunctions = $ReadOnly < {
87+ [ string ] : Array < GenerateFunction > ,
88+ } > ;
89+
7690type LibraryOptions = $ReadOnly < {
7791 libraryName : string ,
7892 schema : SchemaType ,
@@ -113,7 +127,7 @@ type SchemasConfig = $ReadOnly<{
113127 test ? : boolean ,
114128} > ;
115129
116- const LIBRARY_GENERATORS = {
130+ const LIBRARY_GENERATORS : LibraryGeneratorsFunctions = {
117131 descriptors : [
118132 generateComponentDescriptorCpp . generate ,
119133 generateComponentDescriptorH . generate ,
You can’t perform that action at this time.
0 commit comments