@tef-novum/webview-bridge
Version:
JavaScript library to access to native functionality. Requires a webview with a postMessage bridge.
10 lines (9 loc) • 374 B
TypeScript
/**
* Message ID generator. Ids should be unique.
*
* the "web" prefix indicates that the message was originated from the web side.
*
* Using a timestamp as webviewId (assuming two webviews are not opened in the same millisecond),
* but if that ever happens, the last part is a random number to avoid collisions.
*/
export declare const getId: () => string;