Skip to content

Commit 1194c55

Browse files
committed
fix: Add explicit types to reexported types
1 parent 3ee8db9 commit 1194c55

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

src/Checkbox/index.tsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
11
import { Checkbox as AntdCheckbox } from 'antd';
2-
import { CheckboxProps } from 'antd/es/checkbox/Checkbox';
3-
import { CheckboxGroupProps } from 'antd/es/checkbox/Group';
4-
import * as React from 'react';
52

6-
interface CheckboxComponentType
7-
extends React.ForwardRefExoticComponent<
8-
CheckboxProps & React.RefAttributes<HTMLInputElement>
9-
> {
10-
Group: React.NamedExoticComponent<CheckboxGroupProps>;
11-
__ANT_CHECKBOX: boolean;
12-
}
13-
14-
export const Checkbox: CheckboxComponentType = AntdCheckbox;
3+
export const Checkbox: typeof AntdCheckbox = AntdCheckbox;

src/Input/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { Input as AntdInput } from 'antd';
22

3-
export const Input = AntdInput;
3+
export const Input: typeof AntdInput = AntdInput;

src/Radio/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { Radio as AntdRadio } from 'antd';
22

3-
export const Radio = AntdRadio;
3+
export const Radio: typeof AntdRadio = AntdRadio;

0 commit comments

Comments
 (0)