forma-embedded-view-sdk
Version:
The Forma Embedded View SDK is a JavaScript library for creating custom extensions in Autodesk Forma Site Design (previously Spacemaker).
12 lines (11 loc) • 384 B
TypeScript
/**
* A pub/sub implementation that queues events until a subscriber is added.
* There is no event name/type, so all events are of the same type.
*
* The first subscriber will receive any previously queued events.
*/
export declare class QueuedPubSub<EventData> {
#private;
subscribe(handler: (data: EventData) => void): () => void;
publish(data: EventData): void;
}