introduce eslint
This commit is contained in:
parent
0616534af7
commit
677ed40b40
7 changed files with 1620 additions and 15 deletions
|
|
@ -4,7 +4,7 @@ import ReconnectingWebsocket from 'reconnecting-websocket';
|
|||
import { stringify } from 'querystring';
|
||||
import { BroadcastEvents, Channels } from './streaming.types';
|
||||
|
||||
function urlQuery(obj: {}): string {
|
||||
function urlQuery(obj: Record<string, unknown>): string {
|
||||
return stringify(Object.entries(obj)
|
||||
.filter(([, v]) => Array.isArray(v) ? v.length : v !== undefined)
|
||||
.reduce((a, [k, v]) => (a[k] = v, a), {} as Record<string, any>));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue