Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: issue ankurk91#125 typings mismatch #126

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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