0.6.5 • Published 6 months ago
@types/react-broadcast v0.6.5
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
// Type definitions for react-broadcast 0.6
// Project: https://github.com/ReactTraining/react-broadcast
// Definitions by: Jaga Santagostino <https://github.com/kandros>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
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: Thu, 08 Jul 2021 20:20:29 GMT
- Dependencies: @types/react
- Global values: none
Credits
These definitions were written by Jaga Santagostino.