Skip to content
Myr

fetch.ts

This file

Path

packages/artifacts/src/fetch.ts

14 lines · 387 bytes · TypeScript

Last changed by

Merge build/comments-packages-rest into mainoscabrielbefore adoption38cd503

History of this file

Take it

The walk stopped after 200 commits: lines older than 678c8b8 point at it.

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 1–14why, one step back
1import { Context, Schema } from "effect";
2import type { Effect } from "effect";34export class FetchFailed extends Schema.TaggedError<FetchFailed>()(5 "FetchFailed",6 { reason: Schema.String, url: Schema.String }7) {}89export class Fetch extends Context.Service<10 Fetch,11 {12 readonly fetch: (request: Request) => Effect.Effect<Response, FetchFailed>;13 }14>()("artifacts/Fetch") {}