Skip to content

Undefined

Example

import * as p from '@vbudovski/paseri';
const schema = p.undefined();
const data = undefined;
const result = schema.safeParse(data);
if (result.ok) {
// result.value typed as `undefined`.
}

Playground

Schema
Data
Result