Browse documentation

Pulse

Type. Named pulse-store operation.

Table of contents

Category

Type

Type import

ts
import type { Pulse } from "valyrian.js/pulses";

Public signature

ts
type Pulse<StateType, TReturn = unknown> = (state: StateType, ...args: any[]) => TReturn | Promise<TReturn>;

Type usage

Pulse describes a named store operation. TReturn defaults to unknown and may be returned directly or through a promise.