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

x/ayonli_jsext/event.ts>createCloseEvent

A JavaScript extension package for building strong and modern applications.
Latest
function createCloseEvent
import { createCloseEvent } from "https://deno.land/x/ayonli_jsext@v0.9.72/event.ts";

Creates a CloseEvent instance based on the given options. If the CloseEvent constructor is not available, the generic Event constructor will be used instead, and the options will be attached to the event as its properties.

Parameters

type: "close"
optional
options: CloseEventInit

Parameters

type: string
optional
options: CloseEventInit