Skip to main content

Home > blockly > INavigationPolicy > isApplicable

INavigationPolicy.isApplicable() method

Returns whether or not this navigation policy corresponds to the type of the given object.

Signature:

isApplicable(current: any): current is T;

Parameters

ParameterTypeDescription
currentanyAn instance to check whether this policy applies to.

Returns:

current is T

True if the given object is of a type handled by this policy.