Skip to content

Commit

Permalink
chore: add TypeScript definitions for BigInt
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Oct 19, 2022
1 parent 131ad32 commit 78c5ff4
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions BufferList.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,42 @@ interface BufferList {

readFloatLE: Buffer['readFloatLE'];

/**
* All of the standard byte-reading methods of the Buffer interface are implemented and will operate across internal Buffer boundaries transparently.
* See the [Buffer](http://nodejs.org/docs/latest/api/buffer.html) documentation for how these work.
*
* @param offset
*/

readBigInt64BE: Buffer['readBigInt64BE'];

/**
* All of the standard byte-reading methods of the Buffer interface are implemented and will operate across internal Buffer boundaries transparently.
* See the [Buffer](http://nodejs.org/docs/latest/api/buffer.html) documentation for how these work.
*
* @param offset
*/

readBigInt64LE: Buffer['readBigInt64LE'];

/**
* All of the standard byte-reading methods of the Buffer interface are implemented and will operate across internal Buffer boundaries transparently.
* See the [Buffer](http://nodejs.org/docs/latest/api/buffer.html) documentation for how these work.
*
* @param offset
*/

readBigUInt64BE: Buffer['readBigUInt64BE'];

/**
* All of the standard byte-reading methods of the Buffer interface are implemented and will operate across internal Buffer boundaries transparently.
* See the [Buffer](http://nodejs.org/docs/latest/api/buffer.html) documentation for how these work.
*
* @param offset
*/

readBigUInt64LE: Buffer['readBigUInt64LE'];

/**
* All of the standard byte-reading methods of the Buffer interface are implemented and will operate across internal Buffer boundaries transparently.
* See the [Buffer](http://nodejs.org/docs/latest/api/buffer.html) documentation for how these work.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"lint": "standard *.js test/*.js",
"test": "npm run lint && npm run test:types && node test/test.js | faucet",
"test:ci": "npm run lint && node test/test.js && npm run test:types",
"test:types": "tsc --allowJs --noEmit test/test.js",
"test:types": "tsc --target esnext --moduleResolution node --allowJs --noEmit test/test.js",
"build": "true"
},
"repository": {
Expand Down

0 comments on commit 78c5ff4

Please sign in to comment.