yahoo-finance2
Version:
JS API for Yahoo Finance
17 lines (16 loc) • 469 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.boolean = void 0;
const boolean = function boolean(input, _schema, _ctx, errors, instancePath, _dataCtx, schemaPath) {
if (typeof input !== "boolean") {
errors.push({
instancePath,
schemaPath,
message: "Expected a boolean",
data: input,
});
return false;
}
return true;
};
exports.boolean = boolean;