Skip to content

Commit

Permalink
fix: update second occurence of Map to Record
Browse files Browse the repository at this point in the history
  • Loading branch information
evanshortiss committed Jun 14, 2019
1 parent b9f8c73 commit 3ded63a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions visual-recognition/v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class VisualRecognitionV3 extends BaseService {
*
* @param {Object} params - The parameters to send to the service.
* @param {string} params.name - The name of the new classifier. Encode special characters in UTF-8.
* @param {Map<string, NodeJS.ReadableStream|FileObject|Buffer>} params.positive_examples - A dictionary that contains
* @param {Record<string, NodeJS.ReadableStream|FileObject|Buffer>} params.positive_examples - A dictionary that contains
* the value for each classname. The value is a .zip file of images that depict the visual subject of a class in the
* new classifier. You can include more than one positive example file in a call.
*
Expand Down Expand Up @@ -810,7 +810,7 @@ namespace VisualRecognitionV3 {
/** The name of the new classifier. Encode special characters in UTF-8. */
name: string;
/** A dictionary that contains the value for each classname. The value is a .zip file of images that depict the visual subject of a class in the new classifier. You can include more than one positive example file in a call. Specify the parameter name by appending `_positive_examples` to the class name. For example, `goldenretriever_positive_examples` creates the class **goldenretriever**. Include at least 10 images in .jpg or .png format. The minimum recommended image resolution is 32X32 pixels. The maximum number of images is 10,000 images or 100 MB per .zip file. Encode special characters in the file name in UTF-8. */
positive_examples: Map<string, NodeJS.ReadableStream|FileObject|Buffer>;
positive_examples: Record<string, NodeJS.ReadableStream|FileObject|Buffer>;
/** A .zip file of images that do not depict the visual subject of any of the classes of the new classifier. Must contain a minimum of 10 images. Encode special characters in the file name in UTF-8. */
negative_examples?: NodeJS.ReadableStream|FileObject|Buffer;
/** The filename for negative_examples. */
Expand Down

0 comments on commit 3ded63a

Please sign in to comment.