diff --git a/examples/retry_command.ts b/examples/retry_command.ts index 7a27ed0..b1ebae5 100644 --- a/examples/retry_command.ts +++ b/examples/retry_command.ts @@ -6,7 +6,7 @@ class RetryCommand extends Command { super(command.toString(), command.timeout * (retries + 1)); } - protected serialize(): string { + public serialize(): string { return new Array(this.retries + 1).fill(this.command).join(' || '); } diff --git a/src/steps/command.ts b/src/steps/command.ts index fb36008..8ebe930 100644 --- a/src/steps/command.ts +++ b/src/steps/command.ts @@ -50,7 +50,7 @@ export class Command { return this.command; } - protected serialize(): string { + public serialize(): string { return this.toString(); } }