Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Commit

Permalink
feat: make process argument optional
Browse files Browse the repository at this point in the history
  • Loading branch information
priestine committed Mar 24, 2020
1 parent 14f3aa4 commit e9969f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class Pipeline<TContext, TResult, TReserved> extends BasePipeline<TContex
*
* @param ctx
*/
public async process(ctx: TReserved): Promise<TResult> {
public async process(ctx?: TReserved): Promise<TResult> {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let result: TContext | any;

Expand Down
2 changes: 1 addition & 1 deletion src/sync-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class SyncPipeline<TContext, TResult, TReserved> extends BasePipeline<TCo
*
* @param ctx
*/
public process(ctx: TReserved): TResult {
public process(ctx?: TReserved): TResult {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let result: TReserved | any;

Expand Down

0 comments on commit e9969f0

Please sign in to comment.