Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/capsid/src/decorators/index.ts>pub

💊 Declarative DOM programming library. Lightweight (1.79 kb).
Latest
variable pub
import { pub } from "https://deno.land/x/capsid@v1.8.2/src/decorators/index.ts";

Publishes the given event to the elements which has sub:${event} class. For example @pub('foo') publishes the foo event to the elements which have sub:foo class.

type

(event: string, targetSelector?: string) => unknown