mqtt and socket added

This commit is contained in:
Miisa Ekholm
2022-10-21 11:17:48 +03:00
parent 52370df9ce
commit 9e3d953b9e
751 changed files with 185105 additions and 153 deletions

View File

@@ -0,0 +1,8 @@
/**
* @description Check if access is out of bounds.
* @param pos The position want to access.
* @param lower The lower bound.
* @param upper The upper bound.
* @return Boolean about if access is out of bounds.
*/
export declare function checkWithinAccessParams(pos: number, lower: number, upper: number): void;

View File

@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkWithinAccessParams = void 0;
/**
* @description Check if access is out of bounds.
* @param pos The position want to access.
* @param lower The lower bound.
* @param upper The upper bound.
* @return Boolean about if access is out of bounds.
*/
function checkWithinAccessParams(pos, lower, upper) {
if (pos < lower || pos > upper) {
throw new RangeError();
}
}
exports.checkWithinAccessParams = checkWithinAccessParams;