浏览代码

remove redundant interface

sanex3339 8 年之前
父节点
当前提交
6f2faffa7b
共有 2 个文件被更改,包括 1 次插入29 次删除
  1. 1 3
      src/container/ServiceIdentifiers.ts
  2. 0 26
      src/interfaces/container/IContainerServiceIdentifiers.d.ts

+ 1 - 3
src/container/ServiceIdentifiers.ts

@@ -1,6 +1,4 @@
-import { IContainerServiceIdentifiers } from '../interfaces/container/IContainerServiceIdentifiers';
-
-export const ServiceIdentifiers: IContainerServiceIdentifiers = {
+export const ServiceIdentifiers = {
     'Factory<ICalleeDataExtractor>': Symbol('Factory<ICalleeDataExtractor>'),
     'Factory<IControlFlowReplacer>': Symbol('Factory<IControlFlowReplacer>'),
     'Factory<ICustomNode>': Symbol('Factory<ICustomNode>'),

+ 0 - 26
src/interfaces/container/IContainerServiceIdentifiers.d.ts

@@ -1,26 +0,0 @@
-import { interfaces } from 'inversify';
-
-export interface IContainerServiceIdentifiers {
-    'Factory<ICalleeDataExtractor>': interfaces.ServiceIdentifier<any>;
-    'Factory<IControlFlowReplacer>': interfaces.ServiceIdentifier<any>;
-    'Factory<ICustomNode>': interfaces.ServiceIdentifier<any>;
-    'Factory<ICustomNodesFactory>': interfaces.ServiceIdentifier<any>;
-    'Factory<INodeTransformer[]>': interfaces.ServiceIdentifier<any>;
-    'Factory<IObfuscationResult>': interfaces.ServiceIdentifier<any>;
-    'Factory<IReplacer>': interfaces.ServiceIdentifier<any>;
-    ICalleeDataExtractor: interfaces.ServiceIdentifier<any>;
-    IControlFlowReplacer: interfaces.ServiceIdentifier<any>;
-    ICustomNode: interfaces.ServiceIdentifier<any>;
-    ICustomNodesFactory: interfaces.ServiceIdentifier<any>;
-    IJavaScriptObfuscator: interfaces.ServiceIdentifier<any>;
-    INodeTransformer: interfaces.ServiceIdentifier<any>;
-    IObfuscationEventEmitter: interfaces.ServiceIdentifier<any>;
-    IObfuscationResult: interfaces.ServiceIdentifier<any>;
-    IObfuscator: interfaces.ServiceIdentifier<any>;
-    IOptions: interfaces.ServiceIdentifier<any>;
-    IReplacer: interfaces.ServiceIdentifier<any>;
-    ISourceMapCorrector: interfaces.ServiceIdentifier<any>;
-    IStackTraceAnalyzer: interfaces.ServiceIdentifier<any>;
-    'IStorage<ICustomNode>': interfaces.ServiceIdentifier<any>;
-    [key: string]: interfaces.ServiceIdentifier<any>;
-}