Skip to content

Commit c10fe07

Browse files
refactor(eio-client): improve JSDoc documentation
1 parent 9349b14 commit c10fe07

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/engine.io-client/lib/socket.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ export class SocketWithoutUpgrade extends Emitter<
795795
/**
796796
* Sends a packet.
797797
*
798-
* @param {String} type: packet type.
798+
* @param {String} type - packet type.
799799
* @param {String} data.
800800
* @param {Object} options.
801801
* @param {Function} fn - callback function.

packages/engine.io-client/lib/transports/polling-xhr.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ export abstract class BaseXHR extends Polling {
5252
/**
5353
* Sends data.
5454
*
55-
* @param {String} data to send.
56-
* @param {Function} called upon flush.
55+
* @param {String} data - data to send.
56+
* @param {Function} fn - called upon flush.
5757
* @private
5858
*/
59-
override doWrite(data, fn) {
59+
override doWrite(data: string, fn: () => void) {
6060
const req = this.request({
6161
method: "POST",
6262
data: data,

0 commit comments

Comments
 (0)