@types/vue-tel-input 2.1.7 → 9.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
vue-tel-input/README.md CHANGED
@@ -1,116 +1,3 @@
1
- # Installation
2
- > `npm install --save @types/vue-tel-input`
3
-
4
- # Summary
5
- This package contains type definitions for vue-tel-input (https://educationlink.github.io/vue-tel-input).
6
-
7
- # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/vue-tel-input.
9
- ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/vue-tel-input/index.d.ts)
10
- ````ts
11
- import { PluginFunction, VueConstructor } from "vue";
12
- import { DirectiveOptions } from "vue/types/options";
1
+ This is a stub types definition for @types/vue-tel-input (https://iamstevendao.com/vue-tel-input/).
13
2
 
14
- export default VueTelInput;
15
- export const VueTelInput: VueTelInputConstructor;
16
-
17
- export interface VueTelInputProps {
18
- value: string;
19
- placeholder: string;
20
- autoDefaultCountry: boolean;
21
- disabled: boolean;
22
- disabledFormatting: boolean;
23
- invalidMsg: string;
24
- required: boolean;
25
- defaultCountry: string;
26
- enabledCountryCode: boolean;
27
- enabledFlags: boolean;
28
- preferredCountries: any[];
29
- onlyCountries: any[];
30
- ignoredCountries: any[];
31
- autocomplete: string;
32
- name: string;
33
- wrapperClasses: string;
34
- inputClasses: string;
35
- dropdownOptions: VueTelInputDowndownOption;
36
- inputOptions: VueTelInputInputOption;
37
- maxLen: number;
38
- }
39
-
40
- export interface VueTelInputData {
41
- phone: string;
42
- activeCountry: VueTelInputCountryOption;
43
- open: boolean;
44
- selectedIndex: any;
45
- typeToFindInput: string;
46
- typeToFindTimer: any;
47
- }
48
-
49
- export interface VueTelInputWatch {
50
- state: (value: any) => void;
51
- value: () => void;
52
- }
53
-
54
- export interface VueTelInputMethods {
55
- initializeCountry: () => void;
56
- getCountries: (list: any[]) => any[];
57
- findCountry: (iso: string) => any[];
58
- getItemClass: (index: number, iso2: string) => any;
59
- choose: (country: any) => void;
60
- onInput: () => void;
61
- onBlur: () => void;
62
- toggleDropdown: () => void;
63
- clickedOutside: () => void;
64
- keyboardNav: (e: Event) => void;
65
- reset: () => void;
66
- }
67
-
68
- export interface VueTelInputComputed {
69
- mode: () => string;
70
- filteredCountries: () => string[];
71
- sortedCountries: () => string[];
72
- formattedResult: () => string;
73
- state: () => boolean;
74
- response: () => VueTelInputResponse;
75
- }
76
-
77
- export interface VueTelInputDirective {
78
- "click-outside": DirectiveOptions;
79
- }
80
-
81
- export interface VueTelInputResponse {
82
- number: string;
83
- isValid: boolean;
84
- country: VueTelInputCountryOption;
85
- }
86
-
87
- export interface VueTelInputCountryOption {
88
- iso2: string;
89
- }
90
-
91
- export interface VueTelInputDowndownOption {
92
- disabledDialCode: boolean;
93
- }
94
-
95
- export interface VueTelInputInputOption {
96
- showDialCode: boolean;
97
- }
98
-
99
- export interface VueTelInputConstructor extends VueConstructor {
100
- install: PluginFunction<never>;
101
- props: VueTelInputProps;
102
- data: () => VueTelInputData;
103
- watch: VueTelInputWatch;
104
- methods: VueTelInputMethods;
105
- computed: VueTelInputComputed;
106
- directives: VueTelInputDirective;
107
- }
108
-
109
- ````
110
-
111
- ### Additional Details
112
- * Last updated: Tue, 06 Aug 2024 21:07:20 GMT
113
- * Dependencies: [vue](https://npmjs.com/package/vue)
114
-
115
- # Credits
116
- These definitions were written by [Komang Suryadana](https://github.com/suryadana).
3
+ vue-tel-input provides its own type definitions, so you don't need @types/vue-tel-input installed!
@@ -1,27 +1,12 @@
1
1
  {
2
2
  "name": "@types/vue-tel-input",
3
- "version": "2.1.7",
4
- "description": "TypeScript definitions for vue-tel-input",
5
- "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/vue-tel-input",
6
- "license": "MIT",
7
- "contributors": [
8
- {
9
- "name": "Komang Suryadana",
10
- "githubUsername": "suryadana",
11
- "url": "https://github.com/suryadana"
12
- }
13
- ],
3
+ "version": "9.7.1",
4
+ "description": "Stub TypeScript definitions entry for vue-tel-input, which provides its own types definitions",
14
5
  "main": "",
15
- "types": "index.d.ts",
16
- "repository": {
17
- "type": "git",
18
- "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
19
- "directory": "types/vue-tel-input"
20
- },
21
6
  "scripts": {},
7
+ "license": "MIT",
22
8
  "dependencies": {
23
- "vue": "^2.0.0"
9
+ "vue-tel-input": "*"
24
10
  },
25
- "typesPublisherContentHash": "55f25f3f17109df697ced2cbed21ba78aff5ec479ab4cc199fe779f4fbeed0b6",
26
- "typeScriptVersion": "4.8"
11
+ "deprecated": "This is a stub types definition. vue-tel-input provides its own type definitions, so you do not need this installed."
27
12
  }
vue-tel-input/index.d.ts DELETED
@@ -1,97 +0,0 @@
1
- import { PluginFunction, VueConstructor } from "vue";
2
- import { DirectiveOptions } from "vue/types/options";
3
-
4
- export default VueTelInput;
5
- export const VueTelInput: VueTelInputConstructor;
6
-
7
- export interface VueTelInputProps {
8
- value: string;
9
- placeholder: string;
10
- autoDefaultCountry: boolean;
11
- disabled: boolean;
12
- disabledFormatting: boolean;
13
- invalidMsg: string;
14
- required: boolean;
15
- defaultCountry: string;
16
- enabledCountryCode: boolean;
17
- enabledFlags: boolean;
18
- preferredCountries: any[];
19
- onlyCountries: any[];
20
- ignoredCountries: any[];
21
- autocomplete: string;
22
- name: string;
23
- wrapperClasses: string;
24
- inputClasses: string;
25
- dropdownOptions: VueTelInputDowndownOption;
26
- inputOptions: VueTelInputInputOption;
27
- maxLen: number;
28
- }
29
-
30
- export interface VueTelInputData {
31
- phone: string;
32
- activeCountry: VueTelInputCountryOption;
33
- open: boolean;
34
- selectedIndex: any;
35
- typeToFindInput: string;
36
- typeToFindTimer: any;
37
- }
38
-
39
- export interface VueTelInputWatch {
40
- state: (value: any) => void;
41
- value: () => void;
42
- }
43
-
44
- export interface VueTelInputMethods {
45
- initializeCountry: () => void;
46
- getCountries: (list: any[]) => any[];
47
- findCountry: (iso: string) => any[];
48
- getItemClass: (index: number, iso2: string) => any;
49
- choose: (country: any) => void;
50
- onInput: () => void;
51
- onBlur: () => void;
52
- toggleDropdown: () => void;
53
- clickedOutside: () => void;
54
- keyboardNav: (e: Event) => void;
55
- reset: () => void;
56
- }
57
-
58
- export interface VueTelInputComputed {
59
- mode: () => string;
60
- filteredCountries: () => string[];
61
- sortedCountries: () => string[];
62
- formattedResult: () => string;
63
- state: () => boolean;
64
- response: () => VueTelInputResponse;
65
- }
66
-
67
- export interface VueTelInputDirective {
68
- "click-outside": DirectiveOptions;
69
- }
70
-
71
- export interface VueTelInputResponse {
72
- number: string;
73
- isValid: boolean;
74
- country: VueTelInputCountryOption;
75
- }
76
-
77
- export interface VueTelInputCountryOption {
78
- iso2: string;
79
- }
80
-
81
- export interface VueTelInputDowndownOption {
82
- disabledDialCode: boolean;
83
- }
84
-
85
- export interface VueTelInputInputOption {
86
- showDialCode: boolean;
87
- }
88
-
89
- export interface VueTelInputConstructor extends VueConstructor {
90
- install: PluginFunction<never>;
91
- props: VueTelInputProps;
92
- data: () => VueTelInputData;
93
- watch: VueTelInputWatch;
94
- methods: VueTelInputMethods;
95
- computed: VueTelInputComputed;
96
- directives: VueTelInputDirective;
97
- }