Commit e9384960119b85cb55e7a1ac6b6b6d58436b3d63
1 parent
90399f84
fix promise types error
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
types/drawer.d.ts
@@ -75,7 +75,7 @@ export declare interface Drawer extends Vue { | @@ -75,7 +75,7 @@ export declare interface Drawer extends Vue { | ||
75 | /** | 75 | /** |
76 | * 返回 Promise 可以阻止关闭 | 76 | * 返回 Promise 可以阻止关闭 |
77 | */ | 77 | */ |
78 | - 'before-close'?: () => void | PromiseConstructor; | 78 | + 'before-close'?: () => void | Promise<any>; |
79 | /** | 79 | /** |
80 | * 关闭抽屉时触发 | 80 | * 关闭抽屉时触发 |
81 | */ | 81 | */ |