* Return definition only if it is defined directly on `type` and is not inherited from a base * class of `type`.
(type: any, field: string)
| 217 | * class of `type`. |
| 218 | */ |
| 219 | function getOwnDefinition<T>(type: any, field: string): ɵɵInjectableDeclaration<T> | null { |
| 220 | // if the ɵprov prop exist but is undefined we still want to return null |
| 221 | return (type.hasOwnProperty(field) && type[field]) || null; |
| 222 | } |
| 223 | |
| 224 | /** |
| 225 | * Read the injectable def (`ɵprov`) for `type` or read the `ɵprov` from one of its ancestors. |
no outgoing calls
no test coverage detected
searching dependent graphs…