UNPKG

@sberdevices/plasma-temple

Version:

SberDevices CanvasApp Templates.

8 lines 573 B
import React from 'react'; import { FieldProps as FieldComponentProps } from '../components/Field'; import type { FieldPropsWithRef, FieldProps } from '../types'; /** * Хок для унификации работы с полями ввода и их валидации */ export declare function withWrapField<V, P extends React.PropsWithChildren<Record<string, unknown>> = Record<string, unknown>>(Component: React.ComponentType<FieldPropsWithRef<V, P> & P>, type?: FieldComponentProps['type']): React.FC<FieldProps<V> & P>; //# sourceMappingURL=withWrapField.d.ts.map