(m: AnyMethod): booleanTrue when a wire member was built with effect (no payload schema) — including
unit run gates and value reads. Contrast isVoidCommand, which is only void commands.
Not Effect.isEffect (runtime value guard).
Source src/Hyperlink.ts:7902 lines
export const const isEffect: (m: AnyMethod) => booleanTrue when a wire member was built with
effect
(no payload schema) — including
unit run gates and value reads. Contrast
isVoidCommand
, which is only void commands.
Not
Effect.isEffect
(runtime value guard).
isEffect = (m: AnyMethod(parameter) m: {
kind: MethodKind;
payload: P;
success: Su;
error: E;
stream: Str;
annotations: Ann;
annotate: <A extends MethodAnnotations>(annotations: A) => Method<P, Su, E, Str, Ann & A, Client>;
pipe: { <A>(this: A): A; <A, B = never>(this: A, ab: (_: A) => B): B; <A, B = never, C = never>(this: A, ab: (_: A) => B, bc: (_: B) => C): C; <A, B = never, C = never, D = never>(this: A, ab: (_: A) => B, bc: (_: B) => C, cd: (_: C) => D): D; <…;
}
m: type AnyMethod = Method<
Schema.Struct.Fields | Schema.Top | undefined,
Schema.Top,
Schema.Top,
boolean,
MethodAnnotations,
never
>
Any
Method
, erased — the element type of a
Spec
.
AnyMethod): boolean =>
m: AnyMethod(parameter) m: {
kind: MethodKind;
payload: P;
success: Su;
error: E;
stream: Str;
annotations: Ann;
annotate: <A extends MethodAnnotations>(annotations: A) => Method<P, Su, E, Str, Ann & A, Client>;
pipe: { <A>(this: A): A; <A, B = never>(this: A, ab: (_: A) => B): B; <A, B = never, C = never>(this: A, ab: (_: A) => B, bc: (_: B) => C): C; <A, B = never, C = never, D = never>(this: A, ab: (_: A) => B, bc: (_: B) => C, cd: (_: C) => D): D; <…;
}
m.Method<Struct<Fields extends Struct.Fields>.Fields | Top | undefined, Top, Top, boolean, MethodAnnotations, never>.payload: Schema.Struct.Fields | Schema.Top | undefinedpayload === var undefinedundefined;