Skip to content
Effect Days 2026 Get your ticket

RequestResolver

4 exports Added in v1.0.0 Source

Combinators

dataLoader

Added in v1.0.0 Source

Signature

declare const dataLoader: (options: {
readonly maxBatchSize?: number;
readonly window: DurationInput;
}) => <A extends Request<any, any, never>>(self: any) => Effect<any, never, Scope> & <A extends Request<any, any, never>>(self: any, options: {
readonly maxBatchSize?: number;
readonly window: DurationInput;
}) => Effect<any, never, Scope>

persisted

Added in v1.0.0 Source

Signature

declare const persisted: {
<Req extends Any>(options: {
readonly storeId: string;
readonly timeToLive: (...args: Persistence.ResultPersistence.TimeToLiveArgs<Req>) => Duration.DurationInput;
}): (self: any) => Effect<any, never, Scope | ResultPersistence>;
<Req extends Any>(self: any, options: {
readonly storeId: string;
readonly timeToLive: (...args: Persistence.ResultPersistence.TimeToLiveArgs<Req>) => Duration.DurationInput;
}): Effect<any, never, Scope | ResultPersistence>;
}

Model

PersistedRequest interface

Added in v1.0.0 Source

Signature

interface PersistedRequest<R, IE, E, IA, A> extends Request<A, E>, WithResult<A, IA, E, IE, R> {}