Skip to content

Importing interface from .ts file to svelte component doesn't work #23

Closed
@oreilles

Description

@oreilles

foo.ts :

export interface Foo {}

index.svelte :

<script lang=typescript>
    import { Foo } from '.../foo'
</script>

result:

Non-existent export 'Foo' is imported from '.../foo.ts'

Is there a way to make this work ?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions