type: update loading type definition (#15635)

pull/15541/head^2
iamkun 2019-05-27 15:38:30 +08:00 committed by luckyCao
parent 35650eb7fa
commit d0debda76c
1 changed files with 2 additions and 2 deletions

4
types/loading.d.ts vendored
View File

@ -1,4 +1,4 @@
import Vue, { VNodeDirective } from 'vue' import Vue, { VNodeDirective, PluginObject } from 'vue'
/** Options used in Loading service */ /** Options used in Loading service */
export interface LoadingServiceOptions { export interface LoadingServiceOptions {
@ -51,7 +51,7 @@ export interface ElLoading {
/** If you do not have a specific DOM node to attach the Loading directive, or if you simply prefer not to use Loading as a directive, you can call this service with some configs to open a Loading instance. */ /** If you do not have a specific DOM node to attach the Loading directive, or if you simply prefer not to use Loading as a directive, you can call this service with some configs to open a Loading instance. */
service (options: LoadingServiceOptions): ElLoadingComponent service (options: LoadingServiceOptions): ElLoadingComponent
directive: object directive: PluginObject<never>
} }
declare module 'vue/types/vue' { declare module 'vue/types/vue' {