docs(client): document trajectory conversation assembly
This commit is contained in:
@@ -116,7 +116,7 @@ export interface ConversationViewSnapshotMap {}
|
||||
/** Stable reader over the latest snapshot of every registered view target. */
|
||||
export interface ConversationViewSnapshotStore {
|
||||
/** @param target - registered view target. @returns its current snapshot. */
|
||||
get<Target extends keyof ConversationViewSnapshotMap & string>(
|
||||
get<Target extends Extract<keyof ConversationViewSnapshotMap, string>>(
|
||||
target: Target,
|
||||
): ConversationViewSnapshotMap[Target] | undefined
|
||||
}
|
||||
|
||||
@@ -324,7 +324,7 @@ export class ConversationNodeAssembler implements ConversationViewSnapshotStore
|
||||
return this.views.get(target)?.snapshot
|
||||
}
|
||||
|
||||
get<Target extends keyof ConversationViewSnapshotMap & string>(
|
||||
get<Target extends Extract<keyof ConversationViewSnapshotMap, string>>(
|
||||
target: Target,
|
||||
): ConversationViewSnapshotMap[Target] | undefined {
|
||||
return this.snapshot(target) as ConversationViewSnapshotMap[Target] | undefined
|
||||
|
||||
Reference in New Issue
Block a user