hele-hbus
Version:
HEle bindings for HBus.
20 lines (19 loc) • 670 B
TypeScript
import { Component } from "hele";
import * as HBus from "hbus";
export declare const defaultBusName = "hele-hbus-bus";
export declare type BusNameIndex = string | symbol | number;
export interface BusProps<S = any, T = any, P = any> {
processor: HBus.Processor<S, HBus.Action<T, P>>;
defaultState?: S;
name?: BusNameIndex;
children: any;
}
export declare class Bus<S = any, T = any, P = any> extends Component<BusProps<S, T, P>> {
constructor(props: BusProps<S, T, P>, context: any);
static defaultProps: {
name: string;
};
readonly bus: HBus.Bus<S, T, P>;
readonly name: BusNameIndex;
render(): any;
}