@e-mc/image 0.10.3 → 0.10.5

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.
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  ## Interface
11
11
 
12
- * [View Source](https://www.unpkg.com/@e-mc/types@0.10.3/lib/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.10.5/lib/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { IHost, ModuleConstructor } from "./index";
@@ -24,6 +24,7 @@ interface IImage extends IClient<IHost, ImageModule> {
24
24
  qualityData?: QualityData;
25
25
  methodData?: [string, unknown[]?][];
26
26
  opacityValue?: number;
27
+ outputType?: string;
27
28
  setCommand(value: string | CommandData, outputAs?: string): void;
28
29
  getCommand(): string;
29
30
  parseCommand(value: string): CommandData;
@@ -86,9 +87,9 @@ NOTE: Usage without a **Host** is conducted through static methods. The **using*
86
87
 
87
88
  ## References
88
89
 
89
- - https://www.unpkg.com/@e-mc/types@0.10.3/lib/asset.d.ts
90
- - https://www.unpkg.com/@e-mc/types@0.10.3/lib/image.d.ts
91
- - https://www.unpkg.com/@e-mc/types@0.10.3/lib/settings.d.ts
90
+ - https://www.unpkg.com/@e-mc/types@0.10.5/lib/asset.d.ts
91
+ - https://www.unpkg.com/@e-mc/types@0.10.5/lib/image.d.ts
92
+ - https://www.unpkg.com/@e-mc/types@0.10.5/lib/settings.d.ts
92
93
 
93
94
  ## LICENSE
94
95
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/image",
3
- "version": "0.10.3",
3
+ "version": "0.10.5",
4
4
  "description": "Image constructor for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -20,6 +20,6 @@
20
20
  "license": "BSD-3-Clause",
21
21
  "homepage": "https://github.com/anpham6/e-mc#readme",
22
22
  "dependencies": {
23
- "@e-mc/core": "0.10.3"
23
+ "@e-mc/core": "0.10.5"
24
24
  }
25
25
  }
package/types/index.d.ts CHANGED
@@ -8,7 +8,7 @@ export interface Dimension {
8
8
  height: number;
9
9
  }
10
10
 
11
- export interface ImageHandler<T, U, V> {
11
+ export interface ImageHandler<T, U, V, W = void> {
12
12
  readonly handler: T;
13
13
  host: U | null;
14
14
  instance: V;
@@ -16,10 +16,10 @@ export interface ImageHandler<T, U, V> {
16
16
  resize(): void;
17
17
  crop(): void;
18
18
  opacity(): void;
19
- quality(): void;
20
19
  rotate(...args: unknown[]): unknown;
20
+ quality?(): void;
21
21
  background?(value: unknown): void;
22
- write(output: string, callback?: (err: unknown, result: string) => void): void;
22
+ write(output: string, callback?: (err: unknown, result: string) => void): W;
23
23
  getBuffer(tempFile?: boolean, saveAs?: string): Promise<string | Buffer | null>;
24
24
  finalize(output: string, callback: (err: unknown, result: string) => void): void;
25
25
  get rotateCount(): number;