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

x/effector/packages/effector/index.d.ts>Event

Business logic with ease ☄️
Latest
interface Event
implements Unit<Payload>
import { type Event } from "https://deno.land/x/effector@effector%4023.2.2/packages/effector/index.d.ts";

Event you can subscribe to. It represents a user action, a step in the application process, a command to execute, or an intention to make modifications, among other things.

Properties

kind: "event"
compositeName: CompositeName
sid: string | null
shortName: string

Methods

map<T>(fn: (payload: Payload) => T): EventAsReturnType<T>
filter<T extends Payload>(config: { fn(payload: Payload): payload is T; }): EventAsReturnType<T>
filter(config: { fn(payload: Payload): boolean; }): EventAsReturnType<Payload>
filterMap<T>(fn: (payload: Payload) => T | undefined): EventAsReturnType<T>
watch(watcher: (payload: Payload) => any): Subscription
subscribe(observer: Observer<Payload>): Subscription
deprecated
getType(): string