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

Function isCanDeactivate

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

Source from the content-addressed store, hash-verified

44}
45
46export function isCanDeactivate<T>(guard: any): guard is {canDeactivate: CanDeactivateFn<T>} {
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}

Callers 1

runCanDeactivateFunction · 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…