Create a Signal of type T with initial value
T
value
Initial value
Optional
Signal options
const n = signal(1) Copy
const n = signal(1)
n() Copy
n()
n(3) Copy
n(3)
Create a Signal of type
T
with initialvalue