Skip to content

Commit e1028e9

Browse files
committed
docs(config): correct errorMiddleware type signature
- Change errorMiddleware to a non-optional nullable field - Update the Indonesian configuration reference to match
1 parent 7988243 commit e1028e9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/getting-started/routes-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const router = new Router({
137137
ctx: Context,
138138
statusCode: number,
139139
error: Error,
140-
errorMiddleware?: ErrorMiddleware
140+
errorMiddleware: ErrorMiddleware | null
141141
) {
142142
return ctx.send.json(
143143
{

docs/id/getting-started/routes-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const router = new Router({
137137
ctx: Context,
138138
statusCode: number,
139139
error: Error,
140-
errorMiddleware?: ErrorMiddleware
140+
errorMiddleware: ErrorMiddleware | null
141141
) {
142142
return ctx.send.json(
143143
{

0 commit comments

Comments
 (0)