Skip to content

CheckResult

CheckResult = { filter: CheckedFilter; ok: true; } | { errors: FilterError[]; ok: false; }

Defined in: packages/schema/src/filter/check.ts:8

What checkFilter gives: the filter with each field resolved to its model, or the errors.

{ filter: CheckedFilter; ok: true; }

filter: CheckedFilter

The filter, each field resolved to the resource’s field model.

ok: true

The filter is valid for the resource.


{ errors: FilterError[]; ok: false; }

errors: FilterError[]

Each problem, with where it is in the text.

ok: false

The filter is not valid for the resource.