@shoelace-style/localize 3.1.0 → 3.1.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.1.1
4
+
5
+ - Upgraded TypeScript to 5.1.3
6
+
3
7
  ## 3.1.0
4
8
 
5
9
  - Added `exists()` method to determine if a term and/or a fallback term exists [#17](https://github.com/shoelace-style/localize/issues/17)
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { ReactiveController, ReactiveControllerHost } from 'lit';
2
- export declare type FunctionParams<T> = T extends (...args: infer U) => string ? U : never;
2
+ export type FunctionParams<T> = T extends (...args: infer U) => string ? U : [];
3
3
  export interface Translation {
4
4
  $code: string;
5
5
  $name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shoelace-style/localize",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "A micro library for localizing custom elements using Lit's Reactive Controller model.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -35,6 +35,6 @@
35
35
  "devDependencies": {
36
36
  "del": "^6.0.0",
37
37
  "lit": "^2.0.2",
38
- "typescript": "4.8.4"
38
+ "typescript": "^5.1.3"
39
39
  }
40
40
  }
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { LitElement, ReactiveController, ReactiveControllerHost } from 'lit';
2
2
 
3
- export type FunctionParams<T> = T extends (...args: infer U) => string ? U : never;
3
+ export type FunctionParams<T> = T extends (...args: infer U) => string ? U : [];
4
4
 
5
5
  export interface Translation {
6
6
  $code: string; // e.g. en, en-GB