From fbd62bbdf081809f69fe1ae4cf77697123202960 Mon Sep 17 00:00:00 2001 From: = Date: Sat, 9 Jun 2018 02:55:48 -0700 Subject: [PATCH] Fix lint warnings --- types/react-lazylog/build/Line.d.ts | 2 +- types/react-lazylog/build/LineContent.d.ts | 2 +- types/react-lazylog/build/Loading.d.ts | 4 +--- types/react-lazylog/index.d.ts | 2 +- types/react-lazylog/tsconfig.json | 7 +++++-- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/types/react-lazylog/build/Line.d.ts b/types/react-lazylog/build/Line.d.ts index d7c93eeaa3..85c3444289 100644 --- a/types/react-lazylog/build/Line.d.ts +++ b/types/react-lazylog/build/Line.d.ts @@ -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; diff --git a/types/react-lazylog/build/LineContent.d.ts b/types/react-lazylog/build/LineContent.d.ts index 28e397fe0d..1bece45340 100644 --- a/types/react-lazylog/build/LineContent.d.ts +++ b/types/react-lazylog/build/LineContent.d.ts @@ -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; diff --git a/types/react-lazylog/build/Loading.d.ts b/types/react-lazylog/build/Loading.d.ts index 7428caea7b..45d1f38f15 100644 --- a/types/react-lazylog/build/Loading.d.ts +++ b/types/react-lazylog/build/Loading.d.ts @@ -1,5 +1,3 @@ import { Component } from "react"; -export interface LoadingProps {} - -export default class Loading extends Component {} +export default class Loading extends Component {} diff --git a/types/react-lazylog/index.d.ts b/types/react-lazylog/index.d.ts index 051ad7f536..6f9ad8aab8 100644 --- a/types/react-lazylog/index.d.ts +++ b/types/react-lazylog/index.d.ts @@ -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 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/react-lazylog/tsconfig.json b/types/react-lazylog/tsconfig.json index a1b35d2311..856e2e40aa 100644 --- a/types/react-lazylog/tsconfig.json +++ b/types/react-lazylog/tsconfig.json @@ -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" ] }