UNPKG

mysterium-vpn-js

Version:
16 lines (15 loc) 594 B
/** * 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. */ interface Property { name: string; type: 'number' | 'string' | 'object' | 'array' | 'boolean'; optional?: boolean; } declare function validate(typeName: string, obj: any, property: Property): void; declare function validateMultiple(typeName: string, obj: any, properties: Property[]): void; declare function validateArray(typeName: string, arr: any): void; export { validateMultiple, validateArray, validate };