Variable AssertionConst

Assertion: IntersectionC<[TypeC<{
    item: UnknownC;
    status: StringC;
}>, PartialC<{
    happened: DateFromUnknownC;
}>]> = ...

A claim about a document acquiring a status that is asserted by a certain step

Example

import { AssertionT, Assertion } from '@docmaps/sdk';
import { Validation } from 'io-ts';

const C: Validation<AssertionT> = Assertion.decode({
item: {
type: 'Article',
id: '123456'
},
status: 'accepted',
happened: '2020-01-01'
});

Since

0.9.0

TODO: make this smarter

Generated using TypeDoc