mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-16 05:42:48 +00:00
* QueryOptions: added refetchIntervalInBackground, refetchOnWindowFocus, initialData * Removed extra space * Removed patch version number * Fixed initialData optional and of type TResult * checkedChildren and unCheckedChildren are optional
26 lines
817 B
TypeScript
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> {}
|