# toWritable

Exposes a non-failing RefSubject as a writable Svelte store. Writes are
synchronous for Svelte subscribers and applied to the RefSubject in the
captured Effect context. Both observation and writes belong to the current
Scope. After it closes, set/update are inert.

## Signatures

```ts
export declare const toWritable: <A, R>(ref: RefSubject.RefSubject<A, never, R>) => Effect.Effect<{
    subscribe: (this: void, run: import("svelte/store").Subscriber<A>, invalidate?: () => void) => import("svelte/store").Unsubscriber;
    set: (value: A) => void;
    update: (f: (value: A) => A) => void;
}, never, import("effect/Scope").Scope | R>;
```


