@prismicio/types-internal
Version:
Prismic types for Custom Types and Prismic Data
17 lines (16 loc) • 434 B
TypeScript
export declare type Asset = {
id: string;
last_modified: string;
kind: "image" | "all";
filename?: string;
extension?: string;
size?: number;
origin_url: string;
url: string;
width?: number;
height?: number;
notes?: string;
credits?: string;
alt?: string;
};
export declare const getAssetOrThrow: (assets: Record<Asset["id"], Asset | undefined>) => (assetId: Asset["id"]) => Asset;