diff --git a/src/index.ts b/src/index.ts index bfed327..087b6dd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -286,9 +286,11 @@ class Router { * Debug Mode * * @param {boolean} [state=true] Whether to turn on or off debug mode (default: true) + * @returns {Router} */ - public debug(state = true) { + public debug(state = true): Router { this.debugMode = state + return this } /**