We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5ef4ee commit 4803ffdCopy full SHA for 4803ffd
src/index.ts
@@ -1,9 +1,10 @@
1
import type { ConnectionEncrypter } from '@libp2p/interface-connection-encrypter'
2
import { Noise } from './noise.js'
3
import type { NoiseInit } from './noise.js'
4
+import type { NoiseExtensions } from './proto/payload.js'
5
export * from './crypto.js'
6
export * from './crypto/stablelib.js'
7
-export function noise (init: NoiseInit = {}): () => ConnectionEncrypter {
8
+export function noise (init: NoiseInit = {}): () => ConnectionEncrypter<NoiseExtensions> {
9
return () => new Noise(init)
10
}
0 commit comments