UNPKG

rx-postmessenger

Version:

Minimal RxJS adapter for the window.postMessage API for request-response streams and notification streams across frame windows.

9 lines (8 loc) 323 B
import type { IMessageIDGenerator } from './types'; export declare class MessageIDGenerator implements IMessageIDGenerator { protected readonly gen: Iterator<string>; protected readonly usedIDValues: string[]; constructor(gen?: Iterator<string>); generateID(): string; invalidateID(id: string): void; }