mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 09:39:10 +08:00
ae62ef7087
* fix(types): external module type error (CompoundedComponent) * feat(types): export CountdownProps
23 lines
627 B
TypeScript
23 lines
627 B
TypeScript
import type * as React from 'react';
|
|
import type { CheckboxProps } from './Checkbox';
|
|
import InternalCheckbox from './Checkbox';
|
|
import Group from './Group';
|
|
|
|
export { CheckboxChangeEvent, CheckboxProps } from './Checkbox';
|
|
export { CheckboxGroupProps, CheckboxOptionType } from './Group';
|
|
|
|
type CompoundedComponent = React.ForwardRefExoticComponent<
|
|
CheckboxProps & React.RefAttributes<HTMLInputElement>
|
|
> & {
|
|
Group: typeof Group;
|
|
/** @internal */
|
|
__ANT_CHECKBOX: boolean;
|
|
};
|
|
|
|
const Checkbox = InternalCheckbox as CompoundedComponent;
|
|
|
|
Checkbox.Group = Group;
|
|
Checkbox.__ANT_CHECKBOX = true;
|
|
|
|
export default Checkbox;
|