|
| 1 | +/* TypeScript file generated from Hooks.res by genType. */ |
| 2 | + |
| 3 | +/* eslint-disable */ |
| 4 | +/* tslint:disable */ |
| 5 | + |
| 6 | +import * as HooksJS from './Hooks.res.js'; |
| 7 | + |
| 8 | +import type {TypedArray2_Uint8Array_t as Js_TypedArray2_Uint8Array_t} from '../src/shims/Js.shim'; |
| 9 | + |
| 10 | +export type vehicle = { readonly name: string }; |
| 11 | + |
| 12 | +export type props<vehicle> = { readonly vehicle: vehicle }; |
| 13 | + |
| 14 | +export type Another_props<vehicle,callback> = { readonly vehicle: vehicle; readonly callback: callback }; |
| 15 | + |
| 16 | +export type Inner_props<vehicle> = { readonly vehicle: vehicle }; |
| 17 | + |
| 18 | +export type Inner_Another_props<vehicle> = { readonly vehicle: vehicle }; |
| 19 | + |
| 20 | +export type Inner_Inner2_props<vehicle> = { readonly vehicle: vehicle }; |
| 21 | + |
| 22 | +export type Inner_Inner2_Another_props<vehicle> = { readonly vehicle: vehicle }; |
| 23 | + |
| 24 | +export type NoProps_props = {}; |
| 25 | + |
| 26 | +export type cb = (_to:vehicle) => void; |
| 27 | + |
| 28 | +export type WithRename_props<T_to,T_Type,cb> = { |
| 29 | + readonly _to: T_to; |
| 30 | + readonly _Type: T_Type; |
| 31 | + readonly cb: cb |
| 32 | +}; |
| 33 | + |
| 34 | +export type WithRef_props<vehicle> = { readonly vehicle: vehicle }; |
| 35 | + |
| 36 | +export type r = { readonly x: string }; |
| 37 | + |
| 38 | +export type callback<input,output> = (_1:input) => output; |
| 39 | + |
| 40 | +export type testReactContext = React.Context<number>; |
| 41 | + |
| 42 | +export type testReactRef = { current: (null | number) }; |
| 43 | + |
| 44 | +export type testDomRef = React.Ref<unknown>; |
| 45 | + |
| 46 | +export type testDomRef2 = React.Ref<unknown>; |
| 47 | + |
| 48 | +export type Poly_props<p> = { readonly p: p }; |
| 49 | + |
| 50 | +export type Fun_props<name> = { readonly name: name }; |
| 51 | + |
| 52 | +export type RenderPropRequiresConversion_props<renderVehicle> = { readonly renderVehicle: renderVehicle }; |
| 53 | + |
| 54 | +export type WithChildren_props<vehicle,children> = { readonly vehicle: vehicle; readonly children: children }; |
| 55 | + |
| 56 | +export type DD_props<array,name> = { readonly array: array; readonly name: name }; |
| 57 | + |
| 58 | +export const $$default: React.ComponentType<{ readonly vehicle: vehicle }> = HooksJS.default as any; |
| 59 | + |
| 60 | +export default $$default; |
| 61 | + |
| 62 | +export const Another_anotherComponent: React.ComponentType<{ readonly vehicle: vehicle; readonly callback: () => void }> = HooksJS.Another.anotherComponent as any; |
| 63 | + |
| 64 | +export const Inner_make: React.ComponentType<{ readonly vehicle: vehicle }> = HooksJS.Inner.make as any; |
| 65 | + |
| 66 | +export const Inner_Another_anotherComponent: React.ComponentType<{ readonly vehicle: vehicle }> = HooksJS.Inner.Another.anotherComponent as any; |
| 67 | + |
| 68 | +export const Inner_Inner2_make: React.ComponentType<{ readonly vehicle: vehicle }> = HooksJS.Inner.Inner2.make as any; |
| 69 | + |
| 70 | +export const Inner_Inner2_Another_anotherComponent: React.ComponentType<{ readonly vehicle: vehicle }> = HooksJS.Inner.Inner2.Another.anotherComponent as any; |
| 71 | + |
| 72 | +export const NoProps_make: React.ComponentType<{}> = HooksJS.NoProps.make as any; |
| 73 | + |
| 74 | +export const functionWithRenamedArgs: (_to:vehicle, _Type:vehicle, cb:cb) => string = HooksJS.functionWithRenamedArgs as any; |
| 75 | + |
| 76 | +export const WithRename_componentWithRenamedArgs: React.ComponentType<{ |
| 77 | + readonly _to: vehicle; |
| 78 | + readonly _Type: vehicle; |
| 79 | + readonly cb: cb |
| 80 | +}> = HooksJS.WithRename.componentWithRenamedArgs as any; |
| 81 | + |
| 82 | +export const WithRef_makeWithRef: (_1:WithRef_props<vehicle>) => (_1:(null | undefined | any)) => JSX.Element = HooksJS.WithRef.makeWithRef as any; |
| 83 | + |
| 84 | +export const testForwardRef: React.ComponentType<{ readonly vehicle: vehicle }> = HooksJS.testForwardRef as any; |
| 85 | + |
| 86 | +export const ForwardRef_input: (_1:r) => JSX.Element = HooksJS.ForwardRef.input as any; |
| 87 | + |
| 88 | +export const Poly_polymorphicComponent: React.ComponentType<{ readonly p: [vehicle, any] }> = HooksJS.Poly.polymorphicComponent as any; |
| 89 | + |
| 90 | +export const Fun_functionReturningReactElement: React.ComponentType<{ readonly name: string }> = HooksJS.Fun.functionReturningReactElement as any; |
| 91 | + |
| 92 | +export const RenderPropRequiresConversion_make: React.ComponentType<{ readonly renderVehicle: React.ComponentType<{ readonly number: number; readonly vehicle: vehicle }> }> = HooksJS.RenderPropRequiresConversion.make as any; |
| 93 | + |
| 94 | +export const WithChildren_aComponentWithChildren: React.ComponentType<{ readonly vehicle: vehicle; readonly children: React.ReactNode }> = HooksJS.WithChildren.aComponentWithChildren as any; |
| 95 | + |
| 96 | +export const DD_make: React.ComponentType<{ readonly array: Js_TypedArray2_Uint8Array_t; readonly name: string }> = HooksJS.DD.make as any; |
| 97 | + |
| 98 | +export const NoProps: { make: React.ComponentType<{}> } = HooksJS.NoProps as any; |
| 99 | + |
| 100 | +export const Inner: { |
| 101 | + Inner2: { |
| 102 | + Another: { |
| 103 | + anotherComponent: React.ComponentType<{ |
| 104 | + readonly vehicle: vehicle |
| 105 | + }> |
| 106 | + }; |
| 107 | + make: React.ComponentType<{ |
| 108 | + readonly vehicle: vehicle |
| 109 | + }> |
| 110 | + }; |
| 111 | + Another: { |
| 112 | + anotherComponent: React.ComponentType<{ |
| 113 | + readonly vehicle: vehicle |
| 114 | + }> |
| 115 | + }; |
| 116 | + make: React.ComponentType<{ |
| 117 | + readonly vehicle: vehicle |
| 118 | + }> |
| 119 | +} = HooksJS.Inner as any; |
| 120 | + |
| 121 | +export const RenderPropRequiresConversion: { make: React.ComponentType<{ readonly renderVehicle: React.ComponentType<{ readonly number: number; readonly vehicle: vehicle }> }> } = HooksJS.RenderPropRequiresConversion as any; |
| 122 | + |
| 123 | +export const WithRename: { componentWithRenamedArgs: React.ComponentType<{ |
| 124 | + readonly _to: vehicle; |
| 125 | + readonly _Type: vehicle; |
| 126 | + readonly cb: cb |
| 127 | +}> } = HooksJS.WithRename as any; |
| 128 | + |
| 129 | +export const ForwardRef: { input: (_1:r) => JSX.Element } = HooksJS.ForwardRef as any; |
| 130 | + |
| 131 | +export const Fun: { functionReturningReactElement: React.ComponentType<{ readonly name: string }> } = HooksJS.Fun as any; |
| 132 | + |
| 133 | +export const WithRef: { makeWithRef: (_1:WithRef_props<vehicle>) => (_1:(null | undefined | any)) => JSX.Element } = HooksJS.WithRef as any; |
| 134 | + |
| 135 | +export const WithChildren: { aComponentWithChildren: React.ComponentType<{ readonly vehicle: vehicle; readonly children: React.ReactNode }> } = HooksJS.WithChildren as any; |
| 136 | + |
| 137 | +export const DD: { make: React.ComponentType<{ readonly array: Js_TypedArray2_Uint8Array_t; readonly name: string }> } = HooksJS.DD as any; |
| 138 | + |
| 139 | +export const Another: { anotherComponent: React.ComponentType<{ readonly vehicle: vehicle; readonly callback: () => void }> } = HooksJS.Another as any; |
| 140 | + |
| 141 | +export const Poly: { polymorphicComponent: React.ComponentType<{ readonly p: [vehicle, any] }> } = HooksJS.Poly as any; |
0 commit comments