mirror of https://github.com/sveltejs/svelte
34 lines
660 B
34 lines
660 B
/* generated by Svelte vX.Y.Z */
|
|
import {
|
|
SvelteComponent,
|
|
component_subscribe,
|
|
init,
|
|
safe_not_equal,
|
|
set_store_value
|
|
} from "svelte/internal";
|
|
|
|
import { count } from './store.js';
|
|
|
|
function instance($$self, $$props, $$invalidate) {
|
|
let $count;
|
|
component_subscribe($$self, count, $$value => $$invalidate(1, $count = $$value));
|
|
|
|
function increment() {
|
|
set_store_value(count, $count++, $count);
|
|
}
|
|
|
|
return [increment];
|
|
}
|
|
|
|
class Component extends SvelteComponent {
|
|
constructor(options) {
|
|
super();
|
|
init(this, options, instance, null, safe_not_equal, { increment: 0 });
|
|
}
|
|
|
|
get increment() {
|
|
return this.$$.ctx[0];
|
|
}
|
|
}
|
|
|
|
export default Component; |