Sample Typescript Code:
I am experiencing issues with my code and cannot comprehend this error message- Argument of type '{ src: string; thumb: string; }' is not assignable to parameter of type 'never'
_albums = [];
constructor(
private wowService: NgwWowService,
private _lightbox: Lightbox
) {
this.wowService.init();
for (let i = 1; i <= 4; i++) {
const src = 'assets/desktop/galeria/' + i + '.jpg';
const thumb = 'assets/desktop/galeria/' + i + '.jpg';
const album = {
src: src,
thumb: thumb
};
this._albums.push(album);
}
}
open(index: number): void {
// Open the lightbox
this._lightbox.open(this._albums, index);
}
close(): void {
// Close the lightbox programmatically
this._lightbox.close();
}