Skip to content
Myr

docs(jsdoc): fix a `app.route()` JSDoc description (#1296)

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

* docs(jsdoc): fix a `app.route()` JSDoc description * denoify

authored by Yusuke Wada · committed by GitHub · parent 8b0f189 · Browse files · 2 files+8 added−6 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+8 added−6 removed

  • other:+8 added−6 removed

2 files+8 added−6 removed

modified:deno_dist/hono-base.ts+4 added-3 removed
139 unmodified lines
140 route<SubPath extends string, SubEnv extends Env, SubSchema, SubBasePath extends string>(141 path: SubPath,142 app: Hono<SubEnv, SubSchema, SubBasePath>143 ): Hono<E, RemoveBlankRecord<MergeSchemaPath<SubSchema, SubPath> | S>, BasePath>144 /** @deprecated145 * Use `basePath` instead of `route` with one argument.146 * The `route` with one argument has been removed in v4.144 /** @description145 * Use `basePath` instead of `route` when passing **one** argument, such as `app.route('/api')`.146 * The use of `route` with **one** argument has been removed in v4.147 * However, you can still use `route` with **two** arguments, like `app.route('/api', subApp)`."148 */149 route<SubPath extends string>(path: SubPath): Hono<E, RemoveBlankRecord<S>, BasePath>150 route<SubPath extends string, SubEnv extends Env, SubSchema, SubBasePath extends string>(151 path: SubPath,
233 unmodified lines
modified:src/hono-base.ts+4 added-3 removed
139 unmodified lines
140 route<SubPath extends string, SubEnv extends Env, SubSchema, SubBasePath extends string>(141 path: SubPath,142 app: Hono<SubEnv, SubSchema, SubBasePath>143 ): Hono<E, RemoveBlankRecord<MergeSchemaPath<SubSchema, SubPath> | S>, BasePath>144 /** @deprecated145 * Use `basePath` instead of `route` with one argument.146 * The `route` with one argument has been removed in v4.144 /** @description145 * Use `basePath` instead of `route` when passing **one** argument, such as `app.route('/api')`.146 * The use of `route` with **one** argument has been removed in v4.147 * However, you can still use `route` with **two** arguments, like `app.route('/api', subApp)`."148 */149 route<SubPath extends string>(path: SubPath): Hono<E, RemoveBlankRecord<S>, BasePath>150 route<SubPath extends string, SubEnv extends Env, SubSchema, SubBasePath extends string>(151 path: SubPath,
233 unmodified lines