ant-design/components/locale-provider/context.ts
Zheeeng ea9b013bb1
refactor(locale): refine signature (#37824)
* chore: prefer using @internal annotation over other markups

* fix: typo

* fix: locale types
2022-10-01 22:17:14 +08:00

9 lines
248 B
TypeScript

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