diff --git a/src/components/Timeline.vue b/src/components/Timeline.vue index e5a096b9..e54f60f2 100644 --- a/src/components/Timeline.vue +++ b/src/components/Timeline.vue @@ -305,11 +305,11 @@ export default defineComponent({ }, selectionManager() { - return this.$refs.selectionManager; + return this.$refs.selectionManager as InstanceType; }, scrollerManager() { - return this.$refs.scrollerManager; + return this.$refs.scrollerManager as InstanceType; }, /** Create new state */ @@ -452,7 +452,7 @@ export default defineComponent({ * the pixel position of the recycler has changed. */ scrollPositionChange(event?: Event) { - this.scrollerManager().recyclerScrolled(event); + this.scrollerManager().recyclerScrolled(event ?? null); }, /** Trigger when recycler view changes (for callback) */ diff --git a/src/shims.d.ts b/src/shims.d.ts index 1f3f468e..5ee58842 100644 --- a/src/shims.d.ts +++ b/src/shims.d.ts @@ -3,11 +3,7 @@ declare module '*.svg' { export default content; } -declare module '*.vue' { - import type { defineComponent } from 'vue'; - const Component: ReturnType; - export default Component; -} +declare module '*.vue'; // External components cannot be imported with .vue extension declare module '@nextcloud/vue/dist/Components/*' {