From 302b3afa2ec9ebeae59bde791677e89fad6dbc3a Mon Sep 17 00:00:00 2001 From: dcrusader Date: Mon, 5 Jan 2015 11:35:11 -0800 Subject: [PATCH] Prefix interfaces with Di Prefixed interfaces with Di to help organize intellisense --- di-lite/di-lite.d.ts | 46 ++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/di-lite/di-lite.d.ts b/di-lite/di-lite.d.ts index fe279b60ab..062434dea5 100644 --- a/di-lite/di-lite.d.ts +++ b/di-lite/di-lite.d.ts @@ -3,20 +3,20 @@ // Definitions by: Timothy Morris // Definitions: https://github.com/borisyankov/DefinitelyTyped -interface di { +interface DiLite { version: string; - createContext(): CreateContext; + createContext(): DiCreateContext; dependencyExpression(depExp: string): string; - entry(name: string, ctx: CreateContext); - strategy: Strategy; - factory: Factory; - utils: Utils; + entry(name: string, ctx: DiCreateContext); + strategy: DiStrategy; + factory: DiFactory; + utils: DiUtils; } -interface CreateContext { +interface DiCreateContext { map: Object; entry(name: string): Object; - register(name: string, service: any): CreateContext; + register(name: string, service: any): DiEntry; has(name: string): boolean; "get"(name: string): any; create(name: string, args: any) @@ -27,32 +27,32 @@ interface CreateContext { ready(o: Object): Object; } -interface Entry { - create(newArgs: any): Entry; +interface DiEntry { + create(newArgs: any): DiEntry; object(): Object; - object(o: Object): Entry; - strategy(s: Function): Entry; - type(t: any): Entry; - dependencies(d: string): Entry; - args(a: any): Entry; - factory(f: Function): Entry; + object(o: Object): DiEntry; + strategy(s: Function): DiEntry; + type(t: any): DiEntry; + dependencies(d: string): DiEntry; + args(a: any): DiEntry; + factory(f: Function): DiEntry; } -interface Strategy { - proto(name: string, object: Object, type: any, args: any, ctx: CreateContext, dependencies: string): Object; - singleton(name: string, object: Object, type: any, args: any, ctx?: CreateContext, dependencies?: string): Object; +interface DiStrategy { + proto(name: string, object: Object, type: any, args: any, ctx: DiCreateContext, dependencies: string): Object; + singleton(name: string, object: Object, type: any, args: any, ctx?: DiCreateContext, dependencies?: string): Object; } -interface Factory { +interface DiFactory { "constructor"(type: any, args: any): Object; func(type: any, args: any): any; } -interface Utils { +interface DiUtils { invokeStmt(args: any, op: string): string; } -declare var di: di; -declare module "di" { +declare module "di-lite" { export = di; } +declare var di: DiLite;