MCPcopy Create free account
hub / github.com/msgbyte/tailchat / isValidStr

Function isValidStr

client/shared/utils/string-helper.ts:47–49  ·  view source on GitHub ↗
(str: unknown)

Source from the content-addressed store, hash-verified

45 * 定义为有长度的字符串
46 */
47export function isValidStr(str: unknown): str is string {
48 return typeof str == 'string' && str !== '';
49}
50
51export function isLocalMessageId(str: unknown): boolean {
52 if (typeof str !== 'string') {

Callers 15

parseColorSchemeFunction · 0.90
appendConverseMessageFunction · 0.90
useConverseAckFunction · 0.90
useIsGroupOwnerFunction · 0.90
useFriendNicknameFunction · 0.90
useDMConverseNameFunction · 0.50
useConverseMessageFunction · 0.50
getDMConverseNameFunction · 0.50
Item.tsxFile · 0.50
index.tsxFile · 0.50
IconBtn.tsxFile · 0.50
UserName.tsxFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected