// Type definitions for react-broadcast 0.6 // Project: https://github.com/ReactTraining/react-broadcast // Definitions by: Jaga Santagostino // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 import * as React from 'react'; export namespace Subscriber { interface DefaultProps { quiet: boolean; } interface Props extends Partial { channel: string; children?: ((state: T) => React.ReactNode); } } export namespace Broadcast { interface DefaultProps { compareValues: (prevValue: T, nextValue: T) => boolean; } interface Props extends Partial> { channel: string; children: React.ReactNode; value: T; } } export class Broadcast extends React.Component, any> { } export class Subscriber extends React.Component, any> { }