1.5.4 • Published 6 months ago

@types/react-switch-case v1.5.4

Weekly downloads
32
License
MIT
Repository
github
Last release
6 months ago

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.

1.5.4

6 months ago

1.5.3

7 months ago

1.5.2

8 months ago

1.5.1

3 years ago

1.5.0

4 years ago