Skip to content

Commit

Permalink
fix: issue #125 typings mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
zymotik committed Sep 1, 2024
1 parent 2e4a8a0 commit f6e6ad4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Plugin, Component} from 'vue'
import type {App, DefineComponent} from 'vue'

export type LoaderType = 'spinner' | 'dots' | 'bars'

Expand Down Expand Up @@ -41,11 +41,11 @@ declare module 'vue' {
}
}

declare const LoadingPlugin: Plugin
declare const Component: Component
declare const LoadingPlugin: (app: App, props?: Props, slots?: Slots) => void
declare const Component: DefineComponent<Props, {}, {}, {}, {}, {}, {}, { 'hide': () => void, 'update:active': (value: boolean) => void }>

export declare function useLoading(globalProps?: Props, globalSlots?: Slots): PluginApi
declare function useLoading(globalProps?: Props, globalSlots?: Slots): PluginApi

export {LoadingPlugin};
export {LoadingPlugin, Component, useLoading};

export default Component

0 comments on commit f6e6ad4

Please sign in to comment.