Function: createThread()

createThread(args): Promise<object & object>

Starts a new discussion thread.

Threads allow collaborators to attach comments to a specific version or entity. Initial comments can be provided and will be inserted sequentially.

Parameters

args

comments?

Pick<NewState<ThreadComment>, "body">[]

id?

string

lix

Lix

versionId?

string

defaults to global

Returns

Promise<object & object>

Example

const thread = await createThread({ lix, comments: [{ body: "Hello" }] })