lunchboxjs 2.2.0 → 2.2.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/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "types": "./src/types.d.ts"
14
14
  }
15
15
  },
16
- "version": "2.2.0",
16
+ "version": "2.2.1",
17
17
  "type": "module",
18
18
  "types": "./src/types.d.ts",
19
19
  "scripts": {
@@ -35,7 +35,7 @@
35
35
  "cypress": "^13.9.0",
36
36
  "happy-dom": "^16.8.1",
37
37
  "three": "^0.164.1",
38
- "typescript": "^5.2.2",
38
+ "typescript": "^5.9.3",
39
39
  "vite": "^5.2.0",
40
40
  "vitest": "^3.0.5"
41
41
  }
package/src/three-base.ts CHANGED
@@ -17,7 +17,7 @@ export const IGNORED_ATTRIBUTES = [
17
17
  const buildNestedPropertyArray = (input: string) => input.split('-');
18
18
 
19
19
  /** Standard ThreeJS class */
20
- export abstract class ThreeBase<U extends new (...args: any) => any> extends LitElement {
20
+ export abstract class ThreeBase<U extends IsClass> extends LitElement {
21
21
  instance: U | null = null;
22
22
 
23
23
  dispose: (() => void)[] = [];
@@ -63,7 +63,7 @@ export abstract class ThreeBase<U extends new (...args: any) => any> extends Lit
63
63
  createUnderlyingThreeObject() {
64
64
  // Instance creation
65
65
  // ==================
66
- this.instance = new (this.classSource)(...this.parsedArgs().map(arg => parseAttributeOrPropertyValue(arg, this)));
66
+ this.instance = new (this.classSource)(...this.parsedArgs().map(arg => parseAttributeOrPropertyValue(arg, this))) as U;
67
67
  }
68
68
 
69
69
  refreshAttributes() {