SolidJSS
SolidJSโ€ข2y agoโ€ข
17 replies
gsoutz

How to decorators typescript signal

To template this out
_foo: Signal<number>

get foo() {
  return _foo[0]()
}

set foo(_: number) {
  _foo[1](_)
}

constructor() {
this._foo = createSignal(0)
}
Was this page helpful?