chore: enable no-unnecessary-type-arguments

This commit is contained in:
Peter Steinberger
2026-04-10 20:12:12 +01:00
parent 2786ed0f67
commit 04c8026d03
39 changed files with 90 additions and 140 deletions

View File

@@ -159,7 +159,7 @@ export class OpenClawChannelBridge {
includeLastMessage?: boolean;
}): Promise<ConversationDescriptor[]> {
await this.waitUntilReady();
const response = await this.requestGateway<SessionListResult>("sessions.list", {
const response: SessionListResult = await this.requestGateway("sessions.list", {
limit: params?.limit ?? 50,
search: params?.search,
includeDerivedTitles: params?.includeDerivedTitles ?? true,
@@ -192,7 +192,7 @@ export class OpenClawChannelBridge {
limit = 20,
): Promise<NonNullable<ChatHistoryResult["messages"]>> {
await this.waitUntilReady();
const response = await this.requestGateway<ChatHistoryResult>("chat.history", {
const response: ChatHistoryResult = await this.requestGateway("chat.history", {
sessionKey,
limit,
});