Skip to content
Myr

fix(types): add a missing handler type (#1283)

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

* fix(types): add a missing handler type * fix & denoify

authored by Yusuke Wada · committed by GitHub · parent 379e3be · Browse files · 2 files+14 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+14 added−4 removed

  • other:+14 added−4 removed

2 files+14 added−4 removed

modified:deno_dist/types.ts+7 added-2 removed
124 unmodified lines
125 >126127 //// app.get(path, ...handlers[])128129 // app.get(path, handler, handler)129 // app.get(path, handler)130 <P extends string, O = {}, I extends Input = {}>(131 path: P,132 handler: H<E, MergePath<BasePath, P>, I, O>133 ): Hono<E, RemoveBlankRecord<S | Schema<M, MergePath<BasePath, P>, I['in'], O>>, BasePath>134135 // app.get(path, handler, handler)136 <P extends string, O = {}, I extends Input = {}>(137 path: P,133 ...handlers: [H<E, P, I, O>, H<E, P, I, O>]138 ...handlers: [H<E, MergePath<BasePath, P>, I, O>, H<E, MergePath<BasePath, P>, I, O>]139 ): Hono<E, RemoveBlankRecord<S | Schema<M, MergePath<BasePath, P>, I['in'], O>>, BasePath>140141 // app.get(path, handler x3)142 <P extends string, O = {}, I extends Input = {}, I2 extends Input = I, I3 extends Input = I & I2>(
301 unmodified lines
modified:src/types.ts+7 added-2 removed
124 unmodified lines
125 >126127 //// app.get(path, ...handlers[])128129 // app.get(path, handler, handler)129 // app.get(path, handler)130 <P extends string, O = {}, I extends Input = {}>(131 path: P,132 handler: H<E, MergePath<BasePath, P>, I, O>133 ): Hono<E, RemoveBlankRecord<S | Schema<M, MergePath<BasePath, P>, I['in'], O>>, BasePath>134135 // app.get(path, handler, handler)136 <P extends string, O = {}, I extends Input = {}>(137 path: P,133 ...handlers: [H<E, P, I, O>, H<E, P, I, O>]138 ...handlers: [H<E, MergePath<BasePath, P>, I, O>, H<E, MergePath<BasePath, P>, I, O>]139 ): Hono<E, RemoveBlankRecord<S | Schema<M, MergePath<BasePath, P>, I['in'], O>>, BasePath>140141 // app.get(path, handler x3)142 <P extends string, O = {}, I extends Input = {}, I2 extends Input = I, I3 extends Input = I & I2>(
301 unmodified lines