MCPcopy
hub / github.com/tldraw/tldraw / makeGroupUser

Function makeGroupUser

packages/dotcom-shared/src/mutators.test.ts:70–82  ·  view source on GitHub ↗
(
	overrides: Partial<TlaGroupUser> & { userId: string; groupId: string }
)

Source from the content-addressed store, hash-verified

68}
69
70function makeGroupUser(
71 overrides: Partial<TlaGroupUser> & { userId: string; groupId: string }
72): TlaGroupUser {
73 return {
74 createdAt: 1,
75 updatedAt: 1,
76 role: 'member',
77 userName: 'Test',
78 userColor: '#000',
79 index: 'a1' as IndexKey,
80 ...overrides,
81 }
82}
83
84function makeGroupFile(
85 overrides: Partial<TlaGroupFile> & { fileId: string; groupId: string }

Callers 3

baseStoreFunction · 0.85
mutators.test.tsFile · 0.85
homeStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…