fix: Images.Variants is an array of ImageType objects.

This commit is contained in:
David Ball 2024-08-05 19:33:23 -04:00
parent 9aaeaa9979
commit 2710a90d98
5 changed files with 7 additions and 6 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "amazon-pa-api5-node-ts",
"version": "2.1.7",
"version": "2.1.8",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "amazon-pa-api5-node-ts",
"version": "2.1.7",
"version": "2.1.8",
"license": "Apache-2.0",
"dependencies": {
"superagent": "^9.0.0"

View File

@ -1,10 +1,11 @@
{
"name": "amazon-pa-api5-node-ts",
"version": "2.1.7",
"version": "2.1.8",
"description": "ProductAdvertisingAPI 5.0 NodeJS SDK rewritten in TypeScript.",
"license": "Apache-2.0",
"main": "dist/src/index",
"types": "dist/src/index",
"type": "module",
"scripts": {
"clean": "rimraf dist",
"build": "tsc",

View File

@ -43,7 +43,7 @@ export class Images {
/**
* @member {Array.<module:model/ImageType>} Variants
*/
public Variants?: ImageType;
public Variants?: ImageType[];
/**
* Constructs a <code>Images</code> from a plain JavaScript object, optionally creating a new instance.

View File

@ -1,6 +1,6 @@
{ // Copied from https://github.com/withastro/astro/blob/main/packages/astro/tsconfigs/strict.json
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "./base.json",
"extends": "./tsconfig.base.json",
"compilerOptions": {
// Enable strict mode. This enables a few options at a time, see https://www.typescriptlang.org/tsconfig#strict for a list.
"strict": true

View File

@ -1,6 +1,6 @@
{ // Copied from https://github.com/withastro/astro/blob/main/packages/astro/tsconfigs/strictest.json
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "./strict.json",
"extends": "./tsconfig.strict.json",
"compilerOptions": {
// Report errors for fallthrough cases in switch statements
"noFallthroughCasesInSwitch": true,