@types/react-broadcast
TypeScript icon, indicating that this package has built-in type declarations

0.6.5 • Public • Published

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

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

Credits

These definitions were written by Jaga Santagostino.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.6.1842ts2.8
0.6.1842ts2.9
0.6.1842ts3.0
0.6.1842ts3.1
0.6.1842ts3.2
0.6.1842ts3.3
0.6.1842ts3.4
0.6.1842ts3.5
0.6.5222ts5.8
0.6.5222ts5.7
0.6.5222latest
0.6.5222ts4.5
0.6.5222ts4.6
0.6.5222ts4.7
0.6.5222ts4.8
0.6.5222ts4.9
0.6.5222ts5.0
0.6.5222ts5.1
0.6.5222ts5.2
0.6.5222ts5.3
0.6.5222ts5.4
0.6.5222ts5.5
0.6.5222ts5.9
0.6.5222ts5.6
0.6.5222ts6.0
0.6.23ts3.6
0.6.23ts3.7
0.6.23ts3.8
0.6.23ts3.9
0.6.23ts4.0
0.6.23ts4.1
0.6.23ts4.2
0.6.23ts4.3
0.6.23ts4.4
0.6.03ts2.6
0.6.03ts2.7

Version History

VersionDownloads (Last 7 Days)Published
0.6.5222
0.6.44
0.6.33
0.6.23
0.6.1842
0.6.03

Package Sidebar

Install

npm i @types/react-broadcast

Weekly Downloads

1,077

Version

0.6.5

License

MIT

Unpacked Size

4.1 kB

Total Files

5

Last publish

Collaborators

  • types