sanex3339 9 年之前
父节点
当前提交
b835a2f02d
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/JavaScriptObfuscator.ts

+ 3 - 3
src/JavaScriptObfuscator.ts

@@ -12,9 +12,9 @@ import { Obfuscator } from './Obfuscator';
 
 
 export class JavaScriptObfuscator {
 export class JavaScriptObfuscator {
     /**
     /**
-     * @type any
+     * @type {GenerateOptions}
      */
      */
-    private static escodegenParams: any = {
+    private static escodegenParams: escodegen.GenerateOptions = {
         verbatim: 'x-verbatim-property'
         verbatim: 'x-verbatim-property'
     };
     };
 
 
@@ -37,7 +37,7 @@ export class JavaScriptObfuscator {
      * @param options
      * @param options
      */
      */
     private static generateCode (astTree: INode, options: IOptions): string {
     private static generateCode (astTree: INode, options: IOptions): string {
-        let escodegenParams: any = Object.assign({}, JavaScriptObfuscator.escodegenParams);
+        let escodegenParams: escodegen.GenerateOptions = Object.assign({}, JavaScriptObfuscator.escodegenParams);
 
 
         if (options.hasOwnProperty('compact')) {
         if (options.hasOwnProperty('compact')) {
             escodegenParams.format = {};
             escodegenParams.format = {};