import { InferGood, InferInput, MetaNever, MetaObj, Sure } from './index.js' export const err = (schema: TSure) => (input: InferInput): InferGood => { const [good, result] = schema(input) if (good) { // @ts-expect-error Inferred as `unknown` return result } throw result }