Skip to content

index.Function.isCheckableRule

github-actions[bot] edited this page Nov 30, 2026 · 26 revisions

Function: isCheckableRule()

function isCheckableRule(value): value is CheckableRule;

Defined in: packages/graphql-casl/src/rules.ts:504

Narrows a Rule to a CheckableRule. The combinators use this to reject an un-combinable operand at construction time rather than at request time.

Parameters

value

unknown

The value to test.

Returns

value is CheckableRule

true when it was built by rule() or a combinator.

API Reference

Clone this wiki locally