justinfagnani / chessboard-element

A <chess-board> web component
https://justinfagnani.github.io/chessboard-element/
Other
100 stars 14 forks source link

Autocompletion TypeScript / React #6

Open futurliberta opened 4 years ago

futurliberta commented 4 years ago

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;
    }
}
justinfagnani commented 4 years ago

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