ant-design/components/locale-provider/context.ts
二货机器人 cefb7b29f2
chore: Update Locale context (#22762)
* Upgrade locale context

* fix logic

* fix lint

* add context ignore in test case
2020-03-30 22:54:12 +08:00

7 lines
200 B
TypeScript

import { createContext } from 'react';
import { Locale } from '.';
const LocaleContext = createContext<(Partial<Locale> & { exist?: boolean }) | undefined>(undefined);
export default LocaleContext;