mirror of
https://github.com/foomo/fender-ts.git
synced 2026-08-16 23:10:21 +00:00
17 lines
287 B
TypeScript
17 lines
287 B
TypeScript
import { string } from 'superstruct';
|
|
import { equal, fend } from '../../../src';
|
|
|
|
export const Struct = fend(string(), equal('bar'));
|
|
|
|
export const data = 'foo';
|
|
|
|
export const failures = [
|
|
{
|
|
value: 'foo',
|
|
type: 'string',
|
|
refinement: 'equal',
|
|
path: [],
|
|
branch: [data],
|
|
},
|
|
];
|