mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
lints
This commit is contained in:
+1
-6
@@ -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={() => {}}
|
||||
|
||||
Reference in New Issue
Block a user