(value: T)
| 158 | * @param value - The initial value of the property. |
| 159 | */ |
| 160 | export function initial<T>(value: T): PropertyDecorator { |
| 161 | return (target: any, key) => { |
| 162 | const meta = getPropertyMeta<T>(target, key); |
| 163 | if (!meta) { |
| 164 | useLogger().error(`Missing property decorator for "${key.toString()}"`); |
| 165 | return; |
| 166 | } |
| 167 | meta.default = value; |
| 168 | }; |
| 169 | } |
| 170 | |
| 171 | /** |
| 172 | * Create a signal interpolation function decorator. |
no test coverage detected