This commit is contained in:
Joscha Feth
2017-07-11 21:23:39 +10:00
parent 2d97577f3d
commit 32cdd18aee
2 changed files with 4 additions and 9 deletions
+1 -6
View File
@@ -1,15 +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
/// <reference types="react"/>
import * as React from "react";
declare namespace InfiniteScroll {
/**
* <InfiniteScroll /> properties.
*/
@@ -63,9 +60,7 @@ declare namespace InfiniteScroll {
*/
loader?: React.ReactElement<any>;
}
class InfiniteScroll extends React.Component<InfiniteScrollProps> { }
}
export = InfiniteScroll.InfiniteScroll;
@@ -1,8 +1,8 @@
import * as React from 'react';
import * as 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={() => {}}