ant-design/components/locale-provider/context.ts
二货机器人 5b8e4e51e9
chore: Compatible for @types/react@18 (#34937)
* chore: bump types def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: free --legacy-peer-deps

* chore: ignore peer

* chore: fix ts logic

* chore: use fork docsearch

* chore: fix demo ts
2022-04-08 22:55:42 +08:00

9 lines
252 B
TypeScript

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