Fix lint warnings

This commit is contained in:
=
2018-06-09 02:55:48 -07:00
parent 84e66f7ede
commit fbd62bbdf0
5 changed files with 9 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
import { Component, ReactNode, CSSProperties, MouseEventHandler } from "react";
export interface LineProps {
data: { text: string }[];
data: Array<{ text: string }>;
number: number;
rowHeight: number;
highlight?: boolean;

View File

@@ -1,7 +1,7 @@
import { Component, ReactNode, CSSProperties } from "react";
export interface LineContentProps {
data: { text: string }[];
data: Array<{ text: string }>;
number: number;
formatPart?: (text: string) => ReactNode;
style?: CSSProperties;

View File

@@ -1,5 +1,3 @@
import { Component } from "react";
export interface LoadingProps {}
export default class Loading extends Component<LoadingProps> {}
export default class Loading extends Component {}

View File

@@ -1,4 +1,4 @@
// Type definitions for react-lazylog 3.1.4
// Type definitions for react-lazylog 3.1
// Project: https://github.com/mozilla-frontend-infra/react-lazylog
// Definitions by: Benjamin Romano <https://github.com/benjaminRomano>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

View File

@@ -16,7 +16,10 @@
"files": [
"react-lazylog-tests.tsx",
"index.d.ts",
"lib/build/LazyLog.d.ts",
"lib/build/LinePart.d.ts"
"build/Line.d.ts",
"build/LineContent.d.ts",
"build/LineNumber.d.ts",
"build/LinePart.d.ts",
"build/Loading.d.ts"
]
}