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

Parameter Type Description
current any An 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.