From 98f6169333449f6625178cf7316a38b1029f8d54 Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Wed, 25 Feb 2026 10:12:13 +0100 Subject: [PATCH] Narrow types for platform utils service (#19196) --- libs/common/src/platform/misc/utils.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/common/src/platform/misc/utils.ts b/libs/common/src/platform/misc/utils.ts index c2d8871c2c9..5590d2e7c3f 100644 --- a/libs/common/src/platform/misc/utils.ts +++ b/libs/common/src/platform/misc/utils.ts @@ -74,7 +74,7 @@ export class Utils { } } - static fromB64ToArray(str: string): Uint8Array { + static fromB64ToArray(str: string): Uint8Array { if (str == null) { return null; } @@ -91,11 +91,11 @@ export class Utils { } } - static fromUrlB64ToArray(str: string): Uint8Array { + static fromUrlB64ToArray(str: string): Uint8Array { return Utils.fromB64ToArray(Utils.fromUrlB64ToB64(str)); } - static fromHexToArray(str: string): Uint8Array { + static fromHexToArray(str: string): Uint8Array { if (Utils.isNode) { return new Uint8Array(Buffer.from(str, "hex")); } else { @@ -107,7 +107,7 @@ export class Utils { } } - static fromUtf8ToArray(str: string): Uint8Array { + static fromUtf8ToArray(str: string): Uint8Array { if (Utils.isNode) { return new Uint8Array(Buffer.from(str, "utf8")); } else { @@ -120,7 +120,7 @@ export class Utils { } } - static fromByteStringToArray(str: string): Uint8Array { + static fromByteStringToArray(str: string): Uint8Array { if (str == null) { return null; }