.experimental_caller(experimental_nextAppDirCaller({}))
const nextProcedure = t.procedure .use(tracing({ collectInput: true, collectResult: true })) .use(async ({ ctx, next }) => { // Injecting context const log = ctx.log const start = Date.now() const res = await next({ ctx: { ...ctx, log } }) const duration = Date.now() - start if (res.ok) log.info({ duration, result: res.data }) else log.error({ duration, error: res.error }) return res }) .experimental_caller(experimental_nextAppDirCaller({}))
Argument of type '{}' is not assignable to parameter of type '{ normalizeFormData?: boolean | undefined; onError?: ((opts: ErrorHandlerOptions<{ db: PostgresJsDatabase<{ Post: PgTableWithColumns<{ name: "post"; schema: undefined; columns: { id: PgColumn<{ name: "id"; tableName: "post"; dataType: "string"; columnType: "PgUUID"; ... 5 more ...; baseColumn: never; }, {}, {}>; tit...'. Property 'createContext' is missing in type '{}' but required in type '{ normalizeFormData?: boolean | undefined; onError?: ((opts: ErrorHandlerOptions<{ db: PostgresJsDatabase<{ Post: PgTableWithColumns<{ name: "post"; schema: undefined; columns: { id: PgColumn<{ name: "id"; tableName: "post"; dataType: "string"; columnType: "PgUUID"; ... 5 more ...; baseColumn: never; }, {}, {}>; tit...'.ts(2345) rootConfig.d.ts(76, 5): 'createContext' is declared here.