refactor: fix vue typing
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/877/head
parent
044d94f3b9
commit
8e79b769ed
|
@ -305,11 +305,11 @@ export default defineComponent({
|
|||
},
|
||||
|
||||
selectionManager() {
|
||||
return <any>this.$refs.selectionManager;
|
||||
return this.$refs.selectionManager as InstanceType<typeof SelectionManager>;
|
||||
},
|
||||
|
||||
scrollerManager() {
|
||||
return <any>this.$refs.scrollerManager;
|
||||
return this.$refs.scrollerManager as InstanceType<typeof ScrollerManager>;
|
||||
},
|
||||
|
||||
/** 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) */
|
||||
|
|
|
@ -3,11 +3,7 @@ declare module '*.svg' {
|
|||
export default content;
|
||||
}
|
||||
|
||||
declare module '*.vue' {
|
||||
import type { defineComponent } from 'vue';
|
||||
const Component: ReturnType<typeof defineComponent>;
|
||||
export default Component;
|
||||
}
|
||||
declare module '*.vue';
|
||||
|
||||
// External components cannot be imported with .vue extension
|
||||
declare module '@nextcloud/vue/dist/Components/*' {
|
||||
|
|
Loading…
Reference in New Issue