Open History to see the last commit
1import { InternalFieldApi } from '@tanstack/form-core/internals'
2import type { ReactComponentTree } from './componentMap.public'
3β
4export function createInternalReactAppFieldApiClass(
5 fieldComponents: ReactComponentTree,
6): typeof InternalFieldApi {
7 class InternalReactAppFieldApi extends InternalFieldApi<any, any, any> {}
8β
9 Object.assign(InternalReactAppFieldApi.prototype, fieldComponents)
10β
11 return InternalReactAppFieldApi as typeof InternalFieldApi
12}