From 78911330025524a38890f48a0ecba79e773bc5e7 Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Thu, 9 Jul 2026 12:26:56 +0000 Subject: [PATCH] fix remaining type imports preventing docker container from running with tsx --- src/client/components/ActivityDetail.tsx | 4 ++-- src/client/components/CodeBlock.tsx | 2 +- src/client/components/diffs/JsonDiff.tsx | 4 ++-- src/core/Atomic.ts | 2 +- src/core/ErrorUtils.ts | 2 +- src/core/PlayMarshalUtils.ts | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/client/components/ActivityDetail.tsx b/src/client/components/ActivityDetail.tsx index 8c3ac6e8..87a0879c 100644 --- a/src/client/components/ActivityDetail.tsx +++ b/src/client/components/ActivityDetail.tsx @@ -3,8 +3,8 @@ import { useSSEContext, useSSEEvent } from "@flamefrontend/sse-runtime-react"; import { useQuery, useQueryClient, type InfiniteData } from '@tanstack/react-query'; import React, { Fragment, useEffect, useState } from "react"; import { LuChevronRight } from "react-icons/lu"; -import { type MarkOptional } from "ts-essentials"; -import { type MsSseEvent, type PaginatedResponse, type PlayApiCommonDetailed, type QueryPlaysOptsJson, type SortPlaysByProps } from "../../core/Api"; +import type { MarkOptional } from "ts-essentials"; +import type { MsSseEvent, PaginatedResponse, PlayApiCommonDetailed, QueryPlaysOptsJson, SortPlaysByProps } from "../../core/Api"; import { CLIENT_DEAD_QUEUE, type ComponentType, type Second } from "../../core/Atomic"; import { tanQueries } from "../queries"; import { activityTimelineHasIssue } from "../utils/ComponentUtils"; diff --git a/src/client/components/CodeBlock.tsx b/src/client/components/CodeBlock.tsx index c303833b..fc904904 100644 --- a/src/client/components/CodeBlock.tsx +++ b/src/client/components/CodeBlock.tsx @@ -1,6 +1,6 @@ import { ClientOnly, CodeBlock, IconButton } from "@chakra-ui/react"; import { type ComponentProps, useMemo } from "react"; -import { type MarkOptional } from "ts-essentials"; +import type { MarkOptional } from "ts-essentials"; import { safeStringify } from "../../core/StringUtils"; import { shikiAdapter } from "./shikiAdapter"; diff --git a/src/client/components/diffs/JsonDiff.tsx b/src/client/components/diffs/JsonDiff.tsx index a8a03b49..bbf5cdf7 100644 --- a/src/client/components/diffs/JsonDiff.tsx +++ b/src/client/components/diffs/JsonDiff.tsx @@ -7,8 +7,8 @@ import { type FileDiffProps, FileDiff, } from '@pierre/diffs/react'; -import { type MarkRequired } from 'ts-essentials'; -import { type Changeset } from 'json-diff-ts'; +import type { MarkRequired } from 'ts-essentials'; +import type { Changeset } from 'json-diff-ts'; import { MSErrorBoundary } from '../ErrorBoundary'; import { patchObject } from "../../../core/DataUtils"; diff --git a/src/core/Atomic.ts b/src/core/Atomic.ts index 30d5d84b..06953e77 100644 --- a/src/core/Atomic.ts +++ b/src/core/Atomic.ts @@ -1,6 +1,6 @@ import type { Dayjs } from "dayjs"; import type { AdditionalTrackInfoResponse } from "../backend/common/vendor/listenbrainz/interfaces.ts"; -import { type Merge, type RequiredKeys, type StrictOmit } from "ts-essentials"; +import type { Merge, RequiredKeys, StrictOmit } from "ts-essentials"; import { type ErrorObject } from "serialize-error"; import type { FlowControlTerm, TransformHook } from "../backend/common/infrastructure/Transform.ts"; import { type Changeset } from "json-diff-ts"; diff --git a/src/core/ErrorUtils.ts b/src/core/ErrorUtils.ts index 703e0e20..e684e85e 100644 --- a/src/core/ErrorUtils.ts +++ b/src/core/ErrorUtils.ts @@ -1,4 +1,4 @@ -import { type MarkOptional } from "ts-essentials"; +import type { MarkOptional } from "ts-essentials"; import { truncateStringToLength } from "./StringUtils.ts"; import { type ErrorLike, isErrorLike } from 'serialize-error'; diff --git a/src/core/PlayMarshalUtils.ts b/src/core/PlayMarshalUtils.ts index dff58c50..51466fa6 100644 --- a/src/core/PlayMarshalUtils.ts +++ b/src/core/PlayMarshalUtils.ts @@ -5,7 +5,7 @@ import { ListenRange } from '../backend/sources/PlayerState/ListenRange.ts'; import { type AmbPlayObject, type DateLike, type JsonPlayObject, type PlayObject, REGEX_ISO8601_LOOSE, type Replace } from './Atomic.ts'; import type { ElementOf, MarkOptional } from 'ts-essentials'; import { type ErrorObject, serializeError } from 'serialize-error'; -import { type PlayApiCommonDetailed } from './Api.ts'; +import type { PlayApiCommonDetailed } from './Api.ts'; interface BlockPath { key: string, parent: string }; type BlockPaths = BlockPath[]; -- 2.51.2