UNPKG

@earltp/vue-virtual-scroller

Version:

typescript declaration for vue-virtual-scroller 2 with vue 3

21 lines (16 loc) 717 B
// Type definitions for vue-virtual-scroller and vue 3 // Project: https://github.com/Akryum/vue-virtual-scroller/ declare module "vue-virtual-scroller" { type Plugin_2<Option = any> = PluginInstallFunction<Option> & { install?: PluginInstallFunction<Option>; } | { install: PluginInstallFunction<Option>; }; export {Plugin_2 as Plugin} type PluginInstallFunction<Option> = (app: App, ...options: Option[]) => any; interface App { //use(plugin: Plugin_2, ...options: any[]): this; // this line overrides below (because of any) use<Option>(plugin: Plugin_2<Option>, ...options: Option[]): this; } export const install: PluginInstallFunction<any>; }