Passed
Push — master ( 4ed6ec...79dc51 )
by Alberto
47s 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 0%

Importance

Changes 0
Metric Value
wmc 0
eloc 12
mnd 0
bc 0
fnc 0
dl 0
loc 17
ccs 0
cts 1
cp 0
bpm 0
cpm 0
noi 0
c 0
b 0
f 0
1
import * as t from 'io-ts';
2
import {JsonApiDataC} from './JsonApiDataC';
3
import {ResourceC} from './ResourceC';
4
5
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