npm i typeinside --save
import { article, request, getAppId } from "typeinside";
const appId = await getAppId();
/** @returns Article[]*/
let articleList = await article.list(galleryName, appId);
const galleryName = "cat";
let index = await article.lastIndex(galleryName, appId);
let imgList = await article.image(galleryName, index, appId);
for (let img of imgList) {
/** @returns { fileName: string, extension: string, data: Stream } */
await request.image(img.full);
// or download directly
await request.image.save(img.full, "./catImages/");
}