diff --git a/src/typings.d.ts b/src/typings.d.ts index ae32dca52c4ccf907d122be66ae701874e6d7263..e59eb7a3db448ef34918a1399125979c030aa740 100644 --- a/src/typings.d.ts +++ b/src/typings.d.ts @@ -1,3 +1,5 @@ +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; + } +}