2
2
/* eslint-disable import/first */
3
3
4
4
5
+ import * as React from 'react' ;
6
+
5
7
// @ts -ignore: Implicit any on import
6
8
import * as Curry__Es6Import from 'rescript/lib/es6/curry.js' ;
7
9
const Curry : any = Curry__Es6Import ;
@@ -102,21 +104,21 @@ export type DD_props<array,name> = {
102
104
readonly name : name
103
105
} ;
104
106
105
- export const $$default : ( _1 : props < vehicle > ) => JSX . Element = HooksBS . default ;
107
+ export const $$default : React . ComponentType < { readonly vehicle : vehicle } > = HooksBS . default ;
106
108
107
109
export default $$default ;
108
110
109
- export const Another_anotherComponent : ( _1 : Another_props < vehicle , ( ( ) => void ) > ) => JSX . Element = HooksBS . Another . anotherComponent ;
111
+ export const Another_anotherComponent : React . ComponentType < { readonly vehicle : vehicle ; readonly callback : ( ) => void } > = HooksBS . Another . anotherComponent ;
110
112
111
- export const Inner_make : ( _1 : Inner_props < vehicle > ) => JSX . Element = HooksBS . Inner . make ;
113
+ export const Inner_make : React . ComponentType < { readonly vehicle : vehicle } > = HooksBS . Inner . make ;
112
114
113
- export const Inner_Another_anotherComponent : ( _1 : Inner_Another_props < vehicle > ) => JSX . Element = HooksBS . Inner . Another . anotherComponent ;
115
+ export const Inner_Another_anotherComponent : React . ComponentType < { readonly vehicle : vehicle } > = HooksBS . Inner . Another . anotherComponent ;
114
116
115
- export const Inner_Inner2_make : ( _1 : Inner_Inner2_props < vehicle > ) => JSX . Element = HooksBS . Inner . Inner2 . make ;
117
+ export const Inner_Inner2_make : React . ComponentType < { readonly vehicle : vehicle } > = HooksBS . Inner . Inner2 . make ;
116
118
117
- export const Inner_Inner2_Another_anotherComponent : ( _1 : Inner_Inner2_Another_props < vehicle > ) => JSX . Element = HooksBS . Inner . Inner2 . Another . anotherComponent ;
119
+ export const Inner_Inner2_Another_anotherComponent : React . ComponentType < { readonly vehicle : vehicle } > = HooksBS . Inner . Inner2 . Another . anotherComponent ;
118
120
119
- export const NoProps_make : ( _1 : NoProps_props ) => JSX . Element = HooksBS . NoProps . make ;
121
+ export const NoProps_make : React . ComponentType < { } > = HooksBS . NoProps . make ;
120
122
121
123
export const functionWithRenamedArgs : ( _1 :{
122
124
readonly to : vehicle ;
@@ -130,11 +132,16 @@ export const functionWithRenamedArgs: (_1:{
130
132
return result
131
133
} ;
132
134
133
- export const WithRename_componentWithRenamedArgs : ( _1 :WithRename_props < vehicle , vehicle , cb > ) => JSX . Element = function ( Arg1 : any ) {
134
- const result = HooksBS . WithRename . componentWithRenamedArgs ( { key :Arg1 . key , _to :Arg1 . _to , _Type :Arg1 . _Type , cb :function ( Argto : any ) {
135
+ export const WithRename_componentWithRenamedArgs : React . ComponentType < {
136
+ readonly _to : vehicle ;
137
+ readonly _Type : vehicle ;
138
+ readonly cb : cb
139
+ } > = function Hooks_WithRename_componentWithRenamedArgs ( Arg1 : any ) {
140
+ const $props = { _to :Arg1 . _to , _Type :Arg1 . _Type , cb :function ( Argto : any ) {
135
141
const result1 = Arg1 . cb ( { to :Argto } ) ;
136
142
return result1
137
- } } ) ;
143
+ } } ;
144
+ const result = React . createElement ( HooksBS . WithRename . componentWithRenamedArgs , $props ) ;
138
145
return result
139
146
} ;
140
147
@@ -143,45 +150,53 @@ export const WithRef_makeWithRef: (_1:WithRef_props<vehicle>, _2:(null | undefin
143
150
return result
144
151
} ;
145
152
146
- export const testForwardRef : ( _1 : WithRef_props < vehicle > ) => JSX . Element = HooksBS . testForwardRef ;
153
+ export const testForwardRef : React . ComponentType < { readonly vehicle : vehicle } > = HooksBS . testForwardRef ;
147
154
148
- export const ForwardRef_input : ( _1 : ForwardRef_props < r > ) => JSX . Element = HooksBS . ForwardRef . input ;
155
+ export const ForwardRef_input : React . ComponentType < { readonly ref ?: any ; readonly r : r } > = HooksBS . ForwardRef . input ;
149
156
150
- export const Poly_polymorphicComponent : < T1 > ( _1 : Poly_props < [ vehicle , T1 ] > ) => JSX . Element = HooksBS . Poly . polymorphicComponent ;
157
+ export const Poly_polymorphicComponent : React . ComponentType < { readonly p : [ vehicle , any ] } > = HooksBS . Poly . polymorphicComponent ;
151
158
152
- export const Fun_functionReturningReactElement : ( _1 : Fun_props < string > ) => JSX . Element = HooksBS . Fun . functionReturningReactElement ;
159
+ export const Fun_functionReturningReactElement : React . ComponentType < { readonly name : string } > = HooksBS . Fun . functionReturningReactElement ;
153
160
154
- export const RenderPropRequiresConversion_make : ( _1 : RenderPropRequiresConversion_props < React . ComponentType < { readonly number : number ; readonly vehicle : vehicle } > > ) => JSX . Element = HooksBS . RenderPropRequiresConversion . make ;
161
+ export const RenderPropRequiresConversion_make : React . ComponentType < { readonly renderVehicle : React . ComponentType < { readonly number : number ; readonly vehicle : vehicle } > } > = HooksBS . RenderPropRequiresConversion . make ;
155
162
156
- export const WithChildren_aComponentWithChildren : ( _1 : WithChildren_props < vehicle , JSX . Element > ) => JSX . Element = HooksBS . WithChildren . aComponentWithChildren ;
163
+ export const WithChildren_aComponentWithChildren : React . ComponentType < { readonly vehicle : vehicle ; readonly children : React . ReactNode } > = HooksBS . WithChildren . aComponentWithChildren ;
157
164
158
- export const DD_make : ( _1 : DD_props < Js_TypedArray2_Uint8Array_t , string > ) => JSX . Element = HooksBS . DD . make ;
165
+ export const DD_make : React . ComponentType < { readonly array : Js_TypedArray2_Uint8Array_t ; readonly name : string } > = HooksBS . DD . make ;
159
166
160
- export const NoProps : { make : ( _1 : NoProps_props ) => JSX . Element } = HooksBS . NoProps
167
+ export const NoProps : { make : React . ComponentType < { } > } = HooksBS . NoProps
161
168
162
169
export const Inner : {
163
170
Inner2 : {
164
171
Another : {
165
- anotherComponent : ( _1 :Inner_Inner2_Another_props < vehicle > ) => JSX . Element
172
+ anotherComponent : React . ComponentType < {
173
+ readonly vehicle : vehicle
174
+ } >
166
175
} ;
167
- make : ( _1 :Inner_Inner2_props < vehicle > ) => JSX . Element
176
+ make : React . ComponentType < {
177
+ readonly vehicle : vehicle
178
+ } >
168
179
} ;
169
180
Another : {
170
- anotherComponent : ( _1 :Inner_Another_props < vehicle > ) => JSX . Element
181
+ anotherComponent : React . ComponentType < {
182
+ readonly vehicle : vehicle
183
+ } >
171
184
} ;
172
- make : ( _1 :Inner_props < vehicle > ) => JSX . Element
185
+ make : React . ComponentType < {
186
+ readonly vehicle : vehicle
187
+ } >
173
188
} = HooksBS . Inner
174
189
175
- export const RenderPropRequiresConversion : { make : ( _1 : RenderPropRequiresConversion_props < React . ComponentType < { readonly number : number ; readonly vehicle : vehicle } > > ) => JSX . Element } = HooksBS . RenderPropRequiresConversion
190
+ export const RenderPropRequiresConversion : { make : React . ComponentType < { readonly renderVehicle : React . ComponentType < { readonly number : number ; readonly vehicle : vehicle } > } > } = HooksBS . RenderPropRequiresConversion
176
191
177
- export const ForwardRef : { input : ( _1 : ForwardRef_props < r > ) => JSX . Element } = HooksBS . ForwardRef
192
+ export const ForwardRef : { input : React . ComponentType < { readonly ref ?: any ; readonly r : r } > } = HooksBS . ForwardRef
178
193
179
- export const Fun : { functionReturningReactElement : ( _1 : Fun_props < string > ) => JSX . Element } = HooksBS . Fun
194
+ export const Fun : { functionReturningReactElement : React . ComponentType < { readonly name : string } > } = HooksBS . Fun
180
195
181
- export const WithChildren : { aComponentWithChildren : ( _1 : WithChildren_props < vehicle , JSX . Element > ) => JSX . Element } = HooksBS . WithChildren
196
+ export const WithChildren : { aComponentWithChildren : React . ComponentType < { readonly vehicle : vehicle ; readonly children : React . ReactNode } > } = HooksBS . WithChildren
182
197
183
- export const DD : { make : ( _1 : DD_props < Js_TypedArray2_Uint8Array_t , string > ) => JSX . Element } = HooksBS . DD
198
+ export const DD : { make : React . ComponentType < { readonly array : Js_TypedArray2_Uint8Array_t ; readonly name : string } > } = HooksBS . DD
184
199
185
- export const Another : { anotherComponent : ( _1 : Another_props < vehicle , ( ( ) => void ) > ) => JSX . Element } = HooksBS . Another
200
+ export const Another : { anotherComponent : React . ComponentType < { readonly vehicle : vehicle ; readonly callback : ( ) => void } > } = HooksBS . Another
186
201
187
- export const Poly : { polymorphicComponent : < T1 > ( _1 : Poly_props < [ vehicle , T1 ] > ) => JSX . Element } = HooksBS . Poly
202
+ export const Poly : { polymorphicComponent : React . ComponentType < { readonly p : [ vehicle , any ] } > } = HooksBS . Poly
0 commit comments