( initial?: SignalValue<TValue>, interpolation: InterpolationFunction<TValue> = deepLerp, owner?: TOwner, )
| 5 | import type {SignalValue} from './types'; |
| 6 | |
| 7 | export function createSignal<TValue, TOwner = void>( |
| 8 | initial?: SignalValue<TValue>, |
| 9 | interpolation: InterpolationFunction<TValue> = deepLerp, |
| 10 | owner?: TOwner, |
| 11 | ): SimpleSignal<TValue, TOwner> { |
| 12 | return new SignalContext<TValue, TValue, TOwner>( |
| 13 | initial, |
| 14 | interpolation, |
| 15 | owner, |
| 16 | ).toSignal(); |
| 17 | } |
no test coverage detected