(expression: TcbExpr, tcb: Context)
| 39 | * Wraps an expression in an `unwrapSignal` call which extracts the signal's value. |
| 40 | */ |
| 41 | export function unwrapWritableSignal(expression: TcbExpr, tcb: Context): TcbExpr { |
| 42 | const unwrapRef = tcb.env.referenceExternalSymbol( |
| 43 | R3Identifiers.unwrapWritableSignal.moduleName, |
| 44 | R3Identifiers.unwrapWritableSignal.name, |
| 45 | ); |
| 46 | return new TcbExpr(`${unwrapRef.print()}(${expression.print()})`); |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * A `TcbOp` which renders an Angular expression (e.g. `{{foo() && bar.baz}}`). |
no test coverage detected