From: Dmitry Volyntsev Date: Tue, 22 Sep 2026 04:03:48 +0000 (-0700) Subject: Types: declare Buffer swap64 correctly X-Git-Tag: 1.0.2~14 X-Git-Url: https://git.kaiwu.me/?a=commitdiff_plain;h=68a15ee071773fdb4fbd3aa391a5f68cbbc32aaf;p=njs.git Types: declare Buffer swap64 correctly --- diff --git a/ts/njs_core.d.ts b/ts/njs_core.d.ts index f64c9576..3e288014 100644 --- a/ts/njs_core.d.ts +++ b/ts/njs_core.d.ts @@ -380,7 +380,7 @@ declare class Buffer extends Uint8Array { * * @throws {RangeError} if `buf.length` is not a multiple of 8. */ - swap32(): Buffer; + swap64(): Buffer; /** * Returns a JSON representation of this buffer. `JSON.stringify()` implicitly calls this