diff --git a/types/vue-select/index.d.ts b/types/vue-select/index.d.ts
index a718686d26..51ae9e4d56 100644
--- a/types/vue-select/index.d.ts
+++ b/types/vue-select/index.d.ts
@@ -25,7 +25,7 @@ export interface VueSelectProps {
transition: string;
clearSearchOnSelect: boolean;
closeOnSelect: boolean;
- label: boolean;
+ label: string;
getOptionLabel: (option: Option) => string;
onChange: OptionConsumer;
taggable: boolean;
diff --git a/types/vue-select/vue-select-tests.ts b/types/vue-select/vue-select-tests.ts
index fd4374b9cd..17cf97b2be 100644
--- a/types/vue-select/vue-select-tests.ts
+++ b/types/vue-select/vue-select-tests.ts
@@ -1,11 +1,67 @@
import Vue from 'vue';
+import VueSelect, {Option} from 'vue-select';
+
+const options = [
+ {
+ name: 'SomeName'
+ },
+ {
+ name: 'SomeName2'
+ }
+]
new Vue({
+
el: '#app',
+ data: {
+ options,
+ value: null,
+
+ },
components: {
'vue-select': VueSelect
},
- template: {
- ''
- }
+ methods: {
+ getOptionLabel(option: Option) {
+ if (option && option.name) {
+ return option.name;
+ }
+ return '';
+ },
+ optionConsumer(option: Option) {
+ },
+ optionToOption(option: Option) {
+ return option;
+ },
+ onSearch(search: string, loading: (b: boolean) => void) {
+ loading(true);
+ }
+ },
+ template: `
+
+
+`
});