fix: add header in .d.ts file

fix: add tests file
fix: set "strictNullChecks": true
This commit is contained in:
yyc
2017-01-22 08:19:18 +08:00
parent a8f925e787
commit 6ab43d89ce
12 changed files with 43 additions and 4 deletions
+6
View File
@@ -0,0 +1,6 @@
import cannon = require("cannon");
var aabb = new cannon.AABB()
aabb.setFromPoints(new cannon.Vec3(1,2,3));
+5
View File
@@ -1,3 +1,8 @@
// Type definitions for cannon
// Project: https://github.com/clark-stevenson/cannon.d.ts
// Definitions by: Clark Stevenson <https://github.com/clark-stevenson>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module CANNON {
export interface IAABBOptions {
+1 -1
View File
@@ -6,7 +6,7 @@
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
+1
View File
@@ -0,0 +1 @@
{ "extends": "../tslint.json" }
+4
View File
@@ -0,0 +1,4 @@
var rsvp = require("rsvp");
var promise = new rsvp.Promise(function(resolve, rejector){
});
+1 -1
View File
@@ -6,7 +6,7 @@
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
+5
View File
@@ -1,3 +1,8 @@
// Type definitions for wonder-commonlib v0.1.0
// Project: https://github.com/yyc-git/Wonder-CommonLib
// Definitions by: YYC <https://github.com/yyc-git>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module wdCb {
class JudgeUtils {
static isArray(arr: any): boolean;
+1 -1
View File
@@ -6,7 +6,7 @@
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
@@ -0,0 +1,7 @@
var wdCb = require("wonder-commonlib");
var list = wdCb.Collection.create();
list.addChild(1);
+5
View File
@@ -1,3 +1,8 @@
// Type definitions for wonder-frp v0.1.0
// Project: https://github.com/yyc-git/Wonder-FRP
// Definitions by: YYC <https://github.com/yyc-git>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module wdFrp {
class JudgeUtils extends wdCb.JudgeUtils {
static isPromise(obj: any): boolean;
+1 -1
View File
@@ -6,7 +6,7 @@
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
+6
View File
@@ -0,0 +1,6 @@
var wdFrp = require("wonder-frp");
wdFrp.fromArray([1,2,3])
.subscribe(null,null,function(){
console.log("completed");
});