| Total Complexity | 0 |
| Complexity/F | 0 |
| Lines of Code | 14 |
| Function Count | 0 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | import * as t from 'io-ts'; |
||
| 2 | import {NonEmptyString} from 'io-ts-types/lib/NonEmptyString'; |
||
| 3 | import {ResourceIdentifierC} from './ResourceIdentifierC'; |
||
| 4 | |||
| 5 | export const RelationshipsC = t.record( |
||
| 6 | NonEmptyString, |
||
| 7 | t.type({ |
||
| 8 | data: t.union([ |
||
| 9 | ResourceIdentifierC, |
||
| 10 | t.array(ResourceIdentifierC) |
||
| 11 | ]) |
||
| 12 | }) |
||
| 13 | ); |
||
| 14 |