validateAipFilter
validateAipFilter<
TPathKind>(path,declarations?):void
Defined in: filtering/validate-aip-filter.ts:27
Validates an AIP filter string in an Angular form control. This function uses the parseAndCheckFilter function from the @protoutil/aip package to validate the filter string and returns a validation error if the filter string is invalid. The validation error can then be used to display an error message in the Angular form control.
Type Parameters
Section titled “Type Parameters”TPathKind
Section titled “TPathKind”TPathKind extends PathKind = Root
Parameters
Section titled “Parameters”SchemaPath<string, 1, TPathKind>
the schema path of the form control to validate
declarations?
Section titled “declarations?”() => Decl[]
the optional filter declarations to use for validation
Returns
Section titled “Returns”void