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

1.5.4 • Public • Published

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.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @types/react-switch-case

    Weekly Downloads

    72

    Version

    1.5.4

    License

    MIT

    Unpacked Size

    3.45 kB

    Total Files

    5

    Last publish

    Collaborators

    • types