mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-01 14:59:35 +08:00
1719748a29
* chore: eslint add consistent-type-imports * fix avatar * Update Item.tsx
21 lines
614 B
TypeScript
21 lines
614 B
TypeScript
import type * as React from 'react';
|
|
import type { CheckboxProps } from './Checkbox';
|
|
import InternalCheckbox from './Checkbox';
|
|
import Group from './Group';
|
|
|
|
export { CheckboxProps, CheckboxChangeEvent } from './Checkbox';
|
|
export { CheckboxGroupProps, CheckboxOptionType } from './Group';
|
|
|
|
interface CompoundedComponent
|
|
extends React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>> {
|
|
Group: typeof Group;
|
|
__ANT_CHECKBOX: boolean;
|
|
}
|
|
|
|
const Checkbox = InternalCheckbox as CompoundedComponent;
|
|
|
|
Checkbox.Group = Group;
|
|
Checkbox.__ANT_CHECKBOX = true;
|
|
|
|
export default Checkbox;
|