diff --git a/src/ui/ColoredDiff.tsx b/src/ui/ColoredDiff.tsx index d266484de..40b13c239 100644 --- a/src/ui/ColoredDiff.tsx +++ b/src/ui/ColoredDiff.tsx @@ -1,4 +1,4 @@ -import { diffWordsWithSpace } from "diff"; +import { diffWordsWithSpace, Change } from "diff"; import { Box, Text } from "ink"; import React, { useMemo } from "react"; @@ -84,7 +84,7 @@ function useWordLevelDiff(oldContent: string, newContent: string) { } function renderWordLevelContent( - changes: ReturnType, + changes: Change[], showType: "removed" | "added" ): React.ReactNode { const segments: React.ReactNode[] = [];