UNPKG

@iotize/ionic

Version:

Iotize specific building blocks on top of @ionic/angular.

11 lines (10 loc) 426 B
import { Observable } from 'rxjs'; export interface DashboardComponentEvent<DataType, EventIdType extends string = string> { streamId: EventIdType; data: DataType; component: Object; } export interface DashboardEventStreamInterface<T = unknown, EventIdType extends string = string> { events: Observable<DashboardComponentEvent<T>>; emit<T>(data: DashboardComponentEvent<T, EventIdType>): void; }