]> git.kaiwu.me - njs.git/commitdiff
Types: declare Buffer swap64 correctly
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 22 Sep 2026 04:03:48 +0000 (21:03 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Fri, 25 Sep 2026 23:00:29 +0000 (16:00 -0700)
ts/njs_core.d.ts

index f64c9576cf603795690654e5fc8be308302d3ede..3e28801461169defd19e91c01d1e5363b216cd8f 100644 (file)
@@ -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