Merge pull request #17930 from joscha/patch-2

react-infinite-scroller: fix default export
This commit is contained in:
Ryan Cavanaugh
2017-07-11 10:57:09 -07:00
committed by GitHub
3 changed files with 10 additions and 8 deletions
+6 -5
View File
@@ -1,12 +1,12 @@
// Type definitions for react-infinite-scroller 1.0.12
// Type definitions for react-infinite-scroller 1.0
// Project: https://github.com/CassetteRocks/react-infinite-scroller
// Definitions by: Lauri Lavanti <https://github.com/Lapanti>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
declare module 'react-infinite-scroller' {
import * as React from 'react';
import * as React from "react";
declare namespace InfiniteScroll {
/**
* <InfiniteScroll /> properties.
*/
@@ -60,6 +60,7 @@ declare module 'react-infinite-scroller' {
*/
loader?: React.ReactElement<any>;
}
export default class InfiniteScroll extends React.Component<InfiniteScrollProps> { }
class InfiniteScroll extends React.Component<InfiniteScrollProps> { }
}
export = InfiniteScroll.InfiniteScroll;
@@ -1,8 +1,8 @@
import * as React from 'react';
import InfiniteScroll from 'react-infinite-scroller';
import InfiniteScroll = require('react-infinite-scroller');
class Test1 extends React.Component {
public render() {
render() {
return (
<InfiniteScroll
loadMore={() => {}}
@@ -14,7 +14,7 @@ class Test1 extends React.Component {
}
class Test2 extends React.Component {
public render() {
render() {
return (
<InfiniteScroll
loadMore={() => {}}
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }