An educational pure functional programming library in TypeScript
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix http-client.ts JSDoc syntax

+2 -2
+2 -2
examples/http-client.ts
··· 88 88 // TYPED ERROR HIERARCHY - Compiler forces you to handle all cases 89 89 // ============================================================================= 90 90 91 - /** 91 + /* 92 92 * Discriminated union of all possible HTTP errors 93 93 * 94 94 * Vanilla problem: 95 - * try { await fetch(url) } catch (e) { /* what is e? unknown! */ } 95 + * try { await fetch(url) } catch (e) { // what is e? unknown! } 96 96 * 97 97 * Purus solution: 98 98 * The type signature `Eff<Response, HttpError, Env>` makes it clear