From 0f64bb510c516b0490ab8bc2ac894c98bffd8545 Mon Sep 17 00:00:00 2001 From: Tobias Schneider Date: Sun, 26 Jun 2022 01:21:47 +0200 Subject: [PATCH] add chaining ability to debug --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } /**