This is a mirror from the GitHub repo. github.com/STBoyden/game-site
at main 22 lines 613 B view raw
1import type { SteamFunctions, SteamInterface } from "../types"; 2import { Data } from "effect"; 3 4export class InterfaceFetchError< 5 Interface extends SteamInterface, 6 Fn extends keyof SteamFunctions<Interface> 7> extends Data.TaggedClass("InterfaceFetchError")<{ 8 interface: Interface; 9 function: Fn; 10 endpoint: string; 11 error: unknown; 12}> {} 13 14export class InterfaceJSONDecodeError< 15 Interface extends SteamInterface, 16 Fn extends keyof SteamFunctions<Interface> 17> extends Data.TaggedClass("InterfaceJSONDecodeError")<{ 18 interface: Interface; 19 function: Fn; 20 endpoint: string; 21 error: TypeError | SyntaxError; 22}> {}