1.5.4 • Published 6 months ago
@types/react-switch-case v1.5.4
Installation
npm install --save @types/react-switch-case
Summary
This package contains type definitions for react-switch-case (https://github.com/AlexSergey/react-switch-case).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-switch-case.
index.d.ts
// Type definitions for react-switch-case 1.5
// Project: https://github.com/AlexSergey/react-switch-case
// Definitions by: Fernando Falci <https://github.com/Falci>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as React from 'react';
export interface SwitchProps {
children?: React.ReactNode;
condition: any;
}
interface CaseProps {
children?: React.ReactNode;
value: any;
}
declare class Switch extends React.Component<SwitchProps> {}
export class Case extends React.Component<CaseProps> {}
export class Default extends React.Component {}
export default Switch;
Additional Details
- Last updated: Thu, 07 Oct 2021 18:01:32 GMT
- Dependencies: @types/react
- Global values: none
Credits
These definitions were written by Fernando Falci.