Module

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

Business logic with ease ☄️
Latest
function createEffect
import { createEffect } from "https://dotland.deno.dev/x/effector@effector-vue%4023.1.0/packages/effector/index.d.ts";

Creates an effect

Type Parameters

FN extends Function

Parameters

handler: FN

function to handle effect calls

Returns

EffectByHandler<FN, Error>

Creates an effect

Type Parameters

Params
Done
optional
Fail = Error

Parameters

handler: (params: Params) => Done | Promise<Done>

function to handle effect calls

Creates an effect

Type Parameters

FN extends Function
Fail

Parameters

handler: FN

function to handle effect calls

Returns

EffectByHandler<FN, Fail>

Creates an effect

Type Parameters

FN extends Function

Parameters

name: string
config: { handler: FN; sid?: string; domain?: Domain; }

Returns

EffectByHandler<FN, Error>

Creates an effect

Type Parameters

Params
Done
optional
Fail = Error

Parameters

optional
effectName: string
optional
config: { handler?: (params: Params) => Promise<Done> | Done; sid?: string; domain?: Domain; }

Creates an effect

Type Parameters

FN extends Function

Parameters

config: { name?: string; handler: FN; sid?: string; domain?: Domain; }

Returns

EffectByHandler<FN, Error>

Creates an effect

Type Parameters

Params
Done
optional
Fail = Error

Parameters

config: { name?: string; handler?: (params: Params) => Promise<Done> | Done; sid?: string; domain?: Domain; }