Skip to content

Typescript support & typings, VS Code intellisense #205

Open
@rallets

Description

@rallets

Hi, I have seen in another issue that you are not interested in releasing a strongly typed version of this component.
So - for who is interested - I have a repo showing one possible solution, using module augmentation and SvelteComponentTyped that supports attributes, events and slots. In this way you get VS code autocompletion and intellisense.

The typings are not comprehensive of all the functionalities, but it could be a good starting point for someone who want to extend it.
It could be also a good example for similar issues with Svelte components.

The interesting part is in this file:
simple-svelte-autocomplete.d.ts

Here you can find the related Svelte language-tools issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions