refactor: introduce type-only imports (#5462)
This commit is contained in:
committed by
GitHub
parent
e4a29d5991
commit
fc07ce6854
@ -1,4 +1,5 @@
|
||||
import { asyncLock, AsyncLock } from './asyncLock';
|
||||
import type { AsyncLock } from './asyncLock';
|
||||
import { asyncLock } from './asyncLock';
|
||||
import unsentRequest from './unsentRequest';
|
||||
import APIError from './APIError';
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
import { filter, flow, fromPairs, map } from 'lodash/fp';
|
||||
import getBlobSHA from './getBlobSHA';
|
||||
import { AssetProxy } from './implementation';
|
||||
import type { AssetProxy } from './implementation';
|
||||
|
||||
export interface PointerFile {
|
||||
size: number;
|
||||
|
@ -1,8 +1,9 @@
|
||||
import semaphore, { Semaphore } from 'semaphore';
|
||||
import type { Semaphore } from 'semaphore';
|
||||
import semaphore from 'semaphore';
|
||||
import { unionBy, sortBy } from 'lodash';
|
||||
import Cursor from './Cursor';
|
||||
import { AsyncLock } from './asyncLock';
|
||||
import { FileMetadata } from './API';
|
||||
import type Cursor from './Cursor';
|
||||
import type { AsyncLock } from './asyncLock';
|
||||
import type { FileMetadata } from './API';
|
||||
import { basename } from './path';
|
||||
|
||||
export type DisplayURLObject = { id: string; path: string };
|
||||
|
@ -16,8 +16,9 @@ import {
|
||||
} from './backendUtil';
|
||||
import loadScript from './loadScript';
|
||||
import getBlobSHA from './getBlobSHA';
|
||||
import { asyncLock, AsyncLock as AL } from './asyncLock';
|
||||
import {
|
||||
import type { AsyncLock as AL } from './asyncLock';
|
||||
import { asyncLock } from './asyncLock';
|
||||
import type {
|
||||
Implementation as I,
|
||||
ImplementationEntry as IE,
|
||||
UnpublishedEntryDiff as UED,
|
||||
@ -31,26 +32,27 @@ import {
|
||||
Entry as E,
|
||||
PersistOptions as PO,
|
||||
AssetProxy as AP,
|
||||
Config as C,
|
||||
UnpublishedEntryMediaFile as UEMF,
|
||||
DataFile as DF,
|
||||
} from './implementation';
|
||||
import {
|
||||
entriesByFiles,
|
||||
entriesByFolder,
|
||||
unpublishedEntries,
|
||||
getMediaDisplayURL,
|
||||
getMediaAsBlob,
|
||||
runWithLock,
|
||||
Config as C,
|
||||
UnpublishedEntryMediaFile as UEMF,
|
||||
blobToFileObj,
|
||||
allEntriesByFolder,
|
||||
DataFile as DF,
|
||||
} from './implementation';
|
||||
import type { FetchError as FE, ApiRequest as AR } from './API';
|
||||
import {
|
||||
readFile,
|
||||
readFileMetadata,
|
||||
isPreviewContext,
|
||||
getPreviewStatus,
|
||||
PreviewState,
|
||||
FetchError as FE,
|
||||
ApiRequest as AR,
|
||||
requestWithBackoff,
|
||||
throwOnConflictingBranches,
|
||||
} from './API';
|
||||
@ -66,13 +68,13 @@ import {
|
||||
branchFromContentKey,
|
||||
contentKeyFromBranch,
|
||||
} from './APIUtils';
|
||||
import type { PointerFile as PF } from './git-lfs';
|
||||
import {
|
||||
createPointerFile,
|
||||
getLargeMediaFilteredMediaFiles,
|
||||
getLargeMediaPatternsFromGitAttributesFile,
|
||||
parsePointerFile,
|
||||
getPointerFileForMediaFileObj,
|
||||
PointerFile as PF,
|
||||
} from './git-lfs';
|
||||
|
||||
export type AsyncLock = AL;
|
||||
|
Reference in New Issue
Block a user