From 11f5efcc669f7afafb27b37ca9b2436b5471a532 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Tue, 1 Jan 2019 12:39:29 +0800 Subject: [PATCH] fix: ts types error --- types/ant-design-vue.d.ts | 4 ++-- types/form/form.d.ts | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/types/ant-design-vue.d.ts b/types/ant-design-vue.d.ts index 205a2e649..19b6ae15d 100644 --- a/types/ant-design-vue.d.ts +++ b/types/ant-design-vue.d.ts @@ -22,6 +22,7 @@ import { Checkbox } from "./checkbox/checkbox"; import { Col } from "./grid/col"; import { DatePicker } from "./date-picker/date-picker"; import { Divider } from "./divider"; +import { Drawer } from "./drawer"; import { Dropdown } from "./dropdown/dropdown"; import { Form } from "./form/form"; import { Icon } from "./icon"; @@ -42,6 +43,7 @@ import { Radio } from "./radio/radio"; import { Rate } from "./rate"; import { Row } from "./grid/row"; import { Select } from "./select/select"; +import { Skeleton } from "./skeleton"; import { Slider } from "./slider"; import { Spin } from "./spin"; import { Steps } from "./steps/steps"; @@ -56,8 +58,6 @@ import { TimePicker } from "./time-picker"; import { Timeline } from "./timeline/timeline"; import { Tooltip } from "./tootip/tooltip"; import { Upload } from "./upload"; -import { Drawer } from "./drawer"; -import { Skeleton } from "./skeleton"; /** * Install all ant-design-vue components into Vue. diff --git a/types/form/form.d.ts b/types/form/form.d.ts index 87f56178e..522299521 100644 --- a/types/form/form.d.ts +++ b/types/form/form.d.ts @@ -184,31 +184,31 @@ export interface WrappedFormUtils { * Two-way binding for form, single file template can be bound using the directive v-decorator. * @type Function */ - getFieldDecorator(id: string, options: FieldDecoratorOptions); + getFieldDecorator(id: string, options: FieldDecoratorOptions): any; /** * Get the error of a field. * @type Function (Function(name)) */ - getFieldError(name: string); + getFieldError(name: string): object[]; /** * Get the specified fields' error. If you don't specify a parameter, you will get all fields' error. * @type Function (Function([names: string[])) */ - getFieldsError(names: string[]); + getFieldsError(names: string[]): object; /** * Get the specified fields' values. If you don't specify a parameter, you will get all fields' values. * @type Funtion (Function([fieldNames: string[])) */ - getFieldsValue(fieldNames: string[]); + getFieldsValue(fieldNames: string[]): object; /** * Get the value of a field. * @type Function (Function(fieldName: string)) */ - getFieldValue(fieldName: string); + getFieldValue(fieldName: string): any; /** * Check whether any of fields is touched by getFieldDecorator's options.trigger event