Skip to content

Commit 10ca7ae

Browse files
authored
chore: update type divider (#2687)
1 parent 0587798 commit 10ca7ae

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

types/divider.d.ts

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,26 @@
55
import { AntdComponent } from './component';
66

77
export declare class Divider extends AntdComponent {
8-
/**
9-
* whether line is dashed
10-
* @default false
11-
* @type boolean
12-
*/
13-
dashed: boolean;
8+
$props: {
9+
/**
10+
* whether line is dashed
11+
* @default false
12+
* @type boolean
13+
*/
14+
dashed?: boolean;
1415

15-
/**
16-
* position of title inside divider
17-
* @default 'center'
18-
* @type string
19-
*/
20-
orientation: 'left' | 'right' | 'center';
16+
/**
17+
* position of title inside divider
18+
* @default 'center'
19+
* @type string
20+
*/
21+
orientation?: 'left' | 'right' | 'center';
2122

22-
/**
23-
* direction type of divider
24-
* @default 'horizontal'
25-
* @type string
26-
*/
27-
type: 'horizontal' | 'vertical';
23+
/**
24+
* direction type of divider
25+
* @default 'horizontal'
26+
* @type string
27+
*/
28+
type?: 'horizontal' | 'vertical';
29+
};
2830
}

0 commit comments

Comments
 (0)