gwilliamnnG
Convex Community8mo ago
6 replies
gwilliamnn

Type error using ActoinCache

mport { ActionCache } from "@convex-dev/action-cache";
import { components, internal } from "./_generated/api";
import { action } from "./_generated/server";

export const getAgjdbArqatendCached = new ActionCache(components.actionCache, {
  name: "getAgjdbArqatend",
  action: internal.actions.internal.getAgjdbArqatendInternal
})

export const getAgjdbArqatendCachedAction = action({
  handler: async (ctx): Promise<string> => {
    return await getAgjdbArqatendCached.fetch(ctx, {});
  }
})


'getAgjdbArqatendCached' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.ts(7022)

Some one can help me to understand this error?

On the backend the function is working, but that type error is anoying
Cursor_2025-05-31_14.09.43.png
Was this page helpful?