Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

Commit 516d1eb

Browse files
authoredSep 5, 2024
fix: TS typings mismatch (#126)
1 parent 2e4a8a0 commit 516d1eb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎types/index.d.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Plugin, Component} from 'vue'
1+
import type {App, DefineComponent} from 'vue'
22

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

@@ -41,11 +41,11 @@ declare module 'vue' {
4141
}
4242
}
4343

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

47-
export declare function useLoading(globalProps?: Props, globalSlots?: Slots): PluginApi
47+
declare function useLoading(globalProps?: Props, globalSlots?: Slots): PluginApi
4848

49-
export {LoadingPlugin};
49+
export {LoadingPlugin, Component, useLoading};
5050

5151
export default Component

0 commit comments

Comments
 (0)
Failed to load comments.