-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtypes.ts
More file actions
42 lines (35 loc) · 750 Bytes
/
types.ts
File metadata and controls
42 lines (35 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import type {
Options,
OptionsImageInfo,
URLImageInfo,
} from "@imgproxy/imgproxy-js-core";
export interface IMaybeSignPair {
salt: string | undefined;
key: string | undefined;
}
export interface ISignPair {
salt: string;
key: string;
}
export interface ICryptPair {
key: string;
iv: string;
}
export interface IRawUrl {
value: string;
displayAs?: URLImageInfo["type"];
}
interface BaseGenerateImageUrl {
endpoint: string;
url: string | IRawUrl;
salt?: string;
key?: string;
encryptKey?: string;
encryptIV?: string;
}
export interface IGenerateImageInfoUrl extends BaseGenerateImageUrl {
options?: OptionsImageInfo;
}
export interface IGenerateImageUrl extends BaseGenerateImageUrl {
options?: Options;
}