Fix typos in TypeScript definition file (#234)

This commit is contained in:
Chafik 2019-12-05 21:33:57 +01:00 committed by Alex Hultman
parent d9c86f3e93
commit 4598edf4da

4
docs/index.d.ts vendored
View File

@ -16,10 +16,10 @@ interface WebSocket {
/** Returns the bytes buffered in backpressure. */ /** Returns the bytes buffered in backpressure. */
getBufferedAmount() : number; getBufferedAmount() : number;
/** Gradefully closes this WebSocket. Immediately calls close handler. */ /** Gracefully closes this WebSocket. Immediately calls close handler. */
end(code?: number, shortMessage?: RecognizedString) : WebSocket; end(code?: number, shortMessage?: RecognizedString) : WebSocket;
/** Forefully closes this WebSocket. Immediately calls close handler. */ /** Forcefully closes this WebSocket */
close() : WebSocket; close() : WebSocket;
/** Subscribe to a topic in MQTT syntax */ /** Subscribe to a topic in MQTT syntax */