From 7c4eec98f69e37db3db3e29e2d37c01cb0f991fe Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Fri, 11 Aug 2023 16:04:34 +0800 Subject: [PATCH] style: change isLocalMessageId return data type --- client/shared/utils/string-helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/shared/utils/string-helper.ts b/client/shared/utils/string-helper.ts index ddf46557..a80f83d8 100644 --- a/client/shared/utils/string-helper.ts +++ b/client/shared/utils/string-helper.ts @@ -48,7 +48,7 @@ export function isValidStr(str: unknown): str is string { return typeof str == 'string' && str !== ''; } -export function isLocalMessageId(str: unknown): str is string { +export function isLocalMessageId(str: unknown): boolean { if (typeof str !== 'string') { return false; }