npm.io
1.5.4 • Published 2 years ago

@types/react-switch-case

Licence
MIT
Version
1.5.4
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0939 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Fernando Falci.