Hi, since the event name changed from on:change to on:inview_change, TypeScript doesn't seem to recognize it any more and displays an error:
Argument of type '{ class: string; "on:inview_change": ({ detail }: any) => void; }' is not assignable to parameter of type 'Omit<Omit<HTMLAttributes<HTMLDivElement>, "data-sveltekit-keepfocus" | "data-sveltekit-noscroll" | "data-sveltekit-preload-code" | "data-sveltekit-preload-data" | ... 49 more ... | "aria-valuetext"> & EventsWithColon<...>, keyof HTMLAttributes<...>> & HTMLAttributes<...>'.
Object literal may only specify known properties, and '"on:inview_change"' does not exist in type 'Omit<Omit<HTMLAttributes<HTMLDivElement>, "data-sveltekit-keepfocus" | "data-sveltekit-noscroll" | "data-sveltekit-preload-code" | "data-sveltekit-preload-data" | ... 49 more ... | "aria-valuetext"> & EventsWithColon<...>, keyof HTMLAttributes<...>> & HTMLAttributes<...>'.ts(2345)
No quick fixes available
Is there some way to work around this? I'm using TypeScript 5.0.
Hi, since the event name changed from
on:change
toon:inview_change
, TypeScript doesn't seem to recognize it any more and displays an error:Is there some way to work around this? I'm using TypeScript 5.0.