@digitaldefiance/i18n-lib 1.0.19 → 1.0.20
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/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
package/dist/utils.d.ts
CHANGED
|
@@ -31,4 +31,4 @@ export declare function toStringKey<TStringKey extends string>(...parts: (string
|
|
|
31
31
|
* @param parts - Additional parts to join
|
|
32
32
|
* @returns The constructed string key
|
|
33
33
|
*/
|
|
34
|
-
export declare function toStringKeyFromEnum<TStringKey extends string, TEnum>(
|
|
34
|
+
export declare function toStringKeyFromEnum<TStringKey extends string, TEnum extends string>(value: TEnum[keyof TEnum], ...parts: (string)[]): TStringKey;
|
package/dist/utils.js
CHANGED
|
@@ -67,6 +67,6 @@ function toStringKey(...parts) {
|
|
|
67
67
|
* @param parts - Additional parts to join
|
|
68
68
|
* @returns The constructed string key
|
|
69
69
|
*/
|
|
70
|
-
function toStringKeyFromEnum(
|
|
70
|
+
function toStringKeyFromEnum(value, ...parts) {
|
|
71
71
|
return parts.join('_') + '_' + String(value);
|
|
72
72
|
}
|