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
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: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/react
Credits
These definitions were written by Fernando Falci.