Passed
Push — master ( 4ed6ec...79dc51 )
by Alberto
47s queued 11s
created

src/io/ResourceC.ts

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 13
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 0
eloc 10
mnd 0
bc 0
fnc 0
dl 0
loc 13
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 {AttributesC} from './AttributesC';
3
import {RelationshipsC} from './RelationshipsC';
4
import {ResourceIdentifierC} from './ResourceIdentifierC';
5
6
export const ResourceC = t.intersection([
7
  ResourceIdentifierC,
8
  t.partial({
9
    attributes: AttributesC,
10
    relationships: RelationshipsC
11
  })
12
]);
13