Variable ActorConst

Actor: UnionC<[TypeC<{
    name: StringC;
    type: UnionC<[LiteralC<string>, ArrayC<LiteralC<string>>]> | UnionC<[ArrayC<UnionC<[LiteralC<string>, LiteralC<string>, ...LiteralC<string>[]]>>, UnionC<[LiteralC<string>, LiteralC<string>, ...LiteralC<string>[]]>]>;
}>, UnknownC]> = ...

A pro:Agent . Can be almost anything in theory, but currently only a Person.

Example

import { ActorT, Actor } from '@docmaps/sdk';
import { Validation } from 'io-ts';

const B: Validation<ActorT> = Actor.decode({
type: 'person',
name: 'John Doe'
});

Since

0.1.0

TODO: support organizations, etc as Agents.

Generated using TypeDoc