( consts: TConstants | null, index: number | null | undefined, )
| 185 | index: number | null | undefined, |
| 186 | ): T | null; |
| 187 | export function getConstant<T>( |
| 188 | consts: TConstants | null, |
| 189 | index: number | null | undefined, |
| 190 | ): T | null { |
| 191 | if (index === null || index === undefined) return null; |
| 192 | ngDevMode && assertIndexInRange(consts!, index); |
| 193 | return consts![index] as unknown as T; |
| 194 | } |
| 195 | |
| 196 | /** |
| 197 | * Resets the pre-order hook flags of the view. |
no test coverage detected
searching dependent graphs…