Commit a7f750fa authored by ycjcl868's avatar ycjcl868

feat: intl key intellisense

parent e6728b29
import zh_CN from './locales/zh-CN';
declare module '*.css';
declare module '*.less';
declare module '*.scss';
......@@ -24,3 +26,11 @@ declare module 'memoize-one' {
): T;
export default memoizeOne;
}
declare module 'umi-plugin-react/locale' {
export default interface MessageDescriptor {
id: keyof (typeof zh_CN); // default using zh_CN
description?: string;
defaultMessage?: string;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment