From 29bcff2afd0f1f8d5e61f1cc5513da4f8dcf9665 Mon Sep 17 00:00:00 2001 From: yyc <395976266@qq.com> Date: Sun, 22 Jan 2017 09:27:42 +0800 Subject: [PATCH] fix --- cannon/cannon-tests.ts | 2 +- wonder-commonlib/tsconfig.json | 3 ++- wonder-frp/index.d.ts | 4 +++- wonder-frp/wonder-frp-tests.ts | 3 +-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cannon/cannon-tests.ts b/cannon/cannon-tests.ts index f68a96d811..79ae76a6d8 100644 --- a/cannon/cannon-tests.ts +++ b/cannon/cannon-tests.ts @@ -2,5 +2,5 @@ import cannon = require("cannon"); var aabb = new cannon.AABB() -aabb.setFromPoints(new cannon.Vec3(1,2,3)); +aabb.setFromPoints([new cannon.Vec3(1,2,3)]); diff --git a/wonder-commonlib/tsconfig.json b/wonder-commonlib/tsconfig.json index 19de8e5e84..3540cf91c0 100644 --- a/wonder-commonlib/tsconfig.json +++ b/wonder-commonlib/tsconfig.json @@ -2,7 +2,8 @@ "compilerOptions": { "module": "commonjs", "lib": [ - "es6" + "es6", + "dom" ], "noImplicitAny": true, "noImplicitThis": true, diff --git a/wonder-frp/index.d.ts b/wonder-frp/index.d.ts index eda41a0370..a5c89af7c3 100644 --- a/wonder-frp/index.d.ts +++ b/wonder-frp/index.d.ts @@ -3,6 +3,8 @@ // Definitions by: YYC // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/// + declare module wdFrp { class JudgeUtils extends wdCb.JudgeUtils { static isPromise(obj: any): boolean; @@ -101,7 +103,7 @@ declare module wdFrp { } } -declare var global: any, window: Window; +declare var global: any, window: any; declare module wdFrp { var root: any; } diff --git a/wonder-frp/wonder-frp-tests.ts b/wonder-frp/wonder-frp-tests.ts index 8f93f0462c..3efceed43f 100644 --- a/wonder-frp/wonder-frp-tests.ts +++ b/wonder-frp/wonder-frp-tests.ts @@ -1,6 +1,5 @@ import wdFrp = require("wonder-frp"); wdFrp.fromArray([1,2,3]) - .subscribe(null,null,function(){ - console.log("completed"); + .subscribe(function(){ });