mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 09:26:06 +08:00

* 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;
|