MCPcopy Create free account
hub / github.com/ngrx/platform / getSourceForInstance

Function getSourceForInstance

modules/effects/src/utils.ts:3–5  ·  view source on GitHub ↗
(instance: T)

Source from the content-addressed store, hash-verified

1import { InjectionToken, Type } from '@angular/core';
2
3export function getSourceForInstance<T>(instance: T): T {
4 return Object.getPrototypeOf(instance);
5}
6
7export function isClassInstance(obj: object): boolean {
8 return (

Callers 3

toActionsMethod · 0.90
mergeEffectsFunction · 0.90
utils.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected