Skip to content

Symbol

Example

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

Playground

Schema
Data
Result