MCPcopy Index your code
hub / github.com/angular/angular / isCanMatch

Function isCanMatch

packages/router/src/utils/type_guards.ts:49–51  ·  view source on GitHub ↗
(guard: any)

Source from the content-addressed store, hash-verified

47 return guard && isFunction<CanDeactivateFn<T>>(guard.canDeactivate);
48}
49export function isCanMatch(guard: any): guard is {canMatch: CanMatchFn} {
50 return guard && isFunction<CanMatchFn>(guard.canMatch);
51}
52
53export function isEmptyError(e: Error): e is EmptyError {
54 return e instanceof EmptyError || e?.name === 'EmptyError';

Callers 1

runCanMatchGuardsFunction · 0.90

Calls 1

isFunctionFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…