Skip to content

SearchMatcherGuards.path method

SearchMatcherGuards › path

Unofficial

Checks the exact prototype of a path matcher.

Signature:

path(matcher: SearchMatcher): matcher is SearchUnaryMatcher

Parameters:

ParameterTypeDescription
matcherSearchMatcherThe node to inspect.

Returns: matcher is SearchUnaryMatcher — Whether the node has the current app's path prototype.