mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
fix: add header in .d.ts file
fix: add tests file fix: set "strictNullChecks": true
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import cannon = require("cannon");
|
||||
|
||||
var aabb = new cannon.AABB()
|
||||
|
||||
aabb.setFromPoints(new cannon.Vec3(1,2,3));
|
||||
|
||||
Vendored
+5
@@ -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 {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "../tslint.json" }
|
||||
@@ -0,0 +1,4 @@
|
||||
var rsvp = require("rsvp");
|
||||
|
||||
var promise = new rsvp.Promise(function(resolve, rejector){
|
||||
});
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
|
||||
Vendored
+5
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Vendored
+5
@@ -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;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
var wdFrp = require("wonder-frp");
|
||||
|
||||
wdFrp.fromArray([1,2,3])
|
||||
.subscribe(null,null,function(){
|
||||
console.log("completed");
|
||||
});
|
||||
Reference in New Issue
Block a user