Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocompletion TypeScript / React #6

Open
futurliberta opened this issue May 22, 2020 · 1 comment
Open

Autocompletion TypeScript / React #6

futurliberta opened this issue May 22, 2020 · 1 comment

Comments

@futurliberta
Copy link

futurliberta commented May 22, 2020

Hello,

Is it possible to have autocompletion with props of the component ?

I declared the component as JSX element but of course, autocompletion is not available:

declare namespace JSX {
    interface IntrinsicElements {
        "chess-board": any;
    }
}
@futurliberta futurliberta changed the title Autocompletion TypeScript Autocompletion TypeScript / React May 22, 2020
@justinfagnani
Copy link
Owner

I added chess-board to the HTMLElementTagNameMap. I wonder if that's enough for JSX auto-completion to work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants