Skip to content

Commit 07eb091

Browse files
Vikram KaltaVikram Kalta
authored andcommitted
fix: setDebug support added
1 parent de0c2d9 commit 07eb091

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/lib/stack.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,4 +200,17 @@ export class Stack {
200200
if (typeof port === "number") this.config.port = port;
201201
return this;
202202
}
203+
204+
/**
205+
* @method setDebug
206+
* @memberOf Stack
207+
* @description Sets the debug option
208+
* @param {Number} debug - Debug value
209+
* @return {Stack}
210+
* @instance
211+
* */
212+
setDebug(debug: boolean) {
213+
if (typeof debug === "boolean") this.config.debug = debug;
214+
return this;
215+
}
203216
}

src/lib/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export interface StackConfig extends HttpClientParams {
2323
cacheOptions?: CacheOptions;
2424
live_preview?: LivePreview;
2525
port?: number;
26+
debug?: boolean;
2627
}
2728
export interface CacheOptions extends PersistanceStoreOptions {
2829
policy: Policy;

0 commit comments

Comments
 (0)