Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/subscription/mod.ts>Subscription

An event object that calls subscriptions each time the event is dispatched.
Latest
type alias Subscription
import { type Subscription } from "https://deno.land/x/subscription@2.0.1/mod.ts";

A listener (callback) type.

Type Parameters

optional
T extends unknown[] = []
definition: (...args: T) => unknown | Promise<unknown>