svelte
Version:
Cybernetically enhanced web apps
25 lines (21 loc) • 392 B
JavaScript
import { createSubscriber } from './create-subscriber.js';
/**
* @template T
*/
export class ReactiveValue {
/**
*
* @param {() => T} fn
* @param {(update: () => void) => void} onsubscribe
*/
constructor(fn, onsubscribe) {
this.
this.
}
get current() {
this.
return this.
}
}