diff --git a/src/local-peers.js b/src/local-peers.js index bb992399..e648ecd8 100644 --- a/src/local-peers.js +++ b/src/local-peers.js @@ -13,6 +13,7 @@ import { import pDefer from 'p-defer' import { Logger } from './logger.js' import pTimeout, { TimeoutError } from 'p-timeout' +/** @import NoiseStream from '@hyperswarm/secret-stream' */ /** @import { OpenedNoiseStream } from './lib/noise-secret-stream-helpers.js' */ // Unique identifier for the mapeo rpc protocol @@ -329,7 +330,7 @@ export class LocalPeers extends TypedEmitter { /** * Connect to a peer over an existing NoiseSecretStream * - * @param {import('./types.js').NoiseStream} stream a NoiseSecretStream from @hyperswarm/secret-stream + * @param {NoiseStream} stream * @returns {import('./types.js').ReplicationStream} */ connect(stream) { diff --git a/src/types.ts b/src/types.ts index 48d94b58..41bc0640 100644 --- a/src/types.ts +++ b/src/types.ts @@ -133,7 +133,6 @@ export type HypercorePeer = { onrange: (options: { drop: boolean; start: number; length: number }) => void } -export { NoiseStream } type ProtocolStream = Omit & { userData: Protomux }