From 0a788cc2c4c5d7d726a246ce18872dbc0e16b5d7 Mon Sep 17 00:00:00 2001 From: Meena Alfons Date: Fri, 1 Dec 2023 15:00:13 +0100 Subject: [PATCH] npm run format --- src/core/auth/options.ts | 6 ++++-- src/core/config.ts | 10 ++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/core/auth/options.ts b/src/core/auth/options.ts index da0eaf29..530f42cc 100644 --- a/src/core/auth/options.ts +++ b/src/core/auth/options.ts @@ -62,9 +62,11 @@ export interface InternalAuthOptions { export type CustomAuthOptions = { customHandler: AuthHandler; -} +}; -export type AuthOptionsT = InternalAuthOptions | CustomAuthOptions +export type AuthOptionsT = + | InternalAuthOptions + | CustomAuthOptions; export declare type UserAuthenticationOptions = AuthOptionsT< UserAuthenticationHandler diff --git a/src/core/config.ts b/src/core/config.ts index acfa5df8..d3b367d5 100644 --- a/src/core/config.ts +++ b/src/core/config.ts @@ -133,9 +133,11 @@ function getEnableStatsConfig(opts: Options): boolean { return false; } -const hasCustomHandler = (auth: AuthOptionsT): auth is CustomAuthOptions => { - return 'customHandler' in auth && auth['customHandler'] != null; -} +const hasCustomHandler = ( + auth: AuthOptionsT +): auth is CustomAuthOptions => { + return 'customHandler' in auth && auth['customHandler'] != null; +}; function buildUserAuthenticator(opts: Options): UserAuthenticationHandler { const userAuthentication = { @@ -176,7 +178,7 @@ function buildChannelAuth(opts: Options, pusher): ChannelAuthorizationOptions { channelAuthorization, opts.authorizer ) - } + }; } } return channelAuthorization;