Yomguithereal / react-blessed

A react renderer for blessed.
MIT License
4.45k stars 177 forks source link

conflict tag name with react declare #84

Closed guoshencheng closed 5 years ago

guoshencheng commented 5 years ago

Hi, is here any support for typescript. i meet a problem. Use a custom tag should declare namespace JSX. the code may like this

declare namespace JSX {
  interface IntrinsicElements {
    'box': any,
    'listtable': any,
  }
}

It works fine sometimes but when i use button. The tag name is conflict with origin JSX IntrinsicElements definition. any solutions?

guoshencheng commented 5 years ago

85 I have made a pull request to resolve this problem.

guoshencheng commented 5 years ago

plan b

86

cancerberoSgx commented 5 years ago

Hello there, how are you using the library in TypeScript .tsx files ? ,I'm trying with @types/react-blessed , @types/blessed but not success, will keep investigating but would be awesome to have a working example, any tip is most appreciated.

Update: well, I made it work, but I don't understand how installing your typings box: any, etc: anyhelps at all. IMO is not useful... I will try to improve that and create an example simple project so we can reference here. Thanks

danielpza commented 4 years ago

Hello @cancerberoSgx , so did you find a solution, how did you solve it?