Skip to content

Commit fa110de

Browse files
committed
fix: ts types error
1 parent 0e499ee commit fa110de

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

types/ant-design-vue.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { Checkbox } from "./checkbox/checkbox";
2222
import { Col } from "./grid/col";
2323
import { DatePicker } from "./date-picker/date-picker";
2424
import { Divider } from "./divider";
25+
import { Drawer } from "./drawer";
2526
import { Dropdown } from "./dropdown/dropdown";
2627
import { Form } from "./form/form";
2728
import { Icon } from "./icon";
@@ -42,6 +43,7 @@ import { Radio } from "./radio/radio";
4243
import { Rate } from "./rate";
4344
import { Row } from "./grid/row";
4445
import { Select } from "./select/select";
46+
import { Skeleton } from "./skeleton";
4547
import { Slider } from "./slider";
4648
import { Spin } from "./spin";
4749
import { Steps } from "./steps/steps";
@@ -56,8 +58,6 @@ import { TimePicker } from "./time-picker";
5658
import { Timeline } from "./timeline/timeline";
5759
import { Tooltip } from "./tootip/tooltip";
5860
import { Upload } from "./upload";
59-
import { Drawer } from "./drawer";
60-
import { Skeleton } from "./skeleton";
6161

6262
/**
6363
* Install all ant-design-vue components into Vue.

types/form/form.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,31 +184,31 @@ export interface WrappedFormUtils {
184184
* Two-way binding for form, single file template can be bound using the directive v-decorator.
185185
* @type Function
186186
*/
187-
getFieldDecorator(id: string, options: FieldDecoratorOptions);
187+
getFieldDecorator(id: string, options: FieldDecoratorOptions): any;
188188

189189
/**
190190
* Get the error of a field.
191191
* @type Function (Function(name))
192192
*/
193-
getFieldError(name: string);
193+
getFieldError(name: string): any;
194194

195195
/**
196196
* Get the specified fields' error. If you don't specify a parameter, you will get all fields' error.
197197
* @type Function (Function([names: string[]))
198198
*/
199-
getFieldsError(names: string[]);
199+
getFieldsError(names: string[]): any;
200200

201201
/**
202202
* Get the specified fields' values. If you don't specify a parameter, you will get all fields' values.
203203
* @type Funtion (Function([fieldNames: string[]))
204204
*/
205-
getFieldsValue(fieldNames: string[]);
205+
getFieldsValue(fieldNames: string[]): any;
206206

207207
/**
208208
* Get the value of a field.
209209
* @type Function (Function(fieldName: string))
210210
*/
211-
getFieldValue(fieldName: string);
211+
getFieldValue(fieldName: string): any;
212212

213213
/**
214214
* Check whether any of fields is touched by getFieldDecorator's options.trigger event

0 commit comments

Comments
 (0)