Rename Slice to ThreadItem

This commit is contained in:
Eric Bailey
2025-05-30 09:53:42 -05:00
parent a7a9da03d0
commit d0170c59ea
9 changed files with 32 additions and 29 deletions
+4 -4
View File
@@ -7,7 +7,7 @@ import {
import {
HiddenReplyKind,
type PostThreadParams,
type Slice,
type ThreadItem,
type TraversalMetadata,
} from '#/state/queries/usePostThread/types'
import {
@@ -36,9 +36,9 @@ export function traverse(
view: PostThreadParams['view']
},
) {
const items: Slice[] = []
const hidden: Slice[] = []
const muted: Slice[] = []
const items: ThreadItem[] = []
const hidden: ThreadItem[] = []
const muted: ThreadItem[] = []
const metadatas = new Map<string, TraversalMetadata>()
traversal: for (let i = 0; i < thread.length; i++) {