Skip to content
Effect Days 2026 Get your ticket

SerializableProcedureList

5 exports Added in v1.0.0 Source

Combinators

add

Added in v1.0.0 Source

Signature

declare const add: {
<Req extends All, I, ReqR, State, Public extends All, Private extends All, R2>(schema: any, handler: Handler<Req, NoInfer<State>, NoInfer<Public> | NoInfer<Private>, R2>): <R>(self: SerializableProcedureList<State, Public, Private, R>) => SerializableProcedureList<State, Req | Public, Private, any>;
<State, Public extends All, Private extends All, R, Req extends All, I, ReqR, R2>(self: SerializableProcedureList<State, Public, Private, R>, schema: any, handler: Handler<Req, NoInfer<State>, NoInfer<Public> | NoInfer<Private>, R2>): SerializableProcedureList<State, Public | Req, Private, any>;
}

addPrivate

Added in v1.0.0 Source

Signature

declare const addPrivate: {
<Req extends All, I, ReqR, State, Public extends All, Private extends All, R2>(schema: any, handler: Handler<Req, NoInfer<State>, NoInfer<Public> | NoInfer<Private>, R2>): <R>(self: SerializableProcedureList<State, Public, Private, R>) => SerializableProcedureList<State, Public, Req | Private, any>;
<State, Public extends All, Private extends All, R, Req extends All, I, ReqR, R2>(self: SerializableProcedureList<State, Public, Private, R>, schema: any, handler: Handler<Req, NoInfer<State>, NoInfer<Public> | NoInfer<Private>, R2>): SerializableProcedureList<State, Public, Private | Req, any>;
}

Signature

declare const withInitialState: {
<State>(initialState: NoInfer<State>): <Public extends All, Private extends All, R>(self: SerializableProcedureList<State, Public, Private, R>) => SerializableProcedureList<State, Public, Private, R>;
<State, Public extends All, Private extends All, R>(self: SerializableProcedureList<State, Public, Private, R>, initialState: NoInfer<State>): SerializableProcedureList<State, Public, Private, R>;
}

Constructors

make

Added in v1.0.0 Source

Signature

declare const make: <State>(initialState: State, options?: {
readonly identifier?: string;
}) => SerializableProcedureList<State, never, never, never>

Models

SerializableProcedureList interface

Added in v1.0.0 Source

Signature

interface SerializableProcedureList<State, Public extends Schema.TaggedRequest.All, Private extends Schema.TaggedRequest.All, R> extends Effect<SerializableProcedureList<State, Public, Private, R>> {
readonly [TypeId]: typeof TypeId;
readonly identifier: string;
readonly initialState: State;
readonly private: readonly Array<SerializableProcedure<Private, State, R>>;
readonly public: readonly Array<SerializableProcedure<Public, State, R>>;
}