UNPKG

mysterium-vpn-js

Version:
20 lines (19 loc) 743 B
"use strict"; /** * Copyright (c) 2020 BlockDev AG * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.parseIdentityRegistrationResponse = void 0; const validation_1 = require("../fmt/validation"); // eslint-disable-next-line @typescript-eslint/no-explicit-any function parseIdentityRegistrationResponse(data) { (0, validation_1.validateMultiple)('IdentityRegistrationResponse', data, [ { name: 'status', type: 'string' }, { name: 'registered', type: 'boolean' }, ]); return data; } exports.parseIdentityRegistrationResponse = parseIdentityRegistrationResponse;