UNPKG

rivetkit

Version:

Lightweight libraries for building stateful actors on edge platforms

19 lines (16 loc) 646 B
import { Next } from 'hono'; import { ContentfulStatusCode } from 'hono/utils/http-status'; declare function assertUnreachable(x: never): never; interface DeconstructedError { __type: "ActorError"; statusCode: ContentfulStatusCode; public: boolean; group: string; code: string; message: string; metadata?: unknown; } declare function stringifyError(error: unknown): string; /** Generates a `Next` handler to pass to middleware in order to be able to call arbitrary middleware. */ declare function noopNext(): Next; export { type DeconstructedError as D, assertUnreachable as a, noopNext as n, stringifyError as s };