MCPcopy Create free account
hub / github.com/angular/angular / hasOnDestroy

Function hasOnDestroy

packages/core/src/di/r3_injector.ts:715–721  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

713}
714
715function hasOnDestroy(value: any): value is OnDestroy {
716 return (
717 value !== null &&
718 typeof value === 'object' &&
719 typeof (value as OnDestroy).ngOnDestroy === 'function'
720 );
721}
722
723function couldBeInjectableType(value: any): value is ProviderToken<any> {
724 return (

Callers 1

hydrateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected