mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
style: restrict type import (#1589)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { config } from '@affine/env';
|
||||
|
||||
import { BlockSuiteWorkspace, Provider } from '../shared';
|
||||
import type { BlockSuiteWorkspace, Provider } from '../shared';
|
||||
import {
|
||||
createAffineWebSocketProvider,
|
||||
createBroadCastChannelProvider,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { assertExists } from '@blocksuite/store';
|
||||
|
||||
import { AffineDownloadProvider, BlockSuiteWorkspace } from '../../../shared';
|
||||
import type { AffineDownloadProvider } from '../../../shared';
|
||||
import { BlockSuiteWorkspace } from '../../../shared';
|
||||
import { apis } from '../../../shared/apis';
|
||||
import { providerLogger } from '../../logger';
|
||||
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
import { assertExists } from '@blocksuite/store';
|
||||
import type { Awareness } from 'y-protocols/awareness';
|
||||
import {
|
||||
applyAwarenessUpdate,
|
||||
Awareness,
|
||||
encodeAwarenessUpdate,
|
||||
} from 'y-protocols/awareness';
|
||||
|
||||
import { BlockSuiteWorkspace, BroadCastChannelProvider } from '../../../shared';
|
||||
import type { BroadCastChannelProvider } from '../../../shared';
|
||||
import { BlockSuiteWorkspace } from '../../../shared';
|
||||
import { providerLogger } from '../../logger';
|
||||
import {
|
||||
import type {
|
||||
AwarenessChanges,
|
||||
BroadcastChannelMessageEvent,
|
||||
getClients,
|
||||
TypedBroadcastChannel,
|
||||
} from './type';
|
||||
import { getClients } from './type';
|
||||
|
||||
export const createBroadCastChannelProvider = (
|
||||
blockSuiteWorkspace: BlockSuiteWorkspace
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Awareness as YAwareness } from 'y-protocols/awareness';
|
||||
import type { Awareness as YAwareness } from 'y-protocols/awareness';
|
||||
|
||||
export type ClientId = YAwareness['clientID'];
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
|
||||
@@ -2,7 +2,7 @@ import { WebsocketProvider } from '@affine/datacenter';
|
||||
import { assertExists } from '@blocksuite/store';
|
||||
import { IndexeddbPersistence } from 'y-indexeddb';
|
||||
|
||||
import {
|
||||
import type {
|
||||
AffineWebSocketProvider,
|
||||
BlockSuiteWorkspace,
|
||||
LocalIndexedDBProvider,
|
||||
|
||||
Reference in New Issue
Block a user