Files
drop/server/arktype.ts
DecDuck 490afd0bb7 Fix GiantBomb metadata #61 (#62)
* fix: reviews error

* fix: lint
2025-06-01 15:39:10 +10:00

15 lines
297 B
TypeScript

import { configure } from "arktype/config";
export const throwingArktype = configure({
onFail: (errors) => errors.throw(),
actual: () => "",
});
// be sure to specify both the runtime and static configs
declare global {
interface ArkEnv {
onFail: typeof throwingArktype.onFail;
}
}