Skip to content

Commit

Permalink
refactor(hdiff): update type usage
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Apr 19, 2024
1 parent a3afff7 commit 33c1085
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/hdiff/src/diff.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { Maybe } from "@thi.ng/api";
import { diffArray } from "@thi.ng/diff/array";
import { escapeEntities } from "@thi.ng/strings/entities";
import { padLeft } from "@thi.ng/strings/pad-left";
Expand All @@ -15,7 +16,7 @@ export const computeDiff = (a: string, b: string) => {
if (lineID) updateOffset(edits, i, lineID);
}
const result: any[] = ["div", {}];
let block: any[] | undefined;
let block: Maybe<any[]>;
let numSame = 0;
for (let i = 0; i < edits.length; i += 3) {
if (!block) block = ["pre", {}];
Expand Down

0 comments on commit 33c1085

Please sign in to comment.