1.9.5 • Published 6 months ago

@types/rc-switch v1.9.5

Weekly downloads
8,151
License
MIT
Repository
github
Last release
6 months ago

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.

1.9.5

6 months ago

1.9.4

7 months ago

1.9.3

8 months ago

1.9.2

2 years ago

1.9.1

3 years ago

1.9.0

4 years ago

1.8.0

5 years ago