google-photos-album-image-url-fetch
Version:
extract public image url from google photos shared album url
9 lines (8 loc) • 435 B
TypeScript
import type { ImageInfo } from './imageInfo';
type ImageInfoWithoutUrl = Omit<ImageInfo, 'url'>;
export type ImageInfoLike = ImageInfoWithoutUrl & {
url: string | string[];
};
export type ImageInfoLikeRest<T extends ImageInfoLike> = Omit<Omit<T, 'url'>, 'imageUpdateDate'>;
export declare function splitResult<T extends ImageInfoLike>(input: Readonly<T>[]): [ImageInfoLikeRest<T>[], T['url'][], T['imageUpdateDate'][]];
export {};