@tolgee/core 5.9.12 → 5.10.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/lib/types/general.d.ts +1 -1
- package/package.json +2 -2
- package/src/types/general.ts +1 -1
package/lib/types/general.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare type TranslationKey = string & Record<never, never>;
|
|
|
4
4
|
export declare type NsFallback = undefined | NsType | NsType[];
|
|
5
5
|
export declare type FallbackLanguageObject = Record<string, FallbackGeneral>;
|
|
6
6
|
export declare type FallbackLanguageOption = FallbackGeneral | FallbackLanguageObject;
|
|
7
|
-
export declare type DefaultParamType = string | number | bigint;
|
|
7
|
+
export declare type DefaultParamType = string | number | bigint | Date;
|
|
8
8
|
export declare type TranslateParams<T = DefaultParamType> = {
|
|
9
9
|
[key: string]: T;
|
|
10
10
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tolgee/core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.10.0",
|
|
4
4
|
"description": "Library providing ability to translate messages directly in context of developed application.",
|
|
5
5
|
"main": "./dist/tolgee.cjs.js",
|
|
6
6
|
"module": "./dist/tolgee.esm.js",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
70
|
"sideEffects": false,
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "2fd3b3f7cdf7e71df7a5e40fc1374afd5a02f2ca"
|
|
72
72
|
}
|
package/src/types/general.ts
CHANGED
|
@@ -12,7 +12,7 @@ export type FallbackLanguageObject = Record<string, FallbackGeneral>;
|
|
|
12
12
|
|
|
13
13
|
export type FallbackLanguageOption = FallbackGeneral | FallbackLanguageObject;
|
|
14
14
|
|
|
15
|
-
export type DefaultParamType = string | number | bigint;
|
|
15
|
+
export type DefaultParamType = string | number | bigint | Date;
|
|
16
16
|
|
|
17
17
|
export type TranslateParams<T = DefaultParamType> = {
|
|
18
18
|
[key: string]: T;
|