intor-translator 1.4.12 → 1.4.13
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/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -191,7 +191,7 @@ type Value<M, K extends string> = K extends `${infer Head}.${infer Tail}` ? Head
|
|
|
191
191
|
* LocalizedValue<{ en: { a: { b: { c: string }; z: string } } }, "a.b.c">; // => string
|
|
192
192
|
* ```
|
|
193
193
|
*/
|
|
194
|
-
type LocalizedValue<M, K extends string> = IfLocaleMessages<M, Value<M[keyof M], K>,
|
|
194
|
+
type LocalizedValue<M, K extends string> = IfLocaleMessages<M, Value<M[keyof M], K>, string>;
|
|
195
195
|
/**
|
|
196
196
|
* Value resolved under a scoped prefix key.
|
|
197
197
|
*
|
|
@@ -200,7 +200,7 @@ type LocalizedValue<M, K extends string> = IfLocaleMessages<M, Value<M[keyof M],
|
|
|
200
200
|
* ScopedValue<{ en: { a: { b: { c: string }; z: string } } }, "a", "b.c">; // => string
|
|
201
201
|
* ```
|
|
202
202
|
*/
|
|
203
|
-
type ScopedValue<M, PK extends string, K extends string> = IfLocaleMessages<M, Value<AtPath<M[keyof M], PK>, K>,
|
|
203
|
+
type ScopedValue<M, PK extends string, K extends string> = IfLocaleMessages<M, Value<AtPath<M[keyof M], PK>, K>, string>;
|
|
204
204
|
|
|
205
205
|
/**
|
|
206
206
|
* Generic replacement object used when no schema is available.
|
package/dist/index.d.ts
CHANGED
|
@@ -191,7 +191,7 @@ type Value<M, K extends string> = K extends `${infer Head}.${infer Tail}` ? Head
|
|
|
191
191
|
* LocalizedValue<{ en: { a: { b: { c: string }; z: string } } }, "a.b.c">; // => string
|
|
192
192
|
* ```
|
|
193
193
|
*/
|
|
194
|
-
type LocalizedValue<M, K extends string> = IfLocaleMessages<M, Value<M[keyof M], K>,
|
|
194
|
+
type LocalizedValue<M, K extends string> = IfLocaleMessages<M, Value<M[keyof M], K>, string>;
|
|
195
195
|
/**
|
|
196
196
|
* Value resolved under a scoped prefix key.
|
|
197
197
|
*
|
|
@@ -200,7 +200,7 @@ type LocalizedValue<M, K extends string> = IfLocaleMessages<M, Value<M[keyof M],
|
|
|
200
200
|
* ScopedValue<{ en: { a: { b: { c: string }; z: string } } }, "a", "b.c">; // => string
|
|
201
201
|
* ```
|
|
202
202
|
*/
|
|
203
|
-
type ScopedValue<M, PK extends string, K extends string> = IfLocaleMessages<M, Value<AtPath<M[keyof M], PK>, K>,
|
|
203
|
+
type ScopedValue<M, PK extends string, K extends string> = IfLocaleMessages<M, Value<AtPath<M[keyof M], PK>, K>, string>;
|
|
204
204
|
|
|
205
205
|
/**
|
|
206
206
|
* Generic replacement object used when no schema is available.
|