Const
import { ThingT, Thing } from '@docmaps/sdk';
import { Validation } from 'io-ts';
const C: Validation<ThingT> = Thing.decode({
published: '2020-01-01',
id: '123456',
doi: '10.12345/abcdef',
type: 'Article',
content: [{
type: 'text',
text: 'This is an example of a thing'
}]
});
0.1.0
TODO - now that we have Types, we could do more assertive shaping based on a given Type value implying certain fields must exist *
Generated using TypeDoc
An output or input.