x/replicache/to-error.ts
1234567export function toError(e: unknown): Error { if (e instanceof Error) { return e; } return new Error(String(e));}