mqtt and socket added
This commit is contained in:
8
WebUI/node_modules/js-sdsl/dist/esm/utils/checkParams.d.ts
generated
vendored
Normal file
8
WebUI/node_modules/js-sdsl/dist/esm/utils/checkParams.d.ts
generated
vendored
Normal 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;
|
||||
12
WebUI/node_modules/js-sdsl/dist/esm/utils/checkParams.js
generated
vendored
Normal file
12
WebUI/node_modules/js-sdsl/dist/esm/utils/checkParams.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* @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 function checkWithinAccessParams(pos, lower, upper) {
|
||||
if (pos < lower || pos > upper) {
|
||||
throw new RangeError();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user