22/* eslint-disable import/first */
33
44
5- import { foo as fooNotChecked } from './hookExample' ;
5+ import { make as makeNotChecked } from './hookExample' ;
66
77import * as React from 'react' ;
88
9- // In case of type error, check the type of 'foo ' in 'JSXV4.re' and './hookExample'.
10- export const fooTypeChecked : ( _1 :{ readonly person : person } ) => string = fooNotChecked ;
9+ // In case of type error, check the type of 'make ' in 'JSXV4.re' and './hookExample'.
10+ export const makeTypeChecked : < a > ( _1 :props < JSX . Element , person , JSX . Element , renderMe < a > > ) => JSX . Element = makeNotChecked ;
1111
12- // Export 'foo' early to allow circular import from the '.bs.js' file.
13- export const foo : unknown = function ( Argperson : any ) {
14- const result = fooTypeChecked ( { person :Argperson } ) ;
15- return result
16- } as ( _1 :{ readonly person : person } ) => string ;
12+ // Export 'make' early to allow circular import from the '.bs.js' file.
13+ export const make : unknown = makeTypeChecked as < a > ( _1 :props < JSX . Element , person , JSX . Element , renderMe < a > > ) => JSX . Element ;
1714
1815// tslint:disable-next-line:no-var-requires
1916const JSXV4BS = require ( './JSXV4.bs' ) ;
@@ -28,6 +25,18 @@ export type CompV4_props<x,y> = {
2825// tslint:disable-next-line:interface-over-type-literal
2926export type person = { readonly name : string ; readonly age : number } ;
3027
28+ // tslint:disable-next-line:interface-over-type-literal
29+ export type renderMe < a > = React . ComponentType < { readonly randomString : string ; readonly poly : a } > ;
30+
31+ // tslint:disable-next-line:interface-over-type-literal
32+ export type props < actions , person , children , renderMe > = {
33+ readonly key ?: string ;
34+ readonly actions ?: actions ;
35+ readonly person : person ;
36+ readonly children : children ;
37+ readonly renderMe : renderMe
38+ } ;
39+
3140export const CompV4_make : React . ComponentType < { readonly x : string ; readonly y : string } > = JSXV4BS . CompV4 . make ;
3241
3342// tslint:disable-next-line:interface-over-type-literal
0 commit comments