misc: update imports for types
This commit is contained in:
77 files changed
+88
-76
No files matched your search
@@ -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,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)}`
|
||||
|
||||
@@ -4,7 +4,7 @@ import type {
|
||||
Person,
|
||||
PersonMentionView,
|
||||
PrivateMessageView,
|
||||
} from 'lemmy-js-client'
|
||||
} from '$lib/client/types'
|
||||
|
||||
export type InboxItemView =
|
||||
| PersonMentionView
|
||||
|
||||
@@ -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 =
|
||||
|
||||
@@ -6,7 +6,7 @@ import type {
|
||||
GetPostsResponse,
|
||||
ListingType,
|
||||
SortType,
|
||||
} from 'lemmy-js-client'
|
||||
} from '$lib/client/types'
|
||||
|
||||
export const shouldReload = (
|
||||
cache: PostFeed | undefined,
|
||||
|
||||
@@ -7,7 +7,7 @@ import type {
|
||||
PostView,
|
||||
PrivateMessage,
|
||||
PrivateMessageReportView,
|
||||
} from 'lemmy-js-client'
|
||||
} from '$lib/client/types'
|
||||
|
||||
interface CommentReport {
|
||||
type: 'comment'
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user