Skip to content

Commit c78e5df

Browse files
committed
stuff
1 parent 8f18d78 commit c78e5df

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

app/components/diff/ViewerPanel.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import type { FileDiffResponse, FileChange } from '#shared/types'
2+
import type { FileDiffResponse, FileChange, DiffHunk } from '#shared/types'
33
import { createDiff, insertSkipBlocks, countDiffStats } from '#shared/utils/diff'
44
// @ts-expect-error: (tasky): idk why this is type-erroring even if it has types? /shrug
55
import { motion } from 'motion-v'
@@ -111,9 +111,7 @@ function computeDiff() {
111111
}
112112
113113
const hunksWithSkips = insertSkipBlocks(
114-
parsed.hunks.filter(
115-
(h): h is (typeof parsed.hunks)[number] & { type: 'hunk' } => h.type === 'hunk',
116-
),
114+
parsed.hunks.filter((h): h is DiffHunk => h.type === 'hunk'),
117115
)
118116
const stats = countDiffStats(hunksWithSkips)
119117

0 commit comments

Comments
 (0)