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
@@ -3,7 +3,7 @@ import { t } from '$lib/i18n/translations.js'
import { postFeed } from '$lib/lemmy/postfeed.svelte.js'
import { ReactiveState, awaitIfServer } from '$lib/promise.svelte.js'
import { settings } from '$lib/settings.svelte'
import type { ListingType, SortType } from 'lemmy-js-client'
import type { ListingType, SortType } from '$lib/client/types'
import { ChevronDoubleUp } from 'svelte-hero-icons'
export async function load({ url, fetch }) {
@@ -1,7 +1,7 @@
<script lang="ts">
import { t } from '$lib/i18n/translations'
import { Spinner } from 'mono-svelte'
import type { ResolveObjectResponse } from 'lemmy-js-client'
import type { ResolveObjectResponse } from '$lib/client/types'
import CommunityItem from '$lib/components/lemmy/community/CommunityItem.svelte'
import UserItem from '$lib/components/lemmy/user/UserItem.svelte'
import Post from '$lib/components/lemmy/post/Post.svelte'
@@ -11,7 +11,7 @@
import type {
ApproveRegistrationApplication,
RegistrationApplicationView,
} from 'lemmy-js-client'
} from '$lib/client/types'
import { Button, Material, toast } from 'mono-svelte'
import {
Check,
+1 -1
View File
@@ -7,7 +7,7 @@
import { t } from '$lib/i18n/translations.js'
import { getClient, site } from '$lib/client/lemmy.svelte'
import { errorMessage } from '$lib/lemmy/error.js'
import type { EditSite } from 'lemmy-js-client'
import type { EditSite } from '$lib/client/types'
import {
Badge,
Button,
+1 -1
View File
@@ -9,7 +9,7 @@
import { t } from '$lib/i18n/translations.js'
import { getClient } from '$lib/client/lemmy.svelte'
import { trycatch } from '$lib/util.svelte.js'
import type { Instance } from 'lemmy-js-client'
import type { Instance } from '$lib/client/types'
import {
Button,
FileInput,
+1 -1
View File
@@ -8,7 +8,7 @@
import Placeholder from '$lib/components/ui/Placeholder.svelte'
import { t } from '$lib/i18n/translations.js'
import { getClient } from '$lib/client/lemmy.svelte'
import type { Tagline } from 'lemmy-js-client'
import type { Tagline } from '$lib/client/types'
import { Button, toast } from 'mono-svelte'
import { Icon, Plus, Trash } from 'svelte-hero-icons'
import { errorMessage } from '$lib/lemmy/error.js'
+1 -1
View File
@@ -1,6 +1,6 @@
import { postFeed } from '$lib/lemmy/postfeed.svelte.js'
import { settings } from '$lib/settings.svelte'
import type { SortType } from 'lemmy-js-client'
import type { SortType } from '$lib/client/types'
export async function load({ params, fetch, url }) {
const cursor: string | undefined = url.searchParams.get('cursor') as
+1 -1
View File
@@ -1,7 +1,7 @@
import { LINKED_INSTANCE_URL } from '$lib/instance.svelte.js'
import { client } from '$lib/client/lemmy.svelte'
import { ReactiveState } from '$lib/promise.svelte'
import { type ListingType, type SortType } from 'lemmy-js-client'
import { type ListingType, type SortType } from '$lib/client/types'
export async function load({ url, fetch }) {
const typeParam = url.searchParams.get('type')
+1 -1
View File
@@ -4,7 +4,7 @@
CommunityResponse,
CommunityView,
SubscribedType,
} from 'lemmy-js-client'
} from '$lib/client/types'
import { profile } from '$lib/auth.svelte.js'
import { toast } from 'mono-svelte'
import { errorMessage } from '$lib/lemmy/error'
+1 -1
View File
@@ -12,7 +12,7 @@
import { publishedToDate } from '$lib/components/util/date.js'
import RelativeDate from '$lib/components/util/RelativeDate.svelte'
import { t } from '$lib/i18n/translations.js'
import type { Person, PrivateMessageView } from 'lemmy-js-client'
import type { Person, PrivateMessageView } from '$lib/client/types'
import { Button, Modal } from 'mono-svelte'
import { ChatBubbleOvalLeftEllipsis, Icon, Inbox } from 'svelte-hero-icons'
import { expoOut } from 'svelte/easing'
@@ -8,7 +8,7 @@
import { client } from '$lib/client/lemmy.svelte'
import { errorMessage } from '$lib/lemmy/error'
import { settings } from '$lib/settings.svelte'
import type { PrivateMessageResponse } from 'lemmy-js-client'
import type { PrivateMessageResponse } from '$lib/client/types'
import { Button, Material, TextInput, toast } from 'mono-svelte'
import { onDestroy, onMount, tick } from 'svelte'
import {
@@ -3,7 +3,7 @@
import { publishedToDate } from '$lib/components/util/date'
import RelativeDate from '$lib/components/util/RelativeDate.svelte'
import { t } from '$lib/i18n/translations'
import type { PrivateMessageView } from 'lemmy-js-client'
import type { PrivateMessageView } from '$lib/client/types'
import { Button, Menu, MenuButton } from 'mono-svelte'
import { EllipsisVertical, Flag, Icon, Trash } from 'svelte-hero-icons'
+1 -1
View File
@@ -18,7 +18,7 @@ import type {
ModTransferCommunityView,
ModlogActionType,
Person,
} from 'lemmy-js-client'
} from '$lib/client/types'
export type ActionName =
| 'ban'
@@ -11,7 +11,7 @@ import type {
PostView,
CommunityModeratorView,
CommunityView,
} from 'lemmy-js-client'
} from '$lib/client/types'
interface PartialPost {
post_view: PostView
@@ -13,7 +13,7 @@
CommentSortType,
GetCommentsResponse,
PostView,
} from 'lemmy-js-client'
} from '$lib/client/types'
import { Button, Option, Select } from 'mono-svelte'
import { onMount } from 'svelte'
import {
@@ -13,7 +13,7 @@
CommunityBlockView,
InstanceBlockView,
PersonBlockView,
} from 'lemmy-js-client'
} from '$lib/client/types'
import { Button } from 'mono-svelte'
import { Check, Icon, XMark } from 'svelte-hero-icons'
import type { PageData } from './$types.js'
@@ -6,7 +6,7 @@
import SectionTitle from '$lib/components/ui/SectionTitle.svelte'
import { t } from '$lib/i18n/translations.js'
import { getClient, site } from '$lib/client/lemmy.svelte'
import type { SaveUserSettings } from 'lemmy-js-client'
import type { SaveUserSettings } from '$lib/client/types'
import {
Badge,
Button,
+1 -1
View File
@@ -1,6 +1,6 @@
import { getClient } from '$lib/client/lemmy.svelte'
import { getItemPublished } from '$lib/lemmy/item.js'
import type { SortType } from 'lemmy-js-client'
import type { SortType } from '$lib/client/types'
export async function load({ url, fetch, parent }) {
const page = Number(url.searchParams.get('page')) || 1
+1 -1
View File
@@ -9,7 +9,7 @@
import Placeholder from '$lib/components/ui/Placeholder.svelte'
import { t } from '$lib/i18n/translations.js'
import { searchParam } from '$lib/util.svelte.js'
import type { CommentView, PostView } from 'lemmy-js-client'
import type { CommentView, PostView } from '$lib/client/types'
import { Select } from 'mono-svelte'
import Option from 'mono-svelte/forms/select/Option.svelte'
import {
+1 -1
View File
@@ -1,7 +1,7 @@
import { profile } from '$lib/auth.svelte'
import { client } from '$lib/client/lemmy.svelte'
import { error } from '@sveltejs/kit'
import type { CommentView, PostView } from 'lemmy-js-client'
import type { CommentView, PostView } from '$lib/client/types'
function getSavedItemPublished(item: PostView | CommentView) {
if ('comment' in item) {
+1 -1
View File
@@ -3,7 +3,7 @@ import { client, getClient } from '$lib/client/lemmy.svelte'
import { PiefedClient } from '$lib/client/piefed/piefed.js'
import { getItemPublished } from '$lib/lemmy/item.js'
import { ReactiveState } from '$lib/promise.svelte.js'
import type { ListingType, SearchType, SortType } from 'lemmy-js-client'
import type { ListingType, SearchType, SortType } from '$lib/client/types'
export async function load({ url, fetch }) {
const query = url.searchParams.get('q')
+1 -1
View File
@@ -17,7 +17,7 @@
import { t } from '$lib/i18n/translations.js'
import { getClient } from '$lib/client/lemmy.svelte'
import { errorMessage } from '$lib/lemmy/error.js'
import type { GetCaptchaResponse } from 'lemmy-js-client'
import type { GetCaptchaResponse } from '$lib/client/types'
import {
Button,
Checkbox,
+1 -1
View File
@@ -1,7 +1,7 @@
import { getClient } from '$lib/client/lemmy.svelte'
import { getItemPublished } from '$lib/lemmy/item.js'
import { ReactiveState } from '$lib/promise.svelte.js'
import type { SortType } from 'lemmy-js-client'
import type { SortType } from '$lib/client/types'
export async function load({ params, url, fetch }) {
const page = Number(url.searchParams.get('page')) || 1