Module

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

Business logic with ease ☄️
Latest
interface Event
implements Unit<Payload>
import { type Event } from "https://dotland.deno.dev/x/effector@effector-vue%4023.1.0/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