@@ -105,7 +105,7 @@ declare function hapiWrapper<
105105 * @param {Compiler | MultiCompiler } compiler compiler
106106 * @param {Options<RequestInternal, ResponseInternal>= } options options
107107 * @param {boolean= } usePlugin whether to use as webpack plugin
108- * @returns {(ctx: EXPECTED_ANY, next: EXPECTED_FUNCTION) => Promise<void> | void } kow wrapper
108+ * @returns {(( ctx: EXPECTED_ANY, next: EXPECTED_FUNCTION) => Promise<void> | void) & { devMiddleware: API<RequestInternal, ResponseInternal> } } koa wrapper
109109 */
110110declare function koaWrapper <
111111 RequestInternal extends IncomingMessage = import ( "node:http" ) . IncomingMessage ,
@@ -114,14 +114,16 @@ declare function koaWrapper<
114114 compiler : Compiler | MultiCompiler ,
115115 options ?: Options < RequestInternal , ResponseInternal > | undefined ,
116116 usePlugin ?: boolean | undefined ,
117- ) : ( ctx : EXPECTED_ANY , next : EXPECTED_FUNCTION ) => Promise < void > | void ;
117+ ) : ( ( ctx : EXPECTED_ANY , next : EXPECTED_FUNCTION ) => Promise < void > | void ) & {
118+ devMiddleware : API < RequestInternal , ResponseInternal > ;
119+ } ;
118120/**
119121 * @template {IncomingMessage} [RequestInternal=IncomingMessage]
120122 * @template {ServerResponse} [ResponseInternal=ServerResponse]
121123 * @param {Compiler | MultiCompiler } compiler compiler
122124 * @param {Options<RequestInternal, ResponseInternal>= } options options
123125 * @param {boolean= } usePlugin true when need to use as a plugin, otherwise false
124- * @returns {(ctx: EXPECTED_ANY, next: EXPECTED_FUNCTION) => Promise<void> | void } hono wrapper
126+ * @returns {(( ctx: EXPECTED_ANY, next: EXPECTED_FUNCTION) => Promise<void> | void) & { devMiddleware: API<RequestInternal, ResponseInternal> } } hono wrapper
125127 */
126128declare function honoWrapper <
127129 RequestInternal extends IncomingMessage = import ( "node:http" ) . IncomingMessage ,
@@ -130,7 +132,9 @@ declare function honoWrapper<
130132 compiler : Compiler | MultiCompiler ,
131133 options ?: Options < RequestInternal , ResponseInternal > | undefined ,
132134 usePlugin ?: boolean | undefined ,
133- ) : ( ctx : EXPECTED_ANY , next : EXPECTED_FUNCTION ) => Promise < void > | void ;
135+ ) : ( ( ctx : EXPECTED_ANY , next : EXPECTED_FUNCTION ) => Promise < void > | void ) & {
136+ devMiddleware : API < RequestInternal , ResponseInternal > ;
137+ } ;
134138type Schema = import ( "schema-utils/declarations/validate" ) . Schema ;
135139type Compiler = import ( "webpack" ) . Compiler ;
136140type MultiCompiler = import ( "webpack" ) . MultiCompiler ;
0 commit comments