readonly<T> function

ReadonlySignal<T> readonly<T>(
  1. T value
)

Create a new plain readonly signal

Implementation

ReadonlySignal<T> readonly<T>(
  /// The initial value for the signal
  T value,
) {
  return signal<T>(value);
}