EffectMatchbox
Defined in: extras/effects.ts:12
Type representing an effect matchbox member. Used to group and handle effect-related logic in matchbox factories.
Methods
Section titled “Methods”match()
Section titled “match()”Call Signature
Section titled “Call Signature”match<
A>(cases:MatchCases<any,A,true>,exhaustive?:boolean):A
Defined in: matchbox-factory-types.ts:122
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
A |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
cases | MatchCases<any, A, true> |
exhaustive? | boolean |
Returns
Section titled “Returns”A
Call Signature
Section titled “Call Signature”match<
A>(cases:MatchCases<any,A,false>,exhaustive:boolean):A
Defined in: matchbox-factory-types.ts:123
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
A |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
cases | MatchCases<any, A, false> |
exhaustive | boolean |
Returns
Section titled “Returns”A
Properties
Section titled “Properties”| Property | Type |
|---|---|
effect | any |
data | any |
is | <T>(key: T) => this is MatchboxMember<T, any, "effect"> | <T>(key: T) => this is MatchboxMember<T, any, "effect"> |
as | <T>(key: T) => MatchboxMember<T, any, "effect"> |