Skip to content

Commit c4fd2f7

Browse files
committed
fix tsd missing
close #196
1 parent d5b152d commit c4fd2f7

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

Diff for: .eslintignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
.eslintrc.js
1+
.eslintrc.js
2+
src/index.d.ts

Diff for: src/index.d.ts

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import * as React from 'react';
2+
3+
export interface Props {
4+
prefixCls?: string;
5+
className?: string;
6+
style?: React.CSSProperties;
7+
name?: string;
8+
id?: string;
9+
type?: string;
10+
defaultChecked?: number | boolean;
11+
checked?: number | boolean;
12+
disabled?: boolean;
13+
onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
14+
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
15+
onChange?: (e: Event) => void;
16+
onClick?: (e: React.MouseEvent<HTMLInputElement>) => void;
17+
tabIndex?: string | number;
18+
readOnly?: boolean;
19+
required?: boolean;
20+
autoFocus?: boolean;
21+
value?: any;
22+
}
23+
24+
export default class CheckBox extends React.Component<Props> {}

0 commit comments

Comments
 (0)