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

src/io/DocumentC.ts

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 17
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 0
eloc 12
mnd 0
bc 0
fnc 0
dl 0
loc 17
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 {JsonApiDataC} from './JsonApiDataC';
3 1
import {ResourceC} from './ResourceC';
4
5 1
export const DocumentC = t.intersection([
6
  t.type({
7
    data: t.union([
8
      JsonApiDataC,
9
      t.array(JsonApiDataC),
10
      t.null
11
    ])
12
  }),
13
  t.partial({
14
    included: t.array(ResourceC)
15
  })
16
]);
17