diff --git a/maxun-core/src/interpret.ts b/maxun-core/src/interpret.ts index 0543d71f..ddc5d915 100644 --- a/maxun-core/src/interpret.ts +++ b/maxun-core/src/interpret.ts @@ -213,7 +213,7 @@ export default class Interpreter extends EventEmitter { : Object.entries(value).map((a) => Object.fromEntries([a])); // every condition is treated as a single context - switch (key as keyof typeof operators) { + switch (key as (typeof operators)[number]) { case '$and': return array?.every((x) => this.applicable(x, context)); case '$or':