Typescript fix
This commit is contained in:
6
index.d.ts
vendored
6
index.d.ts
vendored
@@ -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
|
||||||
*
|
*
|
||||||
|
|||||||
2
index.js
2
index.js
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user