mirror of
https://github.com/strapi/strapi.git
synced 2025-08-13 11:17:42 +00:00
Update ControllerHandler return type to accept void
This commit is contained in:
parent
f1593c2dde
commit
b30a3b426f
@ -3,6 +3,6 @@ import type koa from 'koa';
|
||||
export type ControllerHandler = <T>(
|
||||
context: koa.ExtendableContext,
|
||||
next: koa.Next
|
||||
) => Promise<T> | T;
|
||||
) => Promise<T | void> | T | void;
|
||||
|
||||
export type Controller = Record<string, ControllerHandler>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user