diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/image/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/image/index.ts b/src/modules/image/index.ts index 67d0e2d8..2eafd78b 100644 --- a/src/modules/image/index.ts +++ b/src/modules/image/index.ts @@ -369,7 +369,7 @@ export class ImageModule extends ModuleBase { * The type of the image to return. Consisting of * the file extension and the used encoding. * - * @default faker.helpers.arrayElements(['svg-uri', 'svg-base64']) + * @default faker.helpers.arrayElement(['svg-uri', 'svg-base64']) */ type?: 'svg-uri' | 'svg-base64'; } = {} @@ -378,7 +378,7 @@ export class ImageModule extends ModuleBase { width = this.faker.number.int({ min: 1, max: 3999 }), height = this.faker.number.int({ min: 1, max: 3999 }), color = this.faker.color.rgb(), - type = this.faker.helpers.arrayElements(['svg-uri', 'svg-base64']), + type = this.faker.helpers.arrayElement(['svg-uri', 'svg-base64']), } = options; const svgString = `<svg xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="full" width="${width}" height="${height}"><rect width="100%" height="100%" fill="${color}"/><text x="${ |
