Skip to content

Commit

Permalink
Merge pull request #5419 from BobbieGoede/fix/global-components-modul…
Browse files Browse the repository at this point in the history
…e-type-augmentation

fix(types): augment `GlobalComponent` interface in `vue` module
  • Loading branch information
tugcekucukoglu committed Mar 25, 2024
2 parents c6237f4 + d7000e4 commit 8752e16
Show file tree
Hide file tree
Showing 147 changed files with 294 additions and 294 deletions.
4 changes: 2 additions & 2 deletions components/lib/accordion/Accordion.d.ts
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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

0 comments on commit 8752e16

Please sign in to comment.