From ba80717c78458816b55b7e4d2084c9ab5807ee16 Mon Sep 17 00:00:00 2001 From: dcrusader Date: Mon, 5 Jan 2015 19:06:14 -0800 Subject: [PATCH] Add reference path to test file --- di-lite/di-lite-test.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/di-lite/di-lite-test.ts b/di-lite/di-lite-test.ts index fbff668f1..eed9c2625 100644 --- a/di-lite/di-lite-test.ts +++ b/di-lite/di-lite-test.ts @@ -1,8 +1,10 @@ +/// + interface Dependency { dependencies?: string; } -function doTest(test: (ctx: DiCreateContext, ...obj: Dependency[]) => void) { +function doTest(test: (ctx, ...obj: Dependency[]) => void) { // create di context var ctx = di.createContext(), A: Dependency = () => { @@ -92,11 +94,11 @@ module CyclicalDependency { module FunctionalObject { doTest(ctx => { - var FuncObject = spec => { + var FuncObject = (spec: any) => { var that = {}; return that; }, - spec = []; + spec: any = []; ctx.register("funcObjSingleton", FuncObject, spec).factory(di.factory.func);