Refactor #957 - Improve TypeScript definitions

This commit is contained in:
mertsincan 2021-02-09 17:49:37 +03:00
parent 328cb93a11
commit 1c81464760
66 changed files with 417 additions and 229 deletions

View file

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue';
import { VNode } from 'vue';
declare class CascadeSelect extends Vue {
interface CascadeSelectProps {
modelValue?: any;
options?: any[];
optionLabel?: string;
@ -14,6 +14,10 @@ declare class CascadeSelect extends Vue {
inputId?: string;
ariaLabelledBy?: string;
appendTo?: string;
}
declare class CascadeSelect {
$props: CascadeSelectProps;
$emit(eventName: 'update:modelValue', value: string): this;
$emit(eventName: 'change', e: { originalEvent: Event, value: any }): this;
$emit(eventName: 'change-group', e: { originalEvent: Event, value: any }): this;
@ -26,4 +30,4 @@ declare class CascadeSelect extends Vue {
}
}
export default CascadeSelect;
export default CascadeSelect;