Skip to content

Commit 3ded63a

Browse files
committed
fix: update second occurence of Map to Record
1 parent b9f8c73 commit 3ded63a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

visual-recognition/v3.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ class VisualRecognitionV3 extends BaseService {
249249
*
250250
* @param {Object} params - The parameters to send to the service.
251251
* @param {string} params.name - The name of the new classifier. Encode special characters in UTF-8.
252-
* @param {Map<string, NodeJS.ReadableStream|FileObject|Buffer>} params.positive_examples - A dictionary that contains
252+
* @param {Record<string, NodeJS.ReadableStream|FileObject|Buffer>} params.positive_examples - A dictionary that contains
253253
* the value for each classname. The value is a .zip file of images that depict the visual subject of a class in the
254254
* new classifier. You can include more than one positive example file in a call.
255255
*
@@ -810,7 +810,7 @@ namespace VisualRecognitionV3 {
810810
/** The name of the new classifier. Encode special characters in UTF-8. */
811811
name: string;
812812
/** 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. */
813-
positive_examples: Map<string, NodeJS.ReadableStream|FileObject|Buffer>;
813+
positive_examples: Record<string, NodeJS.ReadableStream|FileObject|Buffer>;
814814
/** 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. */
815815
negative_examples?: NodeJS.ReadableStream|FileObject|Buffer;
816816
/** The filename for negative_examples. */

0 commit comments

Comments
 (0)