@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.
17 lines (16 loc) • 487 B
TypeScript
import Client from './Client';
import Subscription from './Subscription';
export default class Component {
client: Client;
element: HTMLElement;
_subscription: Subscription;
constructor(client: Client, element: HTMLElement);
processMotion(name: string, event?: null): void;
shutdown(): void;
_beforeConnect(): void;
_connect(): void;
_connectFailed(): void;
_disconnect(): void;
_render(newState: string): void;
generateTopic(): string;
}