Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: allow null in several Protomux method options #763

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions types/protomux.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ declare module 'protomux' {
cork(): void
uncork(): void
pair(
opts: { protocol: string; id?: Buffer },
opts: { protocol: string; id?: null | Buffer },
notify: (id: Buffer) => Promise<void>
): void
unpair(opts: { protocol: string; id?: Buffer }): void
opened(opts: { protocol: string; id?: Buffer }): boolean
unpair(opts: { protocol: string; id?: null | Buffer }): void
opened(opts: { protocol: string; id?: null | Buffer }): boolean
createChannel(opts: {
userData?: any
protocol: string
aliases?: string[]
id?: Buffer
id?: null | Buffer
unique?: boolean
handshake?: Encoding
messages: MessageOptions[]
Expand Down
Loading