Skip to content

Commit

Permalink
types: fix ComponentCustomProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Sep 1, 2020
1 parent e2c082b commit 0acbc6e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions types/dialog.d.ts
Expand Up @@ -15,7 +15,7 @@ export type DialogOptions = {
transition?: string;
messageAlign?: string;
overlayClass?: string;
overlayStyle?: object;
overlayStyle?: Record<string, any>;
closeOnPopstate?: boolean;
cancelButtonText?: string;
cancelButtonColor?: string;
Expand All @@ -39,8 +39,8 @@ export interface Dialog {
Component: typeof VanComponent;
}

declare module 'vue/types/vue' {
interface Vue {
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$dialog: Dialog;
}
}
Expand Down
4 changes: 2 additions & 2 deletions types/notify.d.ts
Expand Up @@ -34,8 +34,8 @@ export interface Notify {
Component: typeof VanComponent;
}

declare module 'vue/types/vue' {
interface Vue {
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$notify: Notify;
}
}
Expand Down
4 changes: 2 additions & 2 deletions types/toast.d.ts
Expand Up @@ -50,8 +50,8 @@ export interface Toast {
allowMultiple(allow: boolean): void;
}

declare module 'vue/types/vue' {
interface Vue {
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$toast: Toast;
}
}
Expand Down

0 comments on commit 0acbc6e

Please sign in to comment.