Skip to content

Commit

Permalink
fix: add typings for Empty component
Browse files Browse the repository at this point in the history
  • Loading branch information
Svreber committed Nov 19, 2019
1 parent d52ed02 commit e2d0500
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions types/ant-design-vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import { DatePicker } from './date-picker/date-picker';
import { Divider } from './divider';
import { Drawer } from './drawer';
import { Dropdown } from './dropdown/dropdown';
import { Empty } from './empty';
import { Form } from './form/form';
import { Icon } from './icon';
import { Input } from './input/input';
Expand Down Expand Up @@ -93,6 +94,7 @@ export {
DatePicker,
Divider,
Dropdown,
Empty,
Form,
Icon,
Input,
Expand Down
22 changes: 22 additions & 0 deletions types/empty.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Project: https://github.com/vueComponent/ant-design-vue
// Definitions by: Svreber <https://github.com/Svreber>
// Definitions: https://github.com/vueComponent/ant-design-vue/types

import { AntdComponent } from './component';
import { VNode } from 'vue';

export declare class Empty extends AntdComponent {
/**
* customize description
* @type string | VNode
*/
description: string | VNode;

/**
* customize image. Will tread as image url when string provided
* @default false
* @type string | VNode
*/
image: string | VNode;

}

0 comments on commit e2d0500

Please sign in to comment.