- adapter<Source, Target>(
__namedParameters: {
backward: (x: Target) => Source;
forward: (x: Source) => Target;
store: Writable<Source>;
},
): {
set: (x: Target) => void;
update: (f: (x: Target) => Target) => void;
subscribe(
this: void,
run: Subscriber<Target>,
invalidate?: Invalidator<Target>,
): Unsubscriber;
} Returns {
set: (x: Target) => void;
update: (f: (x: Target) => Target) => void;
subscribe(
this: void,
run: Subscriber<Target>,
invalidate?: Invalidator<Target>,
): Unsubscriber;
}
set: (x: Target) => void
update: (f: (x: Target) => Target) => void
subscribe:function
- subscribe(
this: void,
run: Subscriber<Target>,
invalidate?: Invalidator<Target>,
): Unsubscriber Parameters
- this: void
- run: Subscriber<Target>
Optional
invalidate: Invalidator<Target>
Returns Unsubscriber
Subscribe on value changes.