(obj: any)
| 122 | * an interface, so we can't do a direct instanceof check. |
| 123 | */ |
| 124 | export function assertDirectiveDef<T>(obj: any): asserts obj is DirectiveDef<T> { |
| 125 | if (obj.type === undefined || obj.selectors == undefined || obj.inputs === undefined) { |
| 126 | throwError( |
| 127 | `Expected a DirectiveDef/ComponentDef and this object does not seem to have the expected shape.`, |
| 128 | ); |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | export function assertIndexInDeclRange(tView: TView, index: number) { |
| 133 | assertBetween(HEADER_OFFSET, tView.bindingStartIndex, index); |
no test coverage detected