Skip to content

index.Function.isAction

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

Function: isAction()

function isAction(value): value is Action;

Defined in: packages/graphql-casl/src/ability.ts:38

Whether a value is one of the Action verbs. Use it to narrow an action read from outside the type system: a stored rule, a directive argument.

Parameters

value

unknown

The value to test.

Returns

value is Action

true when value is a member of Actions.

API Reference

Clone this wiki locally