Skip to content

Commit 53b5475

Browse files
committed
fix build issues
1 parent eb930b6 commit 53b5475

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/SignalR/clients/ts/signalr/src/HubConnectionBuilder.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const LogLevelNameMapping = {
2626
none: LogLevel.None,
2727
};
2828

29-
function parseLogLevel(name: keyof typeof LogLevelNameMapping): LogLevel {
29+
function parseLogLevel(name: string): LogLevel {
3030
// Case-insensitive matching via lower-casing
3131
// Yes, I know case-folding is a complicated problem in Unicode, but we only support
3232
// the ASCII strings defined in LogLevelNameMapping anyway, so it's fine -anurse.
@@ -69,7 +69,8 @@ export class HubConnectionBuilder {
6969

7070
/** Configures custom logging for the {@link @aspnet/signalr.HubConnection}.
7171
*
72-
* @param {LogLevel | string | ILogger} logging A {@link @aspnet/signalr.LogLevel}, a string representing a LogLevel, or an object implementing the {@link @aspnet/signalr.ILogger} interface. See {@link https://docs.microsoft.com/en-us/aspnet/core/signalr/configuration#configure-logging|the documentation for client logging configuration} for more details.
72+
* @param {LogLevel | string | ILogger} logging A {@link @aspnet/signalr.LogLevel}, a string representing a LogLevel, or an object implementing the {@link @aspnet/signalr.ILogger} interface.
73+
* See {@link https://docs.microsoft.com/en-us/aspnet/core/signalr/configuration#configure-logging|the documentation for client logging configuration} for more details.
7374
* @returns The {@link @aspnet/signalr.HubConnectionBuilder} instance, for chaining.
7475
*/
7576
public configureLogging(logging: LogLevel | string | ILogger): HubConnectionBuilder {

src/SignalR/clients/ts/signalr/src/Utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ export class SubjectSubscription<T> implements ISubscription<T> {
146146
/** @private */
147147
export class ConsoleLogger implements ILogger {
148148
private readonly minimumLogLevel: LogLevel;
149-
// Public for testing purposes.
149+
150+
// Public for testing purposes.
150151
public outputConsole: {
151152
error(message: any): void,
152153
warn(message: any): void,

0 commit comments

Comments
 (0)