# @types/react-mixin

> TypeScript definitions for react-mixin

Latest version **2.0.37** (published 2024-01-08) · MIT license · 0 weekly downloads

## Install

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

## 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.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.37 |
| Published | 2024-01-08 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51442 |
| Maintainers | types |

## Links

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

## Dependencies (2)

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

## Recent versions

- 2.0.37 (latest) — 2024-01-08
- 2.0.36 (ts4.5) — 2023-11-22
- 2.0.32 (ts2.8) — 2018-08-06
- 2.0.31 (ts2.6) — 2018-02-12
- 2.0.30 (ts2.3) — 2017-06-23
- 2.0.29 (ts2.1) — 2017-01-23
- 2.0.28 (ts2.0) — 2016-09-19
- 2.0.35 — 2023-11-07
- 2.0.34 — 2023-10-18
- 2.0.33 — 2023-09-27
- 2.0.27 — 2016-07-14
- 2.0.26-alpha — 2016-07-08
- 2.0.25-alpha — 2016-07-04
- 2.0.24-alpha — 2016-07-02
- 2.0.23-alpha — 2016-07-01
- … 5 more at https://npm.io/package/@types/react-mixin/versions

## README

# Installation
> `npm install --save @types/react-mixin`

# Summary
This package contains type definitions for react-mixin (https://github.com/brigand/react-mixin).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-mixin.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-mixin/index.d.ts)
````ts
/// <reference types="react" />

import { Mixin } from "create-react-class";
import * as React from "react";

declare namespace reactMixin {
    export interface ClassDecorator {
        // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
        <TFunction extends Function>(target: TFunction): TFunction | void;
    }

    interface ReactMixin {
        decorate(mixin: Mixin<any, any>): ClassDecorator;
        onClass<S>(clazz: any, mixin: Mixin<any, any>): React.ComponentClass<S>;
        <S>(clazz: any, mixin: Mixin<any, any>): React.ComponentClass<S>;
    }
}

declare var reactMixin: reactMixin.ReactMixin;

export = reactMixin;

````

### Additional Details
 * Last updated: Mon, 08 Jan 2024 20:35:39 GMT
 * Dependencies: [@types/create-react-class](https://npmjs.com/package/@types/create-react-class), [@types/react](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [Qubo](https://github.com/tkqubo).

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