mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 07:09:55 +08:00
5b8e4e51e9
* 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
9 lines
252 B
TypeScript
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;
|