init
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
import {
|
||||
createSubscriber
|
||||
} from "./chunk-5MWODAS5.js";
|
||||
|
||||
// node_modules/svelte/src/reactivity/reactive-value.js
|
||||
var ReactiveValue = class {
|
||||
#fn;
|
||||
#subscribe;
|
||||
/**
|
||||
*
|
||||
* @param {() => T} fn
|
||||
* @param {(update: () => void) => void} onsubscribe
|
||||
*/
|
||||
constructor(fn, onsubscribe) {
|
||||
this.#fn = fn;
|
||||
this.#subscribe = createSubscriber(onsubscribe);
|
||||
}
|
||||
get current() {
|
||||
this.#subscribe();
|
||||
return this.#fn();
|
||||
}
|
||||
};
|
||||
|
||||
export {
|
||||
ReactiveValue
|
||||
};
|
||||
//# sourceMappingURL=chunk-6VYHLW26.js.map
|
||||
Reference in New Issue
Block a user