Dependencies update

This commit is contained in:
sanex3339
2017-11-18 20:53:10 +03:00
parent fd13c0c6eb
commit f5b9c22f11
4 changed files with 21 additions and 19 deletions
+3 -2
View File
@@ -4,6 +4,7 @@ import * as estraverse from 'estraverse';
import * as ESTree from 'estree';
import { TNodeWithBlockStatement } from '../types/node/TNodeWithBlockStatement';
import { TObject } from '../types/TObject';
import { TStatement } from '../types/node/TStatement';
import { NodeType } from '../enums/node/NodeType';
@@ -55,13 +56,13 @@ export class NodeUtils {
return node;
}
const copy: {[key: string]: any} = {};
const copy: TObject = {};
Object
.keys(node)
.filter((property: string) => property !== 'parentNode')
.forEach((property: string): void => {
const value: any = (<{[key: string]: any}>node)[property];
const value: any = (<TObject>node)[property];
let clonedValue: any | null;