feat(ImageSet): Avoid exposing the images field by adding a getNumImagesMethod (#3179)

This commit is contained in:
Joe Boccanfuso 2023-02-16 13:07:12 -05:00 committed by GitHub
parent 95bf3a105b
commit 94bb4c7d42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,6 +56,8 @@ class ImageSet {
}
}
getNumImages = () => this.images.length
getImage(index) {
return this.images[index];
}