intor-translator 1.1.1 → 1.1.2

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 CHANGED
@@ -396,7 +396,7 @@ declare class CoreTranslator<M = unknown, L extends keyof M | "union" = "union">
396
396
  setLoading(state: boolean): void;
397
397
  /** Check if a key exists in the specified locale or current locale. */
398
398
  hasKey: <K = LocalizedLeafKeys<M, L>>(key: K, targetLocale?: Locale<M>) => boolean;
399
- t: <Result = string, L_1 extends keyof M | "union" = "union", K = LocalizedLeafKeys<M, L_1>>(key: K, replacements?: Replacement) => Result;
399
+ t: <Result = string, K = LocalizedLeafKeys<M, L>>(key: K, replacements?: Replacement) => Result;
400
400
  }
401
401
 
402
402
  type ScopeTranslatorOptions<M> = CoreTranslatorOptions<M>;
package/dist/index.d.ts CHANGED
@@ -396,7 +396,7 @@ declare class CoreTranslator<M = unknown, L extends keyof M | "union" = "union">
396
396
  setLoading(state: boolean): void;
397
397
  /** Check if a key exists in the specified locale or current locale. */
398
398
  hasKey: <K = LocalizedLeafKeys<M, L>>(key: K, targetLocale?: Locale<M>) => boolean;
399
- t: <Result = string, L_1 extends keyof M | "union" = "union", K = LocalizedLeafKeys<M, L_1>>(key: K, replacements?: Replacement) => Result;
399
+ t: <Result = string, K = LocalizedLeafKeys<M, L>>(key: K, replacements?: Replacement) => Result;
400
400
  }
401
401
 
402
402
  type ScopeTranslatorOptions<M> = CoreTranslatorOptions<M>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intor-translator",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "A type safe translator that knows what to say and how to handle the rest. Supports custom messages, rich replacements, and async loading.",
5
5
  "author": "Yiming Liao",
6
6
  "license": "MIT",