Optimize asset checks

This commit is contained in:
rijkvanzanten
2020-06-30 12:58:16 -04:00
parent 0c58ac2d6b
commit a4e5e52085
3 changed files with 33 additions and 11 deletions

View File

@@ -1,5 +1,8 @@
export type Transformation = {
key?: string;
w?: number; // width
h?: number; // height
f?: 'cover' | 'contain'; // fit
};
// @NOTE Keys used in Transformation should match ASSET_GENERATION_QUERY_KEYS in constants.ts