@node-minify/types 8.0.5 → 8.0.6

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/types.ts +13 -16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-minify/types",
3
- "version": "8.0.5",
3
+ "version": "8.0.6",
4
4
  "description": "types for @node-minify",
5
5
  "keywords": [
6
6
  "compressor",
@@ -26,5 +26,5 @@
26
26
  "bugs": {
27
27
  "url": "https://github.com/srod/node-minify/issues"
28
28
  },
29
- "gitHead": "920590d417916e54464d9967e0dceb8b6bb9a784"
29
+ "gitHead": "9fb532af458cb6416ecfb7abfb9cc0a3b9cb42e1"
30
30
  }
package/src/types.ts CHANGED
@@ -1,13 +1,10 @@
1
- export interface Options {
2
- [key: string]: string | boolean | [] | { url: string } | { filename: string } | undefined;
3
- sourceMap?: boolean;
4
- _sourceMap?: { url: string } | boolean;
5
- babelrc?: string;
6
- presets?: [];
7
- strict?: boolean;
8
- }
1
+ export type OptionsPossible = string | boolean | Record<string, string> | object;
9
2
 
10
- export interface Settings {
3
+ export type Options = {
4
+ [Key: string]: boolean | Record<string, OptionsPossible>;
5
+ };
6
+
7
+ export type Settings = {
11
8
  compressorLabel?: string;
12
9
  compressor?: string | ((arg0: MinifierOptions) => string);
13
10
  sync?: boolean;
@@ -22,9 +19,9 @@ export interface Settings {
22
19
  silence?: boolean;
23
20
  publicFolder?: string;
24
21
  replaceInPlace?: boolean;
25
- }
22
+ };
26
23
 
27
- export interface MinifierOptions {
24
+ export type MinifierOptions = {
28
25
  settings?: Settings;
29
26
  content?: string;
30
27
  callback?: null | ((err?: unknown | null, result?: string) => void);
@@ -35,15 +32,15 @@ export interface MinifierOptions {
35
32
  sync?: boolean;
36
33
  input?: string | string[];
37
34
  output?: string;
38
- }
35
+ };
39
36
 
40
- export interface Result {
37
+ export type Result = {
41
38
  compressor?: string | ((arg0: MinifierOptions) => void);
42
39
  compressorLabel: string | (() => void);
43
40
  size: string;
44
41
  sizeGzip: string;
45
- }
42
+ };
46
43
 
47
- export interface Dictionary<T> {
44
+ export type Dictionary<T> = {
48
45
  [Key: string]: T;
49
- }
46
+ };