Nuclear Power Manager

    @types/rc-switch
    TypeScript icon, indicating that this package has built-in type declarations

    1.9.2 • Public • Published

    Installation

    npm install --save @types/rc-switch

    Summary

    This package contains type definitions for rc-switch (https://github.com/react-component/switch).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rc-switch.

    index.d.ts

    // Type definitions for rc-switch 1.9
    // Project: https://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 | undefined;
        checked?: boolean | undefined;
        checkedChildren?: React.ReactNode | undefined;
        className?: string | undefined;
        defaultChecked?: boolean | undefined;
        disabled?: boolean | undefined;
        loadingIcon?: React.ReactNode | undefined;
        onChange?: ((checked: boolean) => void) | undefined;
        onClick?: ((checked: boolean) => void) | undefined;
        prefixCls?: string | undefined;
        tabIndex?: number | undefined;
        unCheckedChildren?: React.ReactNode | undefined;
    }
    
    export default class Switch extends React.Component<Props> {}

    Additional Details

    • Last updated: Thu, 16 Dec 2021 22:32:05 GMT
    • Dependencies: @types/react
    • Global values: none

    Credits

    These definitions were written by Karol Majewski, and Matteo Frana.

    Keywords

    none

    Install

    npm i @types/rc-switch

    DownloadsWeekly Downloads

    3,116

    Version

    1.9.2

    License

    MIT

    Unpacked Size

    4.8 kB

    Total Files

    4

    Last publish

    Collaborators

    • types