fix errors
This commit is contained in:
parent
8a15233bc9
commit
447f4d7e9e
1 changed files with 2 additions and 2 deletions
|
|
@ -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<typeof diffWordsWithSpace>,
|
||||
changes: Change[],
|
||||
showType: "removed" | "added"
|
||||
): React.ReactNode {
|
||||
const segments: React.ReactNode[] = [];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue