Skip to content

docs(image): incorrectly typed example in personPortrait #4008

Description

@ST-DDT

* faker.image.personPortrait({ sex: 'male', size: '128' }) // 'https://cdn.jsdelivr.net/gh/faker-js/assets-person-portrait/male/128/27.jpg'

Type 'string' is not assignable to type '512 | 256 | 128 | 64 | 32 | undefined'.

-faker.image.personPortrait({ sex: 'male', size: '128' })
+faker.image.personPortrait({ sex: 'male', size: 128 })

Blocked by #3748

Metadata

Metadata

Assignees

Labels

c: docsImprovements or additions to documentationm: imageSomething is referring to the image modulep: 1-normalNothing urgent

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions