Skip to content

Instantly share code, notes, and snippets.

View jellekuipers's full-sized avatar

Jelle Kuipers jellekuipers

View GitHub Profile
import { Data } from 'effect';
import type { StandardSchemaV1 } from '@standard-schema/spec';
import { type ResultAsync, errAsync, okAsync } from 'neverthrow';
export class ParseError extends Data.TaggedError('ParseError')<{
response: Response;
issues: ReadonlyArray<StandardSchemaV1.Issue>;
}> {}
export class UnexpectedError extends Data.TaggedError('UnexpectedError')<{