Skip to content

Commit 667cfd8

Browse files
committed
refactor: reorganize example files and enhance type definitions; update WebSocket event handling with type annotations
1 parent 920c114 commit 667cfd8

4 files changed

Lines changed: 7066 additions & 7058 deletions

File tree

examples/Rest/rest-v5-proxies2.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @ts-expect-error-pr
21
import { HttpsProxyAgent } from 'https-proxy-agent';
32

43
import { RestClientV5 } from '../../src/index';

examples/Websocket/Public/ws-public-allLiquidations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
// isWsAllLiquidationEvent,
1212
// } from 'bybit-api';
1313

14-
function onAllLiquidationEvent(event) {
14+
function onAllLiquidationEvent(event: unknown) {
1515
console.log(
1616
new Date(),
1717
'allLiquidationEvent',

examples/Websocket/Public/ws-public-v5.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { DefaultLogger, WebsocketClient, WS_KEY_MAP } from '../../../src';
55

66
const logger = {
77
...DefaultLogger,
8-
trace: (...params) => console.log('trace', ...params),
8+
trace: (...params: any[]) => console.log('trace', ...params),
99
};
1010

1111
/**

0 commit comments

Comments
 (0)