Skip to content

Commit

Permalink
Merge pull request #25 from impy88/master
Browse files Browse the repository at this point in the history
Fix operations TS typing
  • Loading branch information
jm-mailosaur authored Nov 15, 2019
2 parents 6cdc310 + 14842fb commit bbf161d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@ export interface Messages {
*
* @param {string} [criteria.body] The value to seek within the target email's
* HTML or text body.
*
*
* @param {object} [options] Optional Parameters.
*
* @param {number} [options.timeout] Specify how long to wait for a matching
* @param {number} [options.timeout] Specify how long to wait for a matching
* result (in milliseconds).
*
* @param {date} [options.receivedAfter] Limits results to only messages
*
* @param {date} [options.receivedAfter] Limits results to only messages
* received after this date/time (default 20 seconds ago).
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
Expand All @@ -163,8 +163,8 @@ export interface Messages {
* {Message} [result] - The deserialized result object if an error did not occur.
* See {@link Message} for more information.
*/
get(server: string, criteria: models.SearchCriteria, options?: { timeout? : number, receivedAfter? : date }): Promise<models.Message>;
get(server: string, criteria: models.SearchCriteria, options?: { timeout? : number, receivedAfter? : date }, callback: ServiceCallback<models.Message>): void;
get(server: string, criteria: models.SearchCriteria, options?: { timeout? : number, receivedAfter? : Date }): Promise<models.Message>;
get(server: string, criteria: models.SearchCriteria, options: { timeout? : number, receivedAfter? : Date }, callback: ServiceCallback<models.Message>): void;


/**
Expand Down Expand Up @@ -325,11 +325,11 @@ export interface Messages {
* @param {number} [options.itemsPerPage] A limit on the number of results to
* be returned per page. Can be set between 1 and 1000 items, the default is
* 50.
*
* @param {number} [options.timeout] Specify how long to wait for a matching
*
* @param {number} [options.timeout] Specify how long to wait for a matching
* result (in milliseconds).
*
* @param {date} [options.receivedAfter] Limits results to only messages
*
* @param {date} [options.receivedAfter] Limits results to only messages
* received after this date/time.
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
Expand All @@ -350,9 +350,9 @@ export interface Messages {
* {MessageListResult} [result] - The deserialized result object if an error did not occur.
* See {@link MessageListResult} for more information.
*/
search(server: string, criteria: models.SearchCriteria, options?: { page? : number, itemsPerPage? : number, timeout? : number, receivedAfter? : date }): Promise<models.MessageListResult>;
search(server: string, criteria: models.SearchCriteria, options?: { page? : number, itemsPerPage? : number, timeout? : number, receivedAfter? : Date }): Promise<models.MessageListResult>;
search(server: string, criteria: models.SearchCriteria, callback: ServiceCallback<models.MessageListResult>): void;
search(server: string, criteria: models.SearchCriteria, options: { page? : number, itemsPerPage? : number, timeout? : number, receivedAfter? : date }, callback: ServiceCallback<models.MessageListResult>): void;
search(server: string, criteria: models.SearchCriteria, options: { page? : number, itemsPerPage? : number, timeout? : number, receivedAfter? : Date }, callback: ServiceCallback<models.MessageListResult>): void;
}

/**
Expand Down

0 comments on commit bbf161d

Please sign in to comment.