@sprucelabs/spruce-image-utils 6.0.20 → 6.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MercuryClient } from '@sprucelabs/mercury-client';
|
|
2
2
|
import { SpruceSchemas } from '@sprucelabs/mercury-types';
|
|
3
|
-
|
|
3
|
+
type ImageUploaderConstructor = new () => ImageUploader;
|
|
4
4
|
export default class RemoteImageUploader {
|
|
5
5
|
private client;
|
|
6
6
|
private static UploaderClass?;
|
|
@@ -14,7 +14,7 @@ export default class RemoteImageUploader {
|
|
|
14
14
|
export interface ImageUploader {
|
|
15
15
|
upload(options: ImageUploadOptions): Promise<UploadedImage>;
|
|
16
16
|
}
|
|
17
|
-
export
|
|
17
|
+
export type UploadedImage = SpruceSchemas.Images.v2022_05_31.UploadResponsePayload;
|
|
18
18
|
export interface ImageUploadOptions {
|
|
19
19
|
base64: string;
|
|
20
20
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MercuryClient } from '@sprucelabs/mercury-client';
|
|
2
2
|
import { SpruceSchemas } from '@sprucelabs/mercury-types';
|
|
3
|
-
|
|
3
|
+
type ImageUploaderConstructor = new () => ImageUploader;
|
|
4
4
|
export default class RemoteImageUploader {
|
|
5
5
|
private client;
|
|
6
6
|
private static UploaderClass?;
|
|
@@ -14,7 +14,7 @@ export default class RemoteImageUploader {
|
|
|
14
14
|
export interface ImageUploader {
|
|
15
15
|
upload(options: ImageUploadOptions): Promise<UploadedImage>;
|
|
16
16
|
}
|
|
17
|
-
export
|
|
17
|
+
export type UploadedImage = SpruceSchemas.Images.v2022_05_31.UploadResponsePayload;
|
|
18
18
|
export interface ImageUploadOptions {
|
|
19
19
|
base64: string;
|
|
20
20
|
name: string;
|