Skip to main content
Module

x/ngrok/deps.ts>TypedEventTarget

Expose your localhost to the web. Ultra-simple deno wrapper for ngrok.
Latest
class TypedEventTarget
extends EventTarget
import { TypedEventTarget } from "https://deno.land/x/ngrok@4.0.1/deps.ts";

Type Parameters

T extends Events

Methods

addEventListener<K extends keyof T & string, V extends T[K]>(
type: K,
listener: TypedEventListenerOrEventListenerObject<K, V> | null,
options?: AddEventListenerOptions | boolean,
): void
dispatchEvent<K extends keyof T & string, V extends T[K]>(event: TypedCustomEvent<K, V>): boolean
removeEventListener<K extends keyof T & string, V extends T[K]>(
type: K,
callback: TypedEventListenerOrEventListenerObject<K, V> | null,
options?: EventListenerOptions | boolean,
): void