refactor(medley-router): enable isolated declarations (#1199)
parent
e1eae2078f
commit
50aa61d9c2
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@hono/medley-router': patch
|
||||
---
|
||||
|
||||
Add explicit `void` return type
|
|
@ -15,7 +15,7 @@ export class MedleyRouter<T> implements Router<T> {
|
|||
this.router = new OriginalRouter()
|
||||
}
|
||||
|
||||
add(method: string, path: string, handler: T) {
|
||||
add(method: string, path: string, handler: T): void {
|
||||
const store = this.router.register(path)
|
||||
store[method] = handler
|
||||
}
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
"rootDir": "src",
|
||||
"outDir": "dist",
|
||||
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
|
||||
"emitDeclarationOnly": false
|
||||
"emitDeclarationOnly": false,
|
||||
"isolatedDeclarations": true
|
||||
},
|
||||
"include": ["src/**/*.ts"],
|
||||
"exclude": ["**/*.test.ts"],
|
||||
|
|
Loading…
Reference in New Issue