// example.tsimport "./arktype-conf";import { type } from "arktype";const User = type({ name: "string", age: "number",});// const user = User({ name: "John", age: 30 });const user = User({ name: "John" });// exits gracefully, but user contains an error// no error throw happens
// example.tsimport "./arktype-conf";import { type } from "arktype";const User = type({ name: "string", age: "number",});// const user = User({ name: "John", age: 30 });const user = User({ name: "John" });// exits gracefully, but user contains an error// no error throw happens
I expected this config to change the behavior of arktype to throw instead. Is it possible or is it by design? Not that I need it, was just curious if this is possible or I did/understood something wrong.