Skip to content

TypeScript type imports #206

Closed
Closed
@jnordberg

Description

@jnordberg

Currently you cannot import TypeScript types using standard import {MyInterface} from 'mylib' syntax but must use import type {MyInterface} from 'mylib' instead. This is a bit inconvenient and non-obvious since Vue and many others allow using the standard syntax, is this something that could be improved or is it a limitation of svelte?

Refs sveltejs/template#146

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem rightquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions