with-install.d.ts 353 B

12345678910111213
  1. import type { App, Component } from 'vue';
  2. type EventShim = {
  3. new (...args: any[]): {
  4. $props: {
  5. onClick?: (...args: any[]) => void;
  6. };
  7. };
  8. };
  9. export type WithInstall<T> = T & {
  10. install(app: App): void;
  11. } & EventShim;
  12. export declare function withInstall<T extends Component>(options: T): WithInstall<T>;
  13. export {};