BooleanFilterSchema
const BooleanFilterSchema: Union<[mutable<Struct<{ kind: Literal<["boolean"]>; operator: SchemaClass<"eq" | "ne", "eq" | "ne", never>; value: typeof Boolean$;}>>, mutable<Struct<{ kind: Literal<["boolean"]>; operator: SchemaClass<"isNull" | "isNotNull", "isNull" | "isNotNull", never>;}>>]>;Defined in: filters/schemas-effect.ts:164
Validates a boolean-kind field filter (the model’s BooleanFilter):
eq/ne with a boolean value, or a unary operator.
Example
Section titled “Example”import { Schema } from "effect";import { BooleanFilterSchema } from "@xtandard/lib/filters/effect";
const input = { kind: "boolean", operator: "eq", value: true };Schema.decodeUnknownSync(BooleanFilterSchema)(input);// → `input`, typed as `BooleanFilter`Schema.is(BooleanFilterSchema)({ kind: "boolean", operator: "eq", value: "true" });// → false (a string, not a boolean)