Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Sep 8, 2022
1 parent 85ab121 commit ce76cff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.team.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"source.fixAll.eslint": true,
"source.organizeImports": true
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
Expand Down
22 changes: 11 additions & 11 deletions src/components/dropdown/Dropdown.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HTMLAttributes, InputHTMLAttributes, VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
import { VirtualScrollerProps, VirtualScrollerItemOptions } from '../virtualscroller';
import { VirtualScrollerItemOptions, VirtualScrollerProps } from '../virtualscroller';

type DropdownOptionLabelType = string | ((data: any) => string) | undefined;

Expand Down Expand Up @@ -224,11 +224,11 @@ export interface DropdownProps {
/**
* Defines a string value that labels an interactive element.
*/
"aria-label"?: string | undefined;
'aria-label'?: string | undefined;
/**
* Identifier of the underlying input element.
*/
"aria-labelledby"?: string | undefined;
'aria-labelledby'?: string | undefined;
}

export interface DropdownSlots {
Expand Down Expand Up @@ -361,17 +361,17 @@ export declare type DropdownEmits = {
* Callback to invoke on value change.
* @param {DropdownChangeEvent} event - Custom change event.
*/
'change': (event: DropdownChangeEvent) => void;
change: (event: DropdownChangeEvent) => void;
/**
* Callback to invoke when the component receives focus.
* @param {Event} event - Browser event.
*/
'focus': (event: Event) => void;
focus: (event: Event) => void;
/**
* Callback to invoke when the component loses focus.
* @param {Event} event - Browser event.
*/
'blur': (event: Event) => void;
blur: (event: Event) => void;
/**
* Callback to invoke before the overlay is shown.
*/
Expand All @@ -383,17 +383,17 @@ export declare type DropdownEmits = {
/**
* Callback to invoke when the overlay is shown.
*/
'show': () => void;
show: () => void;
/**
* Callback to invoke when the overlay is hidden.
*/
'hide': () => void;
hide: () => void;
/**
* Callback to invoke on filter input.
* @param {DropdownFilterEvent} event - Custom filter event.
*/
'filter': (event: DropdownFilterEvent) => void;
}
filter: (event: DropdownFilterEvent) => void;
};

declare class Dropdown extends ClassComponent<DropdownProps, DropdownSlots, DropdownEmits> {
/**
Expand All @@ -414,7 +414,7 @@ declare class Dropdown extends ClassComponent<DropdownProps, DropdownSlots, Drop

declare module '@vue/runtime-core' {
interface GlobalComponents {
Dropdown: GlobalComponentConstructor<Dropdown>
Dropdown: GlobalComponentConstructor<Dropdown>;
}
}

Expand Down

0 comments on commit ce76cff

Please sign in to comment.