A Resource with a mutable value.
Resource
interface WritableResource<T> extends Resource<T> { readonly value: WritableSignal<T | undefined>; hasValue(): boolean; set(value: T | undefined): void; update(updater: (value: T | undefined) => T | undefined): void; asReadonly(): Resource<T>; readonly override status: Signal<ResourceStatus>; readonly override error: Signal<unknown>; readonly override isLoading: Signal<boolean>; override reload(): boolean;}