|
1 |
| -export type { CountUp as ICountUp, CountUpOptions } from 'countup.js'; |
2 | 1 | import { CountUp } from 'countup.js';
|
3 | 2 | import type { CountUpOptions } from 'countup.js';
|
4 |
| -declare const _default: import("vue").DefineComponent<{ |
5 |
| - endVal: { |
6 |
| - type: import("vue").PropType<string | number>; |
7 |
| - required: true; |
8 |
| - }; |
9 |
| - startVal: { |
10 |
| - type: import("vue").PropType<string | number>; |
11 |
| - } & { |
12 |
| - default: number; |
13 |
| - }; |
14 |
| - duration: { |
15 |
| - type: import("vue").PropType<string | number>; |
16 |
| - } & { |
17 |
| - default: number; |
18 |
| - }; |
19 |
| - decimalPlaces: { |
20 |
| - type: import("vue").PropType<number>; |
21 |
| - } & { |
22 |
| - default: number; |
23 |
| - }; |
24 |
| - autoplay: { |
25 |
| - type: import("vue").PropType<boolean>; |
26 |
| - } & { |
27 |
| - default: boolean; |
28 |
| - }; |
29 |
| - loop: { |
30 |
| - type: import("vue").PropType<number | boolean>; |
31 |
| - } & { |
32 |
| - default: boolean; |
33 |
| - }; |
34 |
| - delay: { |
35 |
| - type: import("vue").PropType<number>; |
36 |
| - } & { |
37 |
| - default: number; |
38 |
| - }; |
39 |
| - options: { |
40 |
| - type: import("vue").PropType<CountUpOptions>; |
41 |
| - } & { |
42 |
| - default: undefined; |
43 |
| - }; |
44 |
| -}, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { |
| 3 | +export type { CountUp as ICountUp, CountUpOptions } from 'countup.js'; |
| 4 | +declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{ |
| 5 | + endVal: number | string; |
| 6 | + startVal?: string | number | undefined; |
| 7 | + duration?: string | number | undefined; |
| 8 | + decimalPlaces?: number | undefined; |
| 9 | + autoplay?: boolean | undefined; |
| 10 | + loop?: number | boolean | undefined; |
| 11 | + delay?: number | undefined; |
| 12 | + options?: CountUpOptions | undefined; |
| 13 | +}>, { |
| 14 | + startVal: number; |
| 15 | + duration: number; |
| 16 | + decimalPlaces: number; |
| 17 | + autoplay: boolean; |
| 18 | + loop: boolean; |
| 19 | + delay: number; |
| 20 | + ignorePart: undefined; |
| 21 | + options: undefined; |
| 22 | +}>, { |
| 23 | + init: () => void; |
| 24 | + restart: () => void; |
| 25 | +}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { |
45 | 26 | init: (countup: CountUp) => void;
|
46 |
| -} & { |
47 | 27 | finished: () => void;
|
48 |
| -}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ |
49 |
| - endVal: { |
50 |
| - type: import("vue").PropType<string | number>; |
51 |
| - required: true; |
52 |
| - }; |
53 |
| - startVal: { |
54 |
| - type: import("vue").PropType<string | number>; |
55 |
| - } & { |
56 |
| - default: number; |
57 |
| - }; |
58 |
| - duration: { |
59 |
| - type: import("vue").PropType<string | number>; |
60 |
| - } & { |
61 |
| - default: number; |
62 |
| - }; |
63 |
| - decimalPlaces: { |
64 |
| - type: import("vue").PropType<number>; |
65 |
| - } & { |
66 |
| - default: number; |
67 |
| - }; |
68 |
| - autoplay: { |
69 |
| - type: import("vue").PropType<boolean>; |
70 |
| - } & { |
71 |
| - default: boolean; |
72 |
| - }; |
73 |
| - loop: { |
74 |
| - type: import("vue").PropType<number | boolean>; |
75 |
| - } & { |
76 |
| - default: boolean; |
77 |
| - }; |
78 |
| - delay: { |
79 |
| - type: import("vue").PropType<number>; |
80 |
| - } & { |
81 |
| - default: number; |
82 |
| - }; |
83 |
| - options: { |
84 |
| - type: import("vue").PropType<CountUpOptions>; |
85 |
| - } & { |
86 |
| - default: undefined; |
87 |
| - }; |
88 |
| -}>> & { |
89 |
| - onFinished?: (() => any) | undefined; |
| 28 | +}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{ |
| 29 | + endVal: number | string; |
| 30 | + startVal?: string | number | undefined; |
| 31 | + duration?: string | number | undefined; |
| 32 | + decimalPlaces?: number | undefined; |
| 33 | + autoplay?: boolean | undefined; |
| 34 | + loop?: number | boolean | undefined; |
| 35 | + delay?: number | undefined; |
| 36 | + options?: CountUpOptions | undefined; |
| 37 | +}>, { |
| 38 | + startVal: number; |
| 39 | + duration: number; |
| 40 | + decimalPlaces: number; |
| 41 | + autoplay: boolean; |
| 42 | + loop: boolean; |
| 43 | + delay: number; |
| 44 | + ignorePart: undefined; |
| 45 | + options: undefined; |
| 46 | +}>>> & { |
90 | 47 | onInit?: ((countup: CountUp) => any) | undefined;
|
| 48 | + onFinished?: (() => any) | undefined; |
91 | 49 | }, {
|
92 |
| - options: CountUpOptions; |
93 |
| - duration: string | number; |
94 |
| - autoplay: boolean; |
95 |
| - loop: number | boolean; |
96 |
| - startVal: string | number; |
| 50 | + startVal: number | string; |
| 51 | + duration: number | string; |
97 | 52 | decimalPlaces: number;
|
| 53 | + autoplay: boolean; |
| 54 | + loop: boolean | number; |
98 | 55 | delay: number;
|
| 56 | + options: CountUpOptions; |
| 57 | +}, {}>, { |
| 58 | + prefix?(_: {}): any; |
| 59 | + suffix?(_: {}): any; |
99 | 60 | }>;
|
100 | 61 | export default _default;
|
| 62 | + |
| 63 | +type __VLS_WithDefaults<P, D> = { |
| 64 | + [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { |
| 65 | + default: D[K]; |
| 66 | + }> : P[K]; |
| 67 | +}; |
| 68 | +type __VLS_Prettify<T> = { |
| 69 | + [K in keyof T]: T[K]; |
| 70 | +} & {}; |
| 71 | +type __VLS_WithTemplateSlots<T, S> = T & { |
| 72 | + new (): { |
| 73 | + $slots: S; |
| 74 | + }; |
| 75 | +}; |
| 76 | +type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; |
| 77 | +type __VLS_TypePropsToOption<T> = { |
| 78 | + [K in keyof T]-?: {} extends Pick<T, K> ? { |
| 79 | + type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; |
| 80 | + } : { |
| 81 | + type: import('vue').PropType<T[K]>; |
| 82 | + required: true; |
| 83 | + }; |
| 84 | +}; |
0 commit comments