MCPcopy
hub / github.com/tldraw/tldraw / makeUser

Function makeUser

packages/dotcom-shared/src/mutators.test.ts:18–46  ·  view source on GitHub ↗
(overrides: Partial<TlaUser> & { id: string })

Source from the content-addressed store, hash-verified

16// ---- helpers ----
17
18function makeUser(overrides: Partial<TlaUser> & { id: string }): TlaUser {
19 return {
20 name: 'Test',
21 email: 'test@test.com',
22 avatar: '',
23 color: '#000',
24 exportFormat: 'png',
25 exportTheme: 'auto',
26 exportBackground: true,
27 exportPadding: true,
28 createdAt: 1,
29 updatedAt: 1,
30 flags: 'groups_backend',
31 locale: null,
32 animationSpeed: null,
33 areKeyboardShortcutsEnabled: null,
34 edgeScrollSpeed: null,
35 colorScheme: null,
36 isSnapMode: null,
37 isWrapMode: null,
38 isDynamicSizeMode: null,
39 isPasteAtCursorMode: null,
40 inputMode: null,
41 enhancedA11yMode: null,
42 isZoomDirectionInverted: null,
43 allowAnalyticsCookie: null,
44 ...overrides,
45 }
46}
47
48function makeFile(overrides: Partial<TlaFile> & { id: string }): TlaFile {
49 return {

Callers 3

mutators.test.tsFile · 0.85
baseStoreFunction · 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…