# @types/react-is-deprecated

> TypeScript definitions for react-is-deprecated

Latest version **0.1.14** (published 2024-03-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-is-deprecated
pnpm add @types/react-is-deprecated
yarn add @types/react-is-deprecated
bun add @types/react-is-deprecated
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.14 |
| Published | 2024-03-22 |
| First published | 2016-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51438 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-is-deprecated
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-is-deprecated
- npm.io page: https://npm.io/package/@types/react-is-deprecated

## Dependencies (1)

- [@types/prop-types](https://npm.io/package/@types/prop-types.md) *

## Recent versions

- 0.1.14 (latest) — 2024-03-22
- 0.1.13 (ts4.5) — 2023-11-21
- 0.1.9 (ts2.8) — 2018-07-24
- 0.1.8 (ts2.6) — 2018-02-12
- 0.1.7 (ts2.3) — 2017-06-23
- 0.1.6 (ts2.1) — 2017-01-23
- 0.1.5 (ts2.0) — 2016-11-21
- 0.1.12 — 2023-11-07
- 0.1.11 — 2023-10-18
- 0.1.10 — 2023-09-27
- 0.1.4 — 2016-09-19
- 0.1.3 — 2016-08-25
- 0.1.2 — 2016-08-19
- 0.1.1 — 2016-08-02

## README

# Installation
> `npm install --save @types/react-is-deprecated`

# Summary
This package contains type definitions for react-is-deprecated (https://github.com/Aweary/react-is-deprecated).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-is-deprecated.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-is-deprecated/index.d.ts)
````ts
declare module "react-is-deprecated" {
    import type * as PropTypes from "prop-types";

    interface PropTypesValidators {
        any: typeof PropTypes.any;
        array: typeof PropTypes.array;
        bool: typeof PropTypes.bool;
        func: typeof PropTypes.func;
        number: typeof PropTypes.number;
        object: typeof PropTypes.object;
        string: typeof PropTypes.string;
        node: typeof PropTypes.node;
        element: typeof PropTypes.element;
        instanceOf: typeof PropTypes.instanceOf;
        oneOf: typeof PropTypes.oneOf;
        oneOfType: typeof PropTypes.oneOfType;
        arrayOf: typeof PropTypes.arrayOf;
        objectOf: typeof PropTypes.objectOf;
        shape: typeof PropTypes.shape;
        exact: typeof PropTypes.exact;
    }

    export function deprecate<T>(validator: PropTypes.Validator<T>, message: string): PropTypes.Validator<T>;

    interface Deprecatable<T> {
        isDeprecated: (message: string) => PropTypes.Validator<T>;
    }

    // Unfortunately this copy-paste must happen -- I can't just take PropTypes and programmatically
    // define a version that intersects in the Deprecatable interface into the keys.
    interface DeprecatablePropTypes {
        any: PropTypes.Requireable<any> & Deprecatable<any>;
        array: PropTypes.Requireable<any> & Deprecatable<any>;
        bool: PropTypes.Requireable<any> & Deprecatable<any>;
        func: PropTypes.Requireable<any> & Deprecatable<any>;
        number: PropTypes.Requireable<any> & Deprecatable<any>;
        object: PropTypes.Requireable<any> & Deprecatable<any>;
        string: PropTypes.Requireable<any> & Deprecatable<any>;
        node: PropTypes.Requireable<any> & Deprecatable<any>;
        element: PropTypes.Requireable<any> & Deprecatable<any>;
        instanceOf(expectedClass: {}): PropTypes.Requireable<any> & Deprecatable<any>;
        oneOf(types: any[]): PropTypes.Requireable<any> & Deprecatable<any>;
        oneOfType(types: Array<PropTypes.Validator<any>>): PropTypes.Requireable<any> & Deprecatable<any>;
        arrayOf(type: PropTypes.Validator<any>): PropTypes.Requireable<any> & Deprecatable<any>;
        objectOf(type: PropTypes.Validator<any>): PropTypes.Requireable<any> & Deprecatable<any>;
        shape(type: PropTypes.ValidationMap<any>): PropTypes.Requireable<any> & Deprecatable<any>;
    }

    export function addIsDeprecated(propTypes: PropTypesValidators): DeprecatablePropTypes;
}

````

### Additional Details
 * Last updated: Fri, 22 Mar 2024 20:06:54 GMT
 * Dependencies: [@types/prop-types](https://npmjs.com/package/@types/prop-types)

# Credits
These definitions were written by [Sean Kelley](https://github.com/seansfkelley).

---
_Source: https://npm.io/package/@types/react-is-deprecated · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
