Skip to content

Commit

Permalink
types(Toast): fix missing global components type (#11033)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Sep 11, 2022
1 parent b291809 commit e1670e2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vant/src/image-preview/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ export type {

declare module 'vue' {
export interface GlobalComponents {
VanImagePreview: typeof ImagePreview.Component;
VanImagePreview: typeof ImagePreview;
}
}
2 changes: 1 addition & 1 deletion packages/vant/src/notify/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ export type { NotifyType, NotifyOptions } from './types';

declare module 'vue' {
export interface GlobalComponents {
VanNotify: typeof Notify.Component;
VanNotify: typeof Notify;
}
}
6 changes: 6 additions & 0 deletions packages/vant/src/toast/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@ export {

export type { ToastProps } from './Toast';
export type { ToastType, ToastOptions, ToastPosition } from './types';

declare module 'vue' {
export interface GlobalComponents {
VanToast: typeof Toast;
}
}

0 comments on commit e1670e2

Please sign in to comment.