Skip to content

Commit

Permalink
Fix TS Error "Generic type 'Mesh__SvelteComponent_<AnyMaterial>' requ…
Browse files Browse the repository at this point in the history
…ires 1 type argument(s)"

Due to newly added $$Generic material type, see 18806a7, not quite sure if it's a 100% correct fix, but the error is gone.

+ optimize imports a bit
  • Loading branch information
Vatroslav Vrbanic committed Dec 11, 2021
1 parent e5ed5ec commit 12649c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/DirectionalLight.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ This is a **svelthree** _DirectionalLight_ Component.
SvelthreeAnimationFunction
} from "../types-extra"
import { LightUtils } from "../utils"
import type { Empty } from "."
import type { Mesh } from "."
import type { Empty, Mesh } from "."
import { get_current_component } from "svelte/internal"
import { c_rs, c_lc, c_mau, verbose_mode, get_comp_name } from "../utils/SvelthreeLogger"
import type { LogLC, LogDEV } from "../utils/SvelthreeLogger"
Expand Down Expand Up @@ -101,7 +100,7 @@ This is a **svelthree** _DirectionalLight_ Component.
// CUSTOM actually no `lookAt` on DirectionalLight, we're using custom solution!
export let lookAt: Vector3 | Parameters<Vector3["set"]> | Object3D = undefined
export let target: Object3D | Empty | Mesh | boolean = undefined
export let target: Object3D | Empty | Mesh<any> | boolean = undefined
/**
* ☝️ If `matrix` attribute is provided, `pos`, `rot`, `scale` attributes as well as any provided transform props will be overridden!
Expand Down

0 comments on commit 12649c9

Please sign in to comment.