antd-mobile
Version:
<img src="https://gw.alipayobjects.com/mdn/rms_ee68a8/afts/img/A*hjjDS5Yy-ooAAAAAAAAAAAAAARQnAQ" alt="logo" width="100%" />
14 lines (13 loc) • 550 B
TypeScript
import React from 'react';
import { FormLayout } from '.';
import type { Meta, InternalNamePath } from 'rc-field-form/lib/interface';
export declare type FormContextType = {
hasFeedback: boolean;
layout: FormLayout;
};
export declare const DEFAULT_FORM_CONTEXT: FormContextType;
export declare const FormContext: React.Context<FormContextType>;
export declare type OnSubMetaChange = (meta: Meta & {
destroy?: boolean;
}, namePath: InternalNamePath) => void;
export declare const NoStyleItemContext: React.Context<OnSubMetaChange | null>;