()
| 315 | } |
| 316 | |
| 317 | export function codeSignal(): PropertyDecorator { |
| 318 | return (target: any, key) => { |
| 319 | const meta = getPropertyMetaOrCreate<PossibleCodeScope>(target, key); |
| 320 | addInitializer(target, (instance: any) => { |
| 321 | instance[key] = new CodeSignalContext( |
| 322 | meta.default ?? [], |
| 323 | instance, |
| 324 | ).toSignal(); |
| 325 | }); |
| 326 | }; |
| 327 | } |
no test coverage detected