(obj: any)
| 136 | * an interface, so we can't do a direct instanceof check. |
| 137 | */ |
| 138 | export function assertDirectiveDef<T>(obj: any): asserts obj is DirectiveDef<T> { |
| 139 | if (obj.type === undefined || obj.selectors == undefined || obj.inputs === undefined) { |
| 140 | throwError( |
| 141 | `Expected a DirectiveDef/ComponentDef and this object does not seem to have the expected shape.`, |
| 142 | ); |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | export function assertIndexInDeclRange(tView: TView, index: number) { |
| 147 | assertBetween(HEADER_OFFSET, tView.bindingStartIndex, index); |
no test coverage detected
searching dependent graphs…