amis-rpc-design/node_modules/antd/lib/locale/useLocale.d.ts

5 lines
328 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import type { Locale } from '.';
export type LocaleComponentName = Exclude<keyof Locale, 'locale'>;
declare const useLocale: <C extends LocaleComponentName = LocaleComponentName>(componentName: C, defaultLocale?: Locale[C] | (() => Locale[C]) | undefined) => readonly [NonNullable<Locale[C]>, string];
export default useLocale;