Skip to content

typeof $store throws an error #903

@pushkine

Description

@pushkine
<script lang="ts">
	import {writable} from "svelte/store";
	const foo = writable(1);
	type Foo = typeof $foo;
</script>

image

///<reference types="svelte" />
<></>;
import {writable} from "svelte/store";
function render() {

	
	const foo = writable(1)/*Ωignore_startΩ*/;let $foo = __sveltets_store_get(foo);/*Ωignore_endΩ*/;
	type Foo = typeof (__sveltets_store_get(foo), $foo);
;
() => (<></>);
return { props: {}, slots: {}, getters: {}, events: {} }}

export default class extends createSvelte2TsxComponent(__sveltets_partial(__sveltets_with_any_event(render))) {
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedFixed in master branch. Pending production release.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions