Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): augment GlobalComponent interface in vue module #5419

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/lib/accordion/Accordion.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ export interface AccordionEmits {
*/
declare class Accordion extends ClassComponent<AccordionProps, AccordionSlots, AccordionEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
Accordion: GlobalComponentConstructor<Accordion>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/accordiontab/AccordionTab.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ export interface AccordionTabEmits {}
*/
declare class AccordionTab extends ClassComponent<AccordionTabProps, AccordionTabSlots, AccordionTabEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
AccordionTab: GlobalComponentConstructor<AccordionTab>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/autocomplete/AutoComplete.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -769,8 +769,8 @@ export interface AutoCompleteEmits {
*/
declare class AutoComplete extends ClassComponent<AutoCompleteProps, AutoCompleteSlots, AutoCompleteEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
AutoComplete: GlobalComponentConstructor<AutoComplete>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/avatar/Avatar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ export interface AvatarEmits {
*/
declare class Avatar extends ClassComponent<AvatarProps, AvatarSlots, AvatarEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
Avatar: GlobalComponentConstructor<Avatar>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/avatargroup/AvatarGroup.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export interface AvatarGroupEmits {}
*/
declare class AvatarGroup extends ClassComponent<AvatarGroupProps, AvatarGroupSlots, AvatarGroupEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
AvatarGroup: GlobalComponentConstructor<AvatarGroup>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/badge/Badge.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ export interface BadgeEmits {}
*/
declare class Badge extends ClassComponent<BadgeProps, BadgeSlots, BadgeEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
Badge: GlobalComponentConstructor<Badge>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/blockui/BlockUI.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ export interface BlockUIEmits {
*/
declare class BlockUI extends ClassComponent<BlockUIProps, BlockUISlots, BlockUIEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
BlockUI: GlobalComponentConstructor<BlockUI>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/breadcrumb/Breadcrumb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ export interface BreadcrumbEmits {}
*/
declare class Breadcrumb extends ClassComponent<BreadcrumbProps, BreadcrumbSlots, BreadcrumbEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
Breadcrumb: GlobalComponentConstructor<Breadcrumb>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/button/Button.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ export interface ButtonEmits {}
*/
declare class Button extends ClassComponent<ButtonProps, ButtonSlots, ButtonEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
Button: GlobalComponentConstructor<Button>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/buttongroup/ButtonGroup.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ export interface ButtonGroupEmits {}
*/
declare class ButtonGroup extends ClassComponent<ButtonGroupProps, ButtonGroupSlots, ButtonGroupEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
ButtonGroup: GlobalComponentConstructor<ButtonGroup>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/calendar/Calendar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1008,8 +1008,8 @@ export interface CalendarEmits {
*/
declare class Calendar extends ClassComponent<CalendarProps, CalendarSlots, CalendarEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
Calendar: GlobalComponentConstructor<Calendar>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/card/Card.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ export interface CardEmits {}
*/
declare class Card extends ClassComponent<CardProps, CardSlots, CardEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
Card: GlobalComponentConstructor<Card>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/carousel/Carousel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,8 @@ export interface CarouselEmits {
*/
declare class Carousel extends ClassComponent<CarouselProps, CarouselSlots, CarouselEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
Carousel: GlobalComponentConstructor<Carousel>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/cascadeselect/CascadeSelect.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,8 @@ export interface CascadeSelectEmits {
*/
declare class CascadeSelect extends ClassComponent<CascadeSelectProps, CascadeSelectSlots, CascadeSelectEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
CascadeSelect: GlobalComponentConstructor<CascadeSelect>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/chart/Chart.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ declare class Chart extends ClassComponent<ChartProps, ChartSlots, ChartEmits> {
getChart(): any;
}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
Chart: GlobalComponentConstructor<Chart>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/checkbox/Checkbox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ export interface CheckboxEmits {
*/
declare class Checkbox extends ClassComponent<CheckboxProps, CheckboxSlots, CheckboxEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
Checkbox: GlobalComponentConstructor<Checkbox>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/chip/Chip.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ export interface ChipEmits {
*/
declare class Chip extends ClassComponent<ChipProps, ChipSlots, ChipEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
Chip: GlobalComponentConstructor<Chip>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/chips/Chips.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ export interface ChipsEmits {
*/
declare class Chips extends ClassComponent<ChipsProps, ChipsSlots, ChipsEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
Chips: GlobalComponentConstructor<Chips>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/colorpicker/ColorPicker.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ export interface ColorPickerEmits {
*/
declare class ColorPicker extends ClassComponent<ColorPickerProps, ColorPickerSlots, ColorPickerEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
ColorPicker: GlobalComponentConstructor<ColorPicker>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/column/Column.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -983,8 +983,8 @@ declare class Column extends ClassComponent<ColumnProps, ColumnSlots, ColumnEmit

export type ColumnNode = Column & { props: Column['$props'] };

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
Column: GlobalComponentConstructor<Column>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/columngroup/ColumnGroup.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ export interface ColumnGroupEmits {}
*/
declare class ColumnGroup extends ClassComponent<ColumnGroupProps, ColumnGroupSlots, ColumnGroupEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
ColumnGroup: GlobalComponentConstructor<ColumnGroup>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/confirmdialog/ConfirmDialog.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ export interface ConfirmDialogEmits {}
*/
declare class ConfirmDialog extends ClassComponent<ConfirmDialogProps, ConfirmDialogSlots, ConfirmDialogEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
ConfirmDialog: GlobalComponentConstructor<ConfirmDialog>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/confirmpopup/ConfirmPopup.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ export interface ConfirmPopupEmits {}
*/
declare class ConfirmPopup extends ClassComponent<ConfirmPopupProps, ConfirmPopupSlots, ConfirmPopupEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
ConfirmPopup: GlobalComponentConstructor<ConfirmPopup>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/contextmenu/ContextMenu.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@ declare class ContextMenu extends ClassComponent<ContextMenuProps, ContextMenuSl
hide(): void;
}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
ContextMenu: GlobalComponentConstructor<ContextMenu>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/datatable/DataTable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1517,8 +1517,8 @@ declare class DataTable extends ClassComponent<DataTableProps, DataTableSlots, D
exportCSV(options?: DataTableExportCSVOptions, data?: any[]): void;
}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
DataTable: GlobalComponentConstructor<DataTable>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/dataview/DataView.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ export interface DataViewEmits {
*/
declare class DataView extends ClassComponent<DataViewProps, DataViewSlots, DataViewEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
DataView: GlobalComponentConstructor<DataView>;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ export interface DataViewLayoutOptionsEmits {
*/
declare class DataViewLayoutOptions extends ClassComponent<DataViewLayoutOptionsProps, DataViewLayoutOptionsSlots, DataViewLayoutOptionsEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
DataViewLayoutOptions: GlobalComponentConstructor<DataViewLayoutOptions>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/deferredcontent/DeferredContent.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ export interface DeferredContentEmits {
*/
declare class DeferredContent extends ClassComponent<DeferredContentProps, DeferredContentSlots, DeferredContentEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
DeferredContent: GlobalComponentConstructor<DeferredContent>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/dialog/Dialog.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,8 @@ export interface DialogEmits {
*/
declare class Dialog extends ClassComponent<DialogProps, DialogSlots, DialogEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
Dialog: GlobalComponentConstructor<Dialog>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/divider/Divider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ export interface DividerEmits {}
*/
declare class Divider extends ClassComponent<DividerProps, DividerSlots, DividerEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
Divider: GlobalComponentConstructor<Divider>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/dock/Dock.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ export interface DockEmits {
*/
declare class Dock extends ClassComponent<DockProps, DockSlots, DockEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
Dock: GlobalComponentConstructor<Dock>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/dropdown/Dropdown.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -758,8 +758,8 @@ declare class Dropdown extends ClassComponent<DropdownProps, DropdownSlots, Drop
hide: (isFocus?: boolean) => void;
}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
Dropdown: GlobalComponentConstructor<Dropdown>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/dynamicdialog/DynamicDialog.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export interface DynamicDialogSlots {}
*/
declare class DynamicDialog extends ClassComponent<DynamicDialogProps, DynamicDialogSlots, DynamicDialogEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
DynamicDialog: GlobalComponentConstructor<DynamicDialog>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/editor/Editor.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ export interface EditorEmits {
*/
declare class Editor extends ClassComponent<EditorProps, EditorSlots, EditorEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
Editor: GlobalComponentConstructor<Editor>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/fieldset/Fieldset.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ export interface FieldsetEmits {
*/
declare class Fieldset extends ClassComponent<FieldsetProps, FieldsetSlots, FieldsetEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
Fieldset: GlobalComponentConstructor<Fieldset>;
}
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/fileupload/FileUpload.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,8 @@ export interface FileUploadEmits {
*/
declare class FileUpload extends ClassComponent<FileUploadProps, FileUploadSlots, FileUploadEmits> {}

declare module '@vue/runtime-core' {
interface GlobalComponents {
declare module 'vue' {
export interface GlobalComponents {
FileUpload: GlobalComponentConstructor<FileUpload>;
}
}
Expand Down
Loading
Loading