Skip to content

SearchMatcherGuards.case method

SearchMatcherGuards › case

Unofficial

Checks the exact prototype of a case matcher.

Signature:

case(matcher: SearchMatcher): matcher is SearchCaseMatcher

Parameters:

ParameterTypeDescription
matcherSearchMatcherThe node to inspect.

Returns: matcher is SearchCaseMatcher — Whether the node has the current app's case prototype.