Skip to content

ask

ask<R>(): Reader<R, R>

Defined in: Core/Reader.ts:52

Returns the full environment as the result. The fundamental way to access the environment in a pipeline.

R

Reader<R, R>

pipe(
  Reader.ask<Config>(),
  Reader.map(config => config.baseUrl)
)(appConfig); // "https://api.example.com"