File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export interface GulpPluginOptions {
71
71
/**
72
72
* The operation mode of the plugin.
73
73
*/
74
- mode : TransformMode | "fast" | "safe" ;
74
+ mode : TransformMode ;
75
75
76
76
/**
77
77
* Value indicating whether to silence the plugin output.
Original file line number Diff line number Diff line change 1
1
/**
2
2
* The operation mode of the minifier.
3
3
*/
4
- export enum TransformMode {
4
+ export const TransformMode = Object . freeze ( {
5
5
6
6
/**
7
7
* Applies a fast transformation.
8
8
*/
9
- fast = "fast" ,
9
+ fast : "fast" ,
10
10
11
11
/**
12
12
* Applies a safe transformation.
13
13
*/
14
- safe = "safe"
15
- }
14
+ safe : "safe"
15
+ } ) ;
16
+
17
+ /**
18
+ * The operation mode of the minifier.
19
+ */
20
+ export type TransformMode = typeof TransformMode [ keyof typeof TransformMode ] ;
You can’t perform that action at this time.
0 commit comments