From 1f418e61aa79fdb13bd96fb5813a1d2baace055d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Mon, 25 Nov 2024 13:15:02 +0100 Subject: [PATCH] pl-fe: import some types as types only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-fe/src/reducers/compose.ts | 4 ++-- packages/pl-fe/src/reducers/draft-statuses.ts | 2 +- packages/pl-fe/src/reducers/instance.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/pl-fe/src/reducers/compose.ts b/packages/pl-fe/src/reducers/compose.ts index c57bb27e3..d68a931bb 100644 --- a/packages/pl-fe/src/reducers/compose.ts +++ b/packages/pl-fe/src/reducers/compose.ts @@ -1,7 +1,7 @@ import { create } from 'mutative'; import { type CredentialAccount, type Instance, type MediaAttachment, type Tag } from 'pl-api'; -import { INSTANCE_FETCH_SUCCESS, InstanceAction } from 'pl-fe/actions/instance'; +import { INSTANCE_FETCH_SUCCESS, type InstanceAction } from 'pl-fe/actions/instance'; import { isNativeEmoji, type Emoji } from 'pl-fe/features/emoji'; import { tagHistory } from 'pl-fe/settings'; @@ -62,7 +62,7 @@ import { type ComposeSuggestionSelectAction, } from '../actions/compose'; import { EVENT_COMPOSE_CANCEL, EVENT_FORM_SET, type EventsAction } from '../actions/events'; -import { ME_FETCH_SUCCESS, ME_PATCH_SUCCESS, MeAction } from '../actions/me'; +import { ME_FETCH_SUCCESS, ME_PATCH_SUCCESS, type MeAction } from '../actions/me'; import { FE_NAME } from '../actions/settings'; import { TIMELINE_DELETE, type TimelineAction } from '../actions/timelines'; import { unescapeHTML } from '../utils/html'; diff --git a/packages/pl-fe/src/reducers/draft-statuses.ts b/packages/pl-fe/src/reducers/draft-statuses.ts index 7df0ffbdc..4f71e9543 100644 --- a/packages/pl-fe/src/reducers/draft-statuses.ts +++ b/packages/pl-fe/src/reducers/draft-statuses.ts @@ -3,7 +3,7 @@ import { mediaAttachmentSchema } from 'pl-api'; import * as v from 'valibot'; import { COMPOSE_SUBMIT_SUCCESS, type ComposeAction } from 'pl-fe/actions/compose'; -import { DRAFT_STATUSES_FETCH_SUCCESS, PERSIST_DRAFT_STATUS, CANCEL_DRAFT_STATUS, DraftStatusesAction } from 'pl-fe/actions/draft-statuses'; +import { DRAFT_STATUSES_FETCH_SUCCESS, PERSIST_DRAFT_STATUS, CANCEL_DRAFT_STATUS, type DraftStatusesAction } from 'pl-fe/actions/draft-statuses'; import { filteredArray } from 'pl-fe/schemas/utils'; import KVStore from 'pl-fe/storage/kv-store'; diff --git a/packages/pl-fe/src/reducers/instance.ts b/packages/pl-fe/src/reducers/instance.ts index f23b44462..a208cbeed 100644 --- a/packages/pl-fe/src/reducers/instance.ts +++ b/packages/pl-fe/src/reducers/instance.ts @@ -3,7 +3,7 @@ import { type Instance, instanceSchema, PleromaConfig } from 'pl-api'; import * as v from 'valibot'; import { ADMIN_CONFIG_UPDATE_REQUEST, ADMIN_CONFIG_UPDATE_SUCCESS } from 'pl-fe/actions/admin'; -import { INSTANCE_FETCH_FAIL, INSTANCE_FETCH_SUCCESS, InstanceAction } from 'pl-fe/actions/instance'; +import { INSTANCE_FETCH_FAIL, INSTANCE_FETCH_SUCCESS, type InstanceAction } from 'pl-fe/actions/instance'; import { PLEROMA_PRELOAD_IMPORT, type PreloadAction } from 'pl-fe/actions/preload'; import KVStore from 'pl-fe/storage/kv-store'; import ConfigDB from 'pl-fe/utils/config-db';