vatro / svelthree

Create three.js content using Svelte components.

Home Page:https://svelthree.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix animation related ESLint warnings and errors

vatro opened this issue · comments

concerning no-explicit-any warning for get_animation (e.g. in Mesh):

export const get_animation = (): any => ani.getAnimation()

fix this along with:

.\src\lib\ani\SvelthreeAnimation.ts
   8:13  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any   
  36:25  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any   

.\src\lib\ani\SvelthreeAnimationManager.ts
    7:38  error  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any    
   13:50  error  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any    
  171:18  error  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any    

.\src\lib\ani\SvelthreeAnimationProp.ts
  11:35  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any   
  11:43  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any   
  12:20  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any  

Originally posted by @vatro in #170 (comment)
Also related to (should close) #165