* Get variable signal if exists or create signal if not * * @param name - The name of the variable. * @param initial - The initial value of the variable. It will be used if the * variable was not configured from the outside.
(name: string, initial: T)
| 18 | * variable was not configured from the outside. |
| 19 | */ |
| 20 | public get<T>(name: string, initial: T): () => T { |
| 21 | this.signals[name] ??= createSignal(this.variables[name] ?? initial); |
| 22 | return () => this.signals[name](); |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Update all signals with new project variable values. |
no test coverage detected