From ce5690e25cb53392b74729dcb9bd032c610f76a2 Mon Sep 17 00:00:00 2001 From: chenos Date: Mon, 22 Feb 2021 11:20:27 +0800 Subject: [PATCH] fix: error TS2339: Property 'rows' does not exist on type 'unknown'. --- packages/actions/src/actions/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/actions/src/actions/index.ts b/packages/actions/src/actions/index.ts index 73bfb5dfa..493d5db5e 100644 --- a/packages/actions/src/actions/index.ts +++ b/packages/actions/src/actions/index.ts @@ -4,7 +4,7 @@ import { Action } from '@nocobase/resourcer'; export type Next = () => Promise; -export type Context = Koa.Context & { +export interface Context extends Koa.Context { db: Database; action: Action; };