@rivetkit/core
Version:
18 lines (15 loc) • 627 B
TypeScript
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;
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 };