steelbrain / linter-ui-default

Default UI for the Atom Linter package
MIT License
84 stars 47 forks source link

Fix various bugs + add types + maximize strictness of TypeScript #604

Closed aminya closed 3 years ago

aminya commented 3 years ago

@steelbrain I have changed custom elements to div and className to fix typescript types. I don't know how to fix the typescript types otherwise.

https://github.com/steelbrain/linter-ui-default/pull/604/files#diff-422d53a9a9cf816683d97c9b34c075d77d96d19b10c26bf386e7e5f30f5677dbR140

I tried defining something like this inside lib/tooltip/messages.tsx but it does not work.

namespace React {
  namespace JSX {
    interface IntrinsicElements {
      [elemName: string]: any;
    }
  }
}