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

lib/io/RelationshipsC.js   A

Complexity

Total Complexity 5
Complexity/F 5

Size

Lines of Code 18
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 5
eloc 15
mnd 4
bc 4
fnc 1
dl 0
loc 18
bpm 4
cpm 5
noi 4
c 0
b 0
f 0
rs 10
1
"use strict";
2
var __importStar = (this && this.__importStar) || function (mod) {
3
    if (mod && mod.__esModule) return mod;
4
    var result = {};
5
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
6
    result["default"] = mod;
7
    return result;
8
};
9
Object.defineProperty(exports, "__esModule", { value: true });
10
var t = __importStar(require("io-ts"));
11
var NonEmptyString_1 = require("io-ts-types/lib/NonEmptyString");
12
var ResourceIdentifierC_1 = require("./ResourceIdentifierC");
13
exports.RelationshipsC = t.record(NonEmptyString_1.NonEmptyString, t.type({
14
    data: t.union([
15
        ResourceIdentifierC_1.ResourceIdentifierC,
16
        t.array(ResourceIdentifierC_1.ResourceIdentifierC)
17
    ])
18
}));
19