(initialValue?: T)
| 138 | (value: T): void; |
| 139 | }; |
| 140 | export function signal<T>(initialValue?: T): { |
| 141 | (): T | undefined; |
| 142 | (value: T | undefined): void; |
| 143 | } { |
| 144 | return signalOper.bind({ |
| 145 | currentValue: initialValue, |
| 146 | pendingValue: initialValue, |
| 147 | subs: undefined, |
| 148 | subsTail: undefined, |
| 149 | flags: ReactiveFlags.Mutable, |
| 150 | }) as () => T | undefined; |
| 151 | } |
| 152 | |
| 153 | export function computed<T>(getter: (previousValue?: T) => T): () => T { |
| 154 | return computedOper.bind({ |
no outgoing calls
searching dependent graphs…