ant-design/components/locale-provider/context.ts
Tom Xu 1719748a29
chore: eslint add consistent-type-imports (#35419)
* chore: eslint add consistent-type-imports

* fix avatar

* Update Item.tsx
2022-05-07 14:31:54 +08:00

9 lines
257 B
TypeScript

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