Răsfoiți Sursa

Loading: Remove implicit any from .d.ts

Axel Manuel 7 ani în urmă
părinte
comite
c3d996a60d
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      types/loading.d.ts

+ 2 - 2
types/loading.d.ts

@@ -30,7 +30,7 @@ export interface LoadingServiceOptions {
 /** Loading Component */
 export declare class ElLoadingComponent extends Vue {
   /** Close the Loading instance */
-  close ()
+  close (): void
 }
 
 /** Loading directive definition */
@@ -46,7 +46,7 @@ export interface ElLoadingDirective extends VNodeDirective {
 /** Show animation while loading data */
 export interface ElLoading {
   /** Install Loading directive into Vue */
-  install (vue: typeof Vue)
+  install (vue: typeof Vue): void
 
   /** 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