MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / serializeUser

Function serializeUser

packages/serializers/src/user.ts:12–24  ·  view source on GitHub ↗
(user: users)

Source from the content-addressed store, hash-verified

10}
11
12export function serializeUser(user: users): SerializedUser {
13 return {
14 id: user.id,
15 authsId: user.authsId,
16 username: username(user.displayName),
17 externalUserId: user.externalUserId,
18 displayName: user.displayName,
19 profileImageUrl: user.profileImageUrl,
20 anonymousAlias: user.anonymousAlias,
21 role: user.role as Roles,
22 search: tc(() => JSON.parse(user.searchSettings!)),
23 };
24}

Callers 4

serializeMentionsFunction · 0.90
serializeMessageFunction · 0.90
getMethod · 0.90
index.tsFile · 0.90

Calls 2

tcFunction · 0.90
usernameFunction · 0.85

Tested by

no test coverage detected