Closed vatro closed 2 years ago
This was reconsidered and on
and onx
methods are being polished / refactored incl. new types during a major interaction refactor,
see: https://github.com/vatro/svelthree/commit/9eb3db365c83f1f6f0ccc4eabb87706a3d85f449
concerning
on
andonx
methods, e.g. ìnMesh
: https://github.com/vatro/svelthree/blob/00e3fada8d93f9bf24363fca84e396d37833d177/src/lib/components/Mesh.svelte#L705 https://github.com/vatro/svelthree/blob/00e3fada8d93f9bf24363fca84e396d37833d177/src/lib/components/Mesh.svelte#L725there are several
$on
type definitions in Svelte (runtime + dev):I believe the first one is the relevant one, so we could a) just ignore
no-explicit-any
here too b) use the second one + replaceany
with unknown or ignoreno-explicit-any
I'll go with a) for now and reconsider it later.
Originally posted by @vatro in https://github.com/vatro/svelthree/issues/170#issuecomment-1253576245