1
0

Typescript fix

This commit is contained in:
2022-04-28 13:06:46 +02:00
parent 3e32f354a0
commit 05d8f88fd2
2 changed files with 4 additions and 4 deletions

6
index.d.ts vendored
View File

@@ -27,7 +27,7 @@ declare class Router {
* @protected * @protected
* @type {boolean} * @type {boolean}
*/ */
protected debugMode: boolean protected debugMode: boolean = false
/** /**
* CORS Config * CORS Config
* *
@@ -186,9 +186,9 @@ declare class Router {
/** /**
* Debug Mode * Debug Mode
* *
* @param {boolean} state Whether to turn on or off debug mode (default: true) * @param {boolean} [state=true] Whether to turn on or off debug mode (default: true)
*/ */
debug(state: boolean): void debug(state?: boolean): void
/** /**
* Enable CORS support * Enable CORS support
* *

View File

@@ -221,7 +221,7 @@ class Router {
/** /**
* Debug Mode * Debug Mode
* *
* @param {boolean} state Whether to turn on or off debug mode (default: true) * @param {boolean} [state=true] Whether to turn on or off debug mode (default: true)
*/ */
debug(state = true) { debug(state = true) {
this.debugMode = state this.debugMode = state