Skip to content

Commit

Permalink
fix: TS typings mismatch (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
zymotik authored Sep 5, 2024
1 parent 2e4a8a0 commit 516d1eb
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 516d1eb

Please sign in to comment.