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

x/capsid/mod.ts>emits

💊 Declarative DOM programming library. Lightweight (1.79 kb).
Latest
variable emits
Re-export
import { emits } from "https://deno.land/x/capsid@v1.8.2/mod.ts";

@emits(event) decorator

This decorator adds the event emission at the end of the method. If the method returns the promise, then the event is emitted when it is resolved.

type

(event: string) => unknown