import Koa from 'koa'; import { Database } from '@nocobase/database'; import { Action } from '@nocobase/resourcer'; export type Next = () => Promise; export interface Context extends Koa.Context { db: Database; action: Action; body: any; [key: string]: any; } export function registerActions(api: any) {} export default {};