SerializableProcedureList
Combinators
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>;
};withInitialState
Added in v1.0.0
Source
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
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>>;
}