@moneko/react 1.6.10-beta.0 → 1.6.11-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/env.d.ts +1 -4
- package/package.json +1 -1
package/env.d.ts
CHANGED
|
@@ -222,10 +222,7 @@ declare module '@app/locales' {
|
|
|
222
222
|
* @param {Argument} values 用于替换占位符的值,按照占位符出现的顺序排列
|
|
223
223
|
* @returns {string} 替换后的字符串
|
|
224
224
|
*/
|
|
225
|
-
export function
|
|
226
|
-
str: string,
|
|
227
|
-
values: InterpolationType<T>,
|
|
228
|
-
): string;
|
|
225
|
+
export function template<T extends string>(str: string, values: InterpolationType<T>): string;
|
|
229
226
|
/** 设置语言
|
|
230
227
|
* @param {string} localeName 语言名称
|
|
231
228
|
* @returns {void}
|