misc: update imports for types

This commit is contained in:
James Xylight committed 2025-09-05 15:40:41 -07:00
1 parent e21d1f6196
commit 43654ca2d8
77 files changed
+88 -76

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ import type {
PostView,
Comment,
Post,
} from 'lemmy-js-client'
} from '$lib/client/types'
export type SubmissionView = PostView | CommentView
export type Submission = Post | Comment
+1 -1
View File
@@ -1,5 +1,5 @@
import { fullCommunityName } from '$lib/util.svelte'
import type { Community, Person } from 'lemmy-js-client'
import type { Community, Person } from '$lib/client/types'
export const communityLink = (community: Community, prefix: string = '') =>
`${prefix}/c/${fullCommunityName(community.name, community.actor_id)}`
+1 -1
View File
@@ -4,7 +4,7 @@ import type {
Person,
PersonMentionView,
PrivateMessageView,
} from 'lemmy-js-client'
} from '$lib/client/types'
export type InboxItemView =
| PersonMentionView
+1 -1
View File
@@ -12,7 +12,7 @@ import type {
PrivateMessage,
PrivateMessageReportView,
PrivateMessageView,
} from 'lemmy-js-client'
} from '$lib/client/types'
import { writable } from 'svelte/store'
export type Result =
+1 -1
View File
@@ -6,7 +6,7 @@ import type {
GetPostsResponse,
ListingType,
SortType,
} from 'lemmy-js-client'
} from '$lib/client/types'
export const shouldReload = (
cache: PostFeed | undefined,
+1 -1
View File
@@ -7,7 +7,7 @@ import type {
PostView,
PrivateMessage,
PrivateMessageReportView,
} from 'lemmy-js-client'
} from '$lib/client/types'
interface CommentReport {
type: 'comment'
+1 -1
View File
@@ -1,7 +1,7 @@
import { profile, type ProfileInfo } from '$lib/auth.svelte'
import { getClient } from '$lib/client/lemmy.svelte'
import { trycatch } from '$lib/util.svelte'
import type { Community, MyUserInfo } from 'lemmy-js-client'
import type { Community, MyUserInfo } from '$lib/client/types'
// TODO obliterate this file