Skip to content

How to extend solid JSX.IntrinsicElements namespace for custom web components? #1123

Answered by Akiyamka
Akiyamka asked this question in Q&A
Discussion options

You must be logged in to vote

@ryansolid thank you! Next code in index.d.ts cover my case! Import of JSX from solid-js not required

declare global {
  declare module "solid-js" {
    namespace JSX {
      interface IntrinsicElements { 
        'map-gl': MapGlProps;
      }
    }
  }
}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@utenma
Comment options

Answer selected by Akiyamka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants