Skip to content
Myr

fix(hono-base): make `onError` and `notFound` as class field (#1839)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* fix(hono-base): make `onError` and `notFound` as class field * denoify

authored by Yusuke Wada · committed by GitHub · parent a1c7144 · Browse files · 2 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−4 removed

  • other:+4 added−4 removed

2 files+4 added−4 removed

modified:deno_dist/hono-base.ts+2 added-2 removed
172 unmodified lines
173 subApp._basePath = mergePath(this._basePath, path)174 return subApp175 }176177 onError(handler: ErrorHandler<E>) {177 onError = (handler: ErrorHandler<E>) => {178 this.errorHandler = handler179 return this180 }181182 notFound(handler: NotFoundHandler<E>) {182 notFound = (handler: NotFoundHandler<E>) => {183 this.notFoundHandler = handler184 return this185 }186
193 unmodified lines
modified:src/hono-base.ts+2 added-2 removed
172 unmodified lines
173 subApp._basePath = mergePath(this._basePath, path)174 return subApp175 }176177 onError(handler: ErrorHandler<E>) {177 onError = (handler: ErrorHandler<E>) => {178 this.errorHandler = handler179 return this180 }181182 notFound(handler: NotFoundHandler<E>) {182 notFound = (handler: NotFoundHandler<E>) => {183 this.notFoundHandler = handler184 return this185 }186
193 unmodified lines