Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a68a754

Browse files
committed
refactor: fix typo
1 parent 17cbbe0 commit a68a754

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/h3.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ export class H3Core implements H3CoreType {
108108

109109
export const H3 = /* @__PURE__ */ (() => {
110110
class H3 extends H3Core {
111-
"~rout3": RouterContext<H3Route>;
111+
"~rou3": RouterContext<H3Route>;
112112

113113
constructor(config: H3Config = {}) {
114114
super(config);
115-
this["~rout3"] = createRouter();
115+
this["~rou3"] = createRouter();
116116
this.request = this.request.bind(this);
117117
config.plugins?.forEach((plugin) => plugin(this as unknown as H3Type));
118118
}
@@ -185,11 +185,11 @@ export const H3 = /* @__PURE__ */ (() => {
185185
}
186186

187187
override "~findRoute"(_event: H3Event): MatchedRoute<H3Route> | void {
188-
return findRoute(this["~rout3"], _event.req.method, _event.url.pathname);
188+
return findRoute(this["~rou3"], _event.req.method, _event.url.pathname);
189189
}
190190

191191
override "~addRoute"(_route: H3Route): void {
192-
addRoute(this["~rout3"], _route.method, _route.route!, _route);
192+
addRoute(this["~rou3"], _route.method, _route.route!, _route);
193193
super["~addRoute"](_route);
194194
}
195195

0 commit comments

Comments
 (0)