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.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ filter: CheckedFilter; ok: true; }
filter
Section titled “filter”filter:
CheckedFilter
The filter, each field resolved to the resource’s field model.
ok:
true
The filter is valid for the resource.
Type Literal
Section titled “Type Literal”{ errors: FilterError[]; ok: false; }
errors
Section titled “errors”errors:
FilterError[]
Each problem, with where it is in the text.
ok:
false
The filter is not valid for the resource.