Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
29 lines
688 B
Plaintext
29 lines
688 B
Plaintext
//#region src/types/assets.d.ts
|
|
/**
|
|
* The assets endpoint query parameters
|
|
*/
|
|
type AssetsQuery = {
|
|
key: string;
|
|
} | {
|
|
key?: never;
|
|
fit?: 'cover' | 'contain' | 'inside' | 'outside';
|
|
width?: number;
|
|
height?: number;
|
|
quality?: number;
|
|
withoutEnlargement?: boolean;
|
|
format?: 'auto' | 'jpg' | 'png' | 'webp' | 'tiff';
|
|
focal_point_x?: number;
|
|
focal_point_y?: number;
|
|
transforms?: [string, ...any[]][];
|
|
};
|
|
/**
|
|
* A Map of response `type` to the corresponding response format.
|
|
*/
|
|
type AssetResponse = {
|
|
raw: ReadableStream<Uint8Array>;
|
|
arrayBuffer: ArrayBuffer;
|
|
blob: Blob;
|
|
};
|
|
//#endregion
|
|
export { AssetResponse, AssetsQuery };
|
|
//# sourceMappingURL=assets.d.ts.map |