Update index.d.ts

Fixes 

```bash
client/components/controllers/Notes.tsx(199,13): error TS2605: JSX element type 'Component<OwnProps, {} | void>' is not a constructor function for JSX elements.
  Types of property 'render' are incompatible.
    Type '() => Element | null' is not assignable to type '() => Element'.
      Type 'Element | null' is not assignable to type 'Element'.
        Type 'null' is not assignable to type 'Element'.
```

rendering `null` is acceptable and should be accepted.

See https://github.com/Microsoft/TypeScript/issues/10259
This commit is contained in:
Benoit Bénézech
2016-08-13 20:45:26 +02:00
committed by GitHub
parent 991f2baad5
commit 32e719c701
+1 -1
View File
@@ -2345,7 +2345,7 @@ declare global {
namespace JSX {
interface Element extends React.ReactElement<any> { }
interface ElementClass extends React.Component<any, any> {
render(): JSX.Element;
render(): JSX.Element|null;
}
interface ElementAttributesProperty { props: {}; }