diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-18 14:29:17 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-18 14:29:17 +0900 |
| commit | 683e5b6abec93f2883c4d4dafc130e2a079f3dda (patch) | |
| tree | 7e33359214ae08e83b2dadb92bca249050fb0348 /test/utils.ts | |
| parent | スプラッシュがクリックに反応するように (#4561) (diff) | |
| download | sharkey-683e5b6abec93f2883c4d4dafc130e2a079f3dda.tar.gz sharkey-683e5b6abec93f2883c4d4dafc130e2a079f3dda.tar.bz2 sharkey-683e5b6abec93f2883c4d4dafc130e2a079f3dda.zip | |
Add type annotations
Diffstat (limited to 'test/utils.ts')
| -rw-r--r-- | test/utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/utils.ts b/test/utils.ts index fbba9a68c9..f67baf0048 100644 --- a/test/utils.ts +++ b/test/utils.ts @@ -76,7 +76,7 @@ export const uploadFile = (user: any, path?: string): Promise<any> => new Promis }); }); -export function connectStream(user: any, channel: string, listener: any, params?: any): Promise<WebSocket> { +export function connectStream(user: any, channel: string, listener: (message: Record<string, any>) => any, params?: any): Promise<WebSocket> { return new Promise((res, rej) => { const ws = new WebSocket(`ws://localhost/streaming?i=${user.token}`); |