Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/pactumjs/pactum
Browse files Browse the repository at this point in the history
  • Loading branch information
ASaiAnudeep committed Jul 17, 2022
2 parents 904f944 + 36eb919 commit 2411dfe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/models/Spec.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ declare class Spec {
withPath(url: string): Spec;

/**
* replaces path params in the request url
* replaces path params in the request url
* @see https://pactumjs.github.io/api/requests/withPathParams.html
*/
withPathParams(key: string, value: any): Spec;
Expand Down Expand Up @@ -358,9 +358,9 @@ declare class Spec {
* returns custom response from json response using custom handler
* @see https://pactumjs.github.io/api/requests/returns.html
*/
returns(handlerName: string): Spec;
returns(path: string): Spec;
returns(handler: CaptureHandlerFunction): Spec;
returns<T = Spec>(handlerName: string): T;
returns<T = Spec>(path: string): T;
returns<T = Spec>(handler: CaptureHandlerFunction): T;

/**
* records data that will be available in reports
Expand Down Expand Up @@ -417,4 +417,4 @@ declare class Spec {
end(): Spec;
}

declare namespace Spec { }
declare namespace Spec { }

0 comments on commit 2411dfe

Please sign in to comment.