UNPKG

@awcrotwell/motion

Version:

Motion allows you to build reactive, real-time frontend UI components in your Amber application using pure Crystal that are reusable, testable & encapsulated. For brevity, we will call them MotionComponents.

22 lines (21 loc) 945 B
import Subscription from './Subscription'; import Consumer from './Consumer'; import Imixin from './interfaces/mixin_interface'; import IChannel from './interfaces/channel_interface'; export default class Subscriptions { subscriptions: Array<Subscription>; consumer: Consumer; constructor(consumer: Consumer); create(channelName: IChannel, mixin: Imixin): Subscription; Private: any; add(subscription: Subscription): Subscription; remove(subscription: Subscription): Subscription; reject(identifier: Array<any>): Subscription[]; forget(subscription: Subscription): Subscription; findAll(identifier: any): Subscription[]; reload(): void[]; notifyAll(callbackName: any, ...args: any[]): any[][]; notify(subscription: Subscription, callbackName: any, ...args: any[]): any[]; sendCommand(subscription: Subscription, command: string): void; joinChannel(subscription: Subscription): void; }