mirror of
https://github.com/foomo/fender-ts.git
synced 2026-08-16 23:10:21 +00:00
21 lines
272 B
TypeScript
21 lines
272 B
TypeScript
import { valid } from '../../../src';
|
|
|
|
enum Values {
|
|
Foo = 'foo',
|
|
Bar = 'bar',
|
|
}
|
|
|
|
export const Struct = valid(Values);
|
|
|
|
export const data = 'baz';
|
|
|
|
export const failures = [
|
|
{
|
|
value: 'baz',
|
|
type: 'valid',
|
|
refinement: 'valid',
|
|
path: [],
|
|
branch: [data],
|
|
},
|
|
];
|