fix: options argument is optional (#45725)

Here's the declaration of the function:

/**
 * Pull is a wrapper around createImage, parsing image's tags.
 * @param  {String}   repoTag  Repository tag
 * @param  {Object}   opts     Options (optional)
 * @param  {Function} callback Callback
 * @param  {Object}   auth     Authentication (optional)
 * @return {Object}            Image
 */
Docker.prototype.pull = function(repoTag, opts, callback, auth) {}
This commit is contained in:
Maxime Chéramy 2020-06-26 20:26:10 +02:00 committed by GitHub
parent 786d1ede43
commit 385d6cbe7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1353,7 +1353,7 @@ declare class Dockerode {
getEvents(options?: Dockerode.GetEventsOptions): Promise<NodeJS.ReadableStream>;
pull(repoTag: string, options: {}, callback: Callback<any>, auth?: {}): Dockerode.Image;
pull(repoTag: string, options: {}, auth?: {}): Promise<any>;
pull(repoTag: string, options?: {}): Promise<any>;
run(
image: string,