Skip to main content

Class: abstract BaseChatStore<AdditionalMessageOptions>

Extended by

Type Parameters

AdditionalMessageOptions extends object = object

Constructors

new BaseChatStore()

new BaseChatStore<AdditionalMessageOptions>(): BaseChatStore<AdditionalMessageOptions>

Returns

BaseChatStore<AdditionalMessageOptions>

Methods

addMessage()

abstract addMessage(key, message, idx?): void

Parameters

key: string

message: ChatMessage<AdditionalMessageOptions>

idx?: number

Returns

void

Defined in

packages/core/storage/chat-store/dist/storage/chat-store/index.d.ts:6


deleteMessage()

abstract deleteMessage(key, idx): void

Parameters

key: string

idx: number

Returns

void

Defined in

packages/core/storage/chat-store/dist/storage/chat-store/index.d.ts:8


deleteMessages()

abstract deleteMessages(key): void

Parameters

key: string

Returns

void

Defined in

packages/core/storage/chat-store/dist/storage/chat-store/index.d.ts:7


getKeys()

abstract getKeys(): IterableIterator<string, any, any>

Returns

IterableIterator<string, any, any>

Defined in

packages/core/storage/chat-store/dist/storage/chat-store/index.d.ts:9


getMessages()

abstract getMessages(key): ChatMessage<AdditionalMessageOptions>[]

Parameters

key: string

Returns

ChatMessage<AdditionalMessageOptions>[]

Defined in

packages/core/storage/chat-store/dist/storage/chat-store/index.d.ts:5


setMessages()

abstract setMessages(key, messages): void

Parameters

key: string

messages: ChatMessage<AdditionalMessageOptions>[]

Returns

void

Defined in

packages/core/storage/chat-store/dist/storage/chat-store/index.d.ts:4