createTLUser

See source code
function createTLUser(opts?: {
  setUserPreferences?:
    | ((userPreferences: TLUserPreferences) => void)
    | undefined
  userPreferences?: Signal<TLUserPreferences, unknown> | undefined
}): TLUser

Parameters

NameDescription

opts

{
  setUserPreferences?:
    | ((userPreferences: TLUserPreferences) => void)
    | undefined
  userPreferences?:
    | Signal<TLUserPreferences, unknown>
    | undefined
}

Returns

Prev
createTLStore
Next
dataUrlToFile