chore: Fix TypeScript errors 2/n.

This commit is contained in:
cpojer
2026-01-31 16:42:40 +09:00
parent e5eb9610dc
commit 952b0f8c48
8 changed files with 21 additions and 19 deletions

View File

@@ -167,7 +167,7 @@ async function resolveSessionKeyFromSessionId(params: {
}): Promise<SessionReferenceResolution> {
try {
// Resolve via gateway so we respect store routing and visibility rules.
const result = await callGateway({
const result = await callGateway<{ key?: string }>({
method: "sessions.resolve",
params: {
sessionId: params.sessionId,
@@ -220,7 +220,7 @@ async function resolveSessionKeyFromKey(params: {
}): Promise<SessionReferenceResolution | null> {
try {
// Try key-based resolution first so non-standard keys keep working.
const result = await callGateway({
const result = await callGateway<{ key?: string }>({
method: "sessions.resolve",
params: {
key: params.key,