Files
klz-cables.com/.pnpm-store/v10/files/14/c386c91d87782f336476883d3eaaef959909dd50c0a29ca4f5059ca34de88289a643022fb60837bfa805da0810ab799caa23c47b5410c81bc8f577190cce7b
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

25 lines
892 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const codegen_1 = require("ajv/dist/compile/codegen");
const TYPES = ["undefined", "string", "number", "object", "function", "boolean", "symbol"];
function getDef() {
return {
keyword: "typeof",
schemaType: ["string", "array"],
code(cxt) {
const { data, schema, schemaValue } = cxt;
cxt.fail(typeof schema == "string"
? (0, codegen_1._) `typeof ${data} != ${schema}`
: (0, codegen_1._) `${schemaValue}.indexOf(typeof ${data}) < 0`);
},
metaSchema: {
anyOf: [
{ type: "string", enum: TYPES },
{ type: "array", items: { type: "string", enum: TYPES } },
],
},
};
}
exports.default = getDef;
module.exports = getDef;
//# sourceMappingURL=typeof.js.map