Skip to content

Variable: ScopedRuleSchema ​

ts
const ScopedRuleSchema: ZodObject<{
  checks: ZodDefault<ZodArray<ZodCustom<BuiltInCheckASTNode<unknown>, BuiltInCheckASTNode<unknown>>>>;
  directive: ZodString;
  id: ZodString;
  when: ZodObject<{
     effects: ZodOptional<ZodCustom<FsGlobMatcherNode, FsGlobMatcherNode>>;
     partitions: ZodDefault<ZodArray<ZodString>>;
  }, $strip>;
}, $strip>;

Defined in: schemas/core-rules.schema.ts:33

Zod schema validating a partition- or effect-scoped rule with optional beforeStop checks.

Released under the MIT License.