ant-design/components/form/validateMessagesContext.tsx

8 lines
313 B
TypeScript
Raw Normal View History

2023-06-15 10:26:56 +08:00
import { createContext } from 'react';
import type { ValidateMessages } from 'rc-field-form/lib/interface';
2023-06-15 10:26:56 +08:00
// ZombieJ: We export single file here since
// ConfigProvider use this which will make loop deps
// to import whole `rc-field-form`
export default createContext<ValidateMessages | undefined>(undefined);