Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/types/index.ts>dom.ExtensionScriptApis

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.ExtensionScriptApis
import { type dom } from "https://deno.land/x/evt@v2.4.18/lib/types/index.ts";
const { ExtensionScriptApis } = dom;

Methods

extensionIdToShortId(extensionId: string): number
fireExtensionApiTelemetry(
functionName: string,
isSucceeded: boolean,
isSupported: boolean,
errorString: string,
): void
genericFunction(
routerAddress: any,
parameters?: string,
callbackId?: number,
): void
genericSynchronousFunction(functionId: number, parameters?: string): string
genericWebRuntimeCallout(
to: any,
from: any,
payload: string,
): void
getExtensionId(): string
registerGenericFunctionCallbackHandler(callbackHandler: Function): void
registerGenericPersistentCallbackHandler(callbackHandler: Function): void
registerWebRuntimeCallbackHandler(handler: Function): any