# @types/react-broadcast

> TypeScript definitions for react-broadcast

Latest version **0.6.5** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

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

## 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.6.5 |
| Published | 2023-11-07 |
| First published | 2017-12-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51421 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 0.6.5 (latest) — 2023-11-07
- 0.6.2 (ts3.6) — 2021-07-08
- 0.6.1 (ts2.8) — 2018-08-04
- 0.6.0 (ts2.6) — 2017-12-06
- 0.6.4 — 2023-10-18
- 0.6.3 — 2023-09-27

## README

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

export namespace Subscriber {
    interface DefaultProps {
        quiet: boolean;
    }
    interface Props<T> extends Partial<DefaultProps> {
        channel: string;
        children?: ((state: T) => React.ReactNode) | undefined;
    }
}

export namespace Broadcast {
    interface DefaultProps<T> {
        compareValues: (prevValue: T, nextValue: T) => boolean;
    }
    interface Props<T> extends Partial<DefaultProps<T>> {
        channel: string;
        children: React.ReactNode;
        value: T;
    }
}

export class Broadcast<T> extends React.Component<Broadcast.Props<T>, any> {}
export class Subscriber<T> extends React.Component<Subscriber.Props<T>, any> {}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [Jaga Santagostino](https://github.com/kandros).

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