Skip to main content Link Search Menu Expand Document (external link)

RequestResolver overview

Added in v1.0.0


Table of contents


combinators

dataLoader

Signature

export declare const dataLoader: any

Added in v1.0.0

persisted

Signature

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

Added in v1.0.0

model

PersistedRequest (interface)

Signature

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

Added in v1.0.0

PersistedRequest (namespace)

Added in v1.0.0

Any (type alias)

Signature

export type Any = PersistedRequest<any, any, any, any, any> | PersistedRequest<any, never, never, any, any>

Added in v1.0.0