in src/internal/ArgumentChecker.ts [37:54]
static hasType(arg, argName, isArray, ...types) {
if (arg === null) {
return;
}
if (isArray && arg instanceof Array) {
for (let a of arg) {
ArgumentChecker.hasType(a, argName, false, ...types);
}
}
else {
for (let type of types) {
if (arg instanceof type) {
return;
}
}
throw IgniteClientError.illegalArgumentError(Util.format('"%s" argument has incorrect type', argName));
}
}