DefinitelyTyped/types/rc-switch/index.d.ts
Matteo Frana 8394dae20e checkedChildren and unCheckedChildren are optional (#41274)
* QueryOptions: added refetchIntervalInBackground, refetchOnWindowFocus, initialData

* Removed extra space

* Removed patch version number

* Fixed initialData optional and of type TResult

* checkedChildren and unCheckedChildren are optional
2019-12-31 15:33:37 -08:00

26 lines
817 B
TypeScript

// Type definitions for rc-switch 1.9
// Project: http://github.com/react-component/switch
// Definitions by: Karol Majewski <https://github.com/karol-majewski>
// Matteo Frana <https://github.com/matteofrana>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from 'react';
export interface Props {
autoFocus?: boolean;
checked?: boolean;
checkedChildren?: React.ReactNode;
className?: string;
defaultChecked?: boolean;
disabled?: boolean;
loadingIcon?: React.ReactNode;
onChange?: (checked: boolean) => void;
onClick?: (checked: boolean) => void;
prefixCls?: string;
tabIndex?: number;
unCheckedChildren?: React.ReactNode;
}
export default class Switch extends React.Component<Props> {}