()
| 125 | node.transformFn = options?.transform; |
| 126 | |
| 127 | function inputValueFn() { |
| 128 | // Record that someone looked at this signal. |
| 129 | producerAccessed(node); |
| 130 | |
| 131 | if (node.value === REQUIRED_UNSET_VALUE) { |
| 132 | let message: string | null = null; |
| 133 | if (ngDevMode) { |
| 134 | const name = options?.debugName ?? options?.alias; |
| 135 | message = `Input${name ? ` "${name}"` : ''} is required but no value is available yet.`; |
| 136 | } |
| 137 | throw new RuntimeError(RuntimeErrorCode.REQUIRED_INPUT_NO_VALUE, message); |
| 138 | } |
| 139 | |
| 140 | return node.value; |
| 141 | } |
| 142 | |
| 143 | (inputValueFn as any)[SIGNAL] = node; |
| 144 |
no test coverage detected
searching dependent graphs…