Passed
Push — master ( 79dc51...e6cf23 )
by Alberto
45s queued 11s
created

src/io/RelationshipsC.ts

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 14
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 0
eloc 10
mnd 0
bc 0
fnc 0
dl 0
loc 14
ccs 4
cts 4
cp 1
bpm 0
cpm 0
noi 0
c 0
b 0
f 0
1 1
import * as t from 'io-ts';
2 1
import {NonEmptyString} from 'io-ts-types/lib/NonEmptyString';
3 1
import {ResourceIdentifierC} from './ResourceIdentifierC';
4
5 1
export const RelationshipsC = t.record(
6
  NonEmptyString,
7
  t.type({
8
    data: t.union([
9
      ResourceIdentifierC,
10
      t.array(ResourceIdentifierC)
11
    ])
12
  })
13
);
14