Skip to content

Commit c05ce69

Browse files
committed
refactor: add type hints to reconstructPacket
1 parent 747d7e0 commit c05ce69

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/binary.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ function _deconstructPacket(data, buffers) {
5151
* @public
5252
*/
5353

54-
export function reconstructPacket(packet, buffers) {
54+
export function reconstructPacket(packet, buffers: Array<any>) {
5555
packet.data = _reconstructPacket(packet.data, buffers);
5656
packet.attachments = undefined; // no longer useful
5757
return packet;
5858
}
5959

60-
function _reconstructPacket(data, buffers) {
60+
function _reconstructPacket(data, buffers: Array<any>) {
6161
if (!data) return data;
6262

6363
if (data && data._placeholder) {

0 commit comments

Comments
 (0)