mirror of
https://github.com/BillyOutlast/drop.git
synced 2026-02-04 00:31:17 +01:00
15 lines
296 B
TypeScript
15 lines
296 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;
|
|
}
|
|
}
|