Skip to content

Typescript Args error: Argument of type '{ bucket: string; userId: string; }' is not assignable to parameter of type 'void' #51

Description

@teddybee

I would like to put more than one args (or one object with several fields) for the IFileSaver's save method. How can I do that<
Typescript compiler shows error if I do something like this:

 const inputFileName = task.image.save({
      bucket: BUCKET,
      userId: userId,
    });
Argument of type '{ bucket: string; userId: string; }' is not assignable to parameter of type 'void'.ts(2345)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions