mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge branch 'types-2.0' of https://github.com/DefinitelyTyped/DefinitelyTyped into types-2.0
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"3d-bin-packing.d.ts",
|
||||
"index.d.ts",
|
||||
"3d-bin-packing-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"files": [
|
||||
"angular-q-spread.d.ts",
|
||||
"index.d.ts",
|
||||
"angular-q-spread-tests.ts"
|
||||
],
|
||||
"compilerOptions": {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/// <reference path="angular-websocket.d.ts" />
|
||||
|
||||
let dummySocket: ng.websocket.IWebSocket;
|
||||
let dummyPromise: ng.IPromise<void>;
|
||||
let dummyScope: ng.IScope;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"files": [
|
||||
"angular-websocket.d.ts",
|
||||
"index.d.ts",
|
||||
"angular-websocket-tests.ts"
|
||||
],
|
||||
"compilerOptions": {
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
/// <reference path="angular-xeditable.d.ts" />
|
||||
|
||||
var myApp = angular.module('testModule', ['xeditable']);
|
||||
var myApp = angular.module('testModule', ['xeditable']);
|
||||
|
||||
myApp.run(["editableOptions", (editableOptions: angular.xeditable.IEditableOptions) => {
|
||||
|
||||
|
||||
editableOptions.activate = "select";
|
||||
editableOptions.activationEvent = "click";
|
||||
editableOptions.blurElem = "ignore";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"files": [
|
||||
"angular-xeditable.d.ts",
|
||||
"index.d.ts",
|
||||
"angular-xeditable-tests.ts"
|
||||
],
|
||||
"compilerOptions": {
|
||||
|
||||
Vendored
+1
-2
@@ -1,6 +1,5 @@
|
||||
// Type definitions for assert and power-assert
|
||||
// Project: https://github.com/Jxck/assert
|
||||
// Project: https://github.com/twada/power-assert
|
||||
// Project: https://github.com/Jxck/assert, https://github.com/twada/power-assert
|
||||
// Definitions by: vvakame <https://github.com/vvakame>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
|
||||
@@ -13,6 +13,6 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"bootstrap-fileinput.d.ts"
|
||||
"index.d.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
/// <reference path="chai-dom.d.ts" />
|
||||
|
||||
import * as chai from 'chai';
|
||||
import * as chaiDom from 'chai-dom';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"chai-dom.d.ts",
|
||||
"index.d.ts",
|
||||
"chai-dom-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
/// <reference types="react" />
|
||||
/// <reference path="./chai-enzyme.d.ts" />
|
||||
/// <reference types="enzyme" />
|
||||
/// <reference types="chai" />
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
"jsx": "react"
|
||||
},
|
||||
"files": [
|
||||
"chai-enzyme.d.ts",
|
||||
"index.d.ts",
|
||||
"chai-enzyme-tests.tsx"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
import Chai = require('chai');
|
||||
import ChaiOequal = require('chai-oequal');
|
||||
|
||||
Chai.use(ChaiOequal);
|
||||
|
||||
import {
|
||||
expect,
|
||||
assert
|
||||
} from 'chai';
|
||||
|
||||
expect({
|
||||
equals: () => true,
|
||||
}).to.be.oequal({});
|
||||
expect({
|
||||
customequals: () => true,
|
||||
}).to.be.oequal({}, 'customequals');
|
||||
expect({
|
||||
equals: () => true,
|
||||
}).to.be.oeql({});
|
||||
expect({
|
||||
equals: () => true,
|
||||
}).to.be.oeq({});
|
||||
|
||||
assert.oequal({
|
||||
equals: () => true,
|
||||
}, {});
|
||||
assert.oequal({
|
||||
customequals: () => true,
|
||||
}, {}, 'customequals');
|
||||
assert.oeql({
|
||||
equals: () => true,
|
||||
}, {});
|
||||
assert.oeq({
|
||||
equals: () => true,
|
||||
}, {});
|
||||
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
// Type definitions for chai-oequal
|
||||
// Project: https://github.com/wrwrwr/chai-oequal
|
||||
// Definitions by: Mizunashi Mana <https://github.com/mizunashi-mana>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="chai" />
|
||||
|
||||
declare namespace Chai {
|
||||
// For BDD APIs
|
||||
interface Assertion extends LanguageChains, NumericComparison, TypeComparison {
|
||||
oequal(result: any, method?: string): Equal;
|
||||
oeql(result: any, method?: string): Equal;
|
||||
oeq(result: any, method?: string): Equal;
|
||||
}
|
||||
|
||||
// For Assert APIs
|
||||
interface Assert {
|
||||
oequal(act: any, exp: any, method?: string): Equal;
|
||||
oeql(act: any, exp: any, method?: string): Equal;
|
||||
oeq(act: any, exp: any, method?: string): Equal;
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'chai-oequal' {
|
||||
function chaiOequal(chai: any, utils: any): void;
|
||||
export = chaiOequal;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"chai-oequal-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"extends": "../tslint.json",
|
||||
"rules": {
|
||||
"no-single-declare-module": false
|
||||
}
|
||||
}
|
||||
@@ -79,6 +79,13 @@ program
|
||||
console.log('unknown option is allowed');
|
||||
});
|
||||
|
||||
program
|
||||
.version('0.0.1')
|
||||
.arguments('<cmd> [env]')
|
||||
.action(function (cmd, env) {
|
||||
console.log(cmd, env);
|
||||
});
|
||||
|
||||
program.parse(process.argv);
|
||||
|
||||
console.log('stuff');
|
||||
|
||||
Vendored
+5
@@ -74,6 +74,11 @@ declare namespace commander {
|
||||
*/
|
||||
command(name:string, desc?:string, opts?: any):ICommand;
|
||||
|
||||
/**
|
||||
* Set / get the arguments usage `str`.
|
||||
*/
|
||||
arguments(str: string):ICommand;
|
||||
|
||||
/**
|
||||
* Add an implicit `help [cmd]` subcommand
|
||||
* which invokes `--help` for the given command.
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"commangular.d.ts",
|
||||
"index.d.ts",
|
||||
"commangular-mock.d.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
/// <reference path="./connect-redis.d.ts" />
|
||||
/// <reference types="express-session" />
|
||||
|
||||
import * as connectRedis from "connect-redis";
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"connect-redis.d.ts",
|
||||
"index.d.ts",
|
||||
"connect-redis-tests.ts"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/// <reference path="csv-parse.d.ts" />
|
||||
|
||||
import parse = require('csv-parse');
|
||||
|
||||
function callbackAPITest() {
|
||||
@@ -38,7 +36,7 @@ import fs = require('fs');
|
||||
|
||||
function pipeFunctionTest() {
|
||||
var transform = require('stream-transform');
|
||||
|
||||
|
||||
var output:any = [];
|
||||
var parser = parse({delimiter: ':'})
|
||||
var input = fs.createReadStream('/etc/passwd');
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"csv-parse.d.ts",
|
||||
"index.d.ts",
|
||||
"csv-parse-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,6 +1,3 @@
|
||||
/// <reference path="../d3/d3.d.ts" />
|
||||
/// <reference path="d3-box.d.ts" />
|
||||
|
||||
// Inspired by http://bl.ocks.org/mbostock/4061502
|
||||
|
||||
function iqr(k: number) {
|
||||
|
||||
+2
-2
@@ -3,9 +3,9 @@
|
||||
// Definitions by: Linkun Chen <https://github.com/lk-chen>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference path="../d3/d3.d.ts"/>
|
||||
import * as d3 from "d3";
|
||||
|
||||
declare namespace d3 {
|
||||
declare module "d3" {
|
||||
export function box(): Box;
|
||||
|
||||
interface Box {
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"@types/d3": "^3.5.36"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"d3-box-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,6 +1,3 @@
|
||||
/// <reference path="../d3/d3.d.ts" />
|
||||
/// <reference path="d3.slider.d.ts" />
|
||||
|
||||
d3.select('#slider1').call(d3.slider());
|
||||
d3.select('#slider2').call(d3.slider().value( [ 10, 25 ] ));
|
||||
d3.select('#slider3').call(d3.slider().axis(true).value( [ 10, 25 ] )
|
||||
|
||||
+2
-2
@@ -3,9 +3,9 @@
|
||||
// Definitions by: Linkun Chen <https://github.com/lk-chen>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference path="../d3/d3.d.ts"/>
|
||||
import * as d3 from "d3";
|
||||
|
||||
declare namespace d3 {
|
||||
declare module "d3" {
|
||||
export function slider(): Slider;
|
||||
|
||||
interface Slider {
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"@types/d3": "^3.5.36"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"d3.slider-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
/// <reference path="d3kit.d.ts" />
|
||||
/// <reference types="d3" />
|
||||
/// <reference types="mocha" />
|
||||
/// <reference types="chai" />
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"d3kit.d.ts",
|
||||
"index.d.ts",
|
||||
"d3kit-tests.ts"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// <reference path="daterangepicker.d.ts"/>
|
||||
import moment = require("moment")
|
||||
|
||||
function tests_simple() {
|
||||
|
||||
@@ -167,6 +167,5 @@ declare namespace daterangepicker {
|
||||
}
|
||||
}
|
||||
|
||||
declare module "daterangepicker" {
|
||||
export = daterangepicker;
|
||||
}
|
||||
export = daterangepicker;
|
||||
export as namespace daterangepicker;
|
||||
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"daterangepicker.d.ts",
|
||||
"index.d.ts",
|
||||
"daterangepicker-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
/// <reference path="df-visible.d.ts" />
|
||||
|
||||
// https://github.com/customd/jquery-visible/blob/master/examples/demo-basic.html
|
||||
$(function(){
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"df-visible.d.ts",
|
||||
"index.d.ts",
|
||||
"df-visible-tests.ts"
|
||||
]
|
||||
}
|
||||
Vendored
+1
-1
@@ -15,7 +15,7 @@
|
||||
"jsx": "react"
|
||||
},
|
||||
"files": [
|
||||
"dva.d.ts",
|
||||
"index.d.ts",
|
||||
"dva-tests.tsx"
|
||||
]
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
/// <reference path="epub.d.ts" />
|
||||
import EPub = require("epub");
|
||||
|
||||
var epub = new EPub("./file.epub");
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"epub.d.ts",
|
||||
"index.d.ts",
|
||||
"epub-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
/// <reference path="exorcist.d.ts" />
|
||||
|
||||
import exorcist = require("exorcist");
|
||||
|
||||
module ExorcistTest {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"exorcist.d.ts",
|
||||
"index.d.ts",
|
||||
"exorcist-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,2 +1 @@
|
||||
/// <reference path="express-domain-middleware.d.ts" />
|
||||
import fn = require('express-domain-middleware');
|
||||
|
||||
Vendored
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"express-domain-middleware.d.ts",
|
||||
"index.d.ts",
|
||||
"express-domain-middleware-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
/// <reference path='fill-pdf.d.ts' />
|
||||
|
||||
import * as fillPdf from 'fill-pdf';
|
||||
|
||||
var formData: fillPdf.FormData = { FieldName: 'Text to put into form field' };
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"fill-pdf.d.ts",
|
||||
"index.d.ts",
|
||||
"fill-pdf-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
/// <reference path="./fluent-ffmpeg.d.ts" />
|
||||
|
||||
import ffmpeg = require("fluent-ffmpeg")
|
||||
|
||||
let source: string, format: string, output: string
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"fluent-ffmpeg.d.ts",
|
||||
"index.d.ts",
|
||||
"fluent-ffmpeg-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
/// <reference path="fullpage.js.d.ts" />
|
||||
|
||||
function test_public_methods() {
|
||||
$(() => {
|
||||
$('#fullpage').fullpage({
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"fullpage.js.d.ts",
|
||||
"index.d.ts",
|
||||
"fullpage.js-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -33,6 +33,11 @@ let outMat3 = mat3.create();
|
||||
let outMat4 = mat4.create();
|
||||
let outQuat = quat.create();
|
||||
|
||||
let outMat2Null: mat2 | null;
|
||||
let outMat2dNull: mat2d | null;
|
||||
let outMat3Null: mat3 | null;
|
||||
let outMat4Null: mat4 | null;
|
||||
|
||||
// vec2
|
||||
outVec2 = vec2.create();
|
||||
outVec2 = vec2.clone(vec2A);
|
||||
@@ -180,7 +185,7 @@ outMat2 = mat2.identity(outMat2);
|
||||
outMat2 = mat2.fromValues(1, 2, 3, 4);
|
||||
outMat2 = mat2.set(outMat2, 1, 2, 3, 4);
|
||||
outMat2 = mat2.transpose(outMat2, mat2A);
|
||||
outMat2 = mat2.invert(outMat2, mat2A);
|
||||
outMat2Null = mat2.invert(outMat2, mat2A);
|
||||
outMat2 = mat2.adjoint(outMat2, mat2A);
|
||||
outVal = mat2.determinant(mat2A);
|
||||
outMat2 = mat2.multiply(outMat2, mat2A, mat2B);
|
||||
@@ -210,7 +215,7 @@ outMat2d = mat2d.copy(outMat2d, mat2dA);
|
||||
outMat2d = mat2d.identity(outMat2d);
|
||||
outMat2d = mat2d.fromValues(1, 2, 3, 4, 5, 6);
|
||||
outMat2d = mat2d.set(outMat2d, 1, 2, 3, 4, 5, 6);
|
||||
outMat2d = mat2d.invert(outMat2d, mat2dA);
|
||||
outMat2dNull = mat2d.invert(outMat2d, mat2dA);
|
||||
outVal = mat2d.determinant(mat2dA);
|
||||
outMat2d = mat2d.multiply(outMat2d, mat2dA, mat2dB);
|
||||
outMat2d = mat2d.mul(outMat2d, mat2dA, mat2dB);
|
||||
@@ -239,7 +244,7 @@ outMat3 = mat3.fromValues(1, 2, 3, 4, 5, 6, 7, 8, 9);
|
||||
outMat3 = mat3.set(outMat3, 1, 2, 3, 4, 5, 6, 7, 8, 9);
|
||||
outMat3 = mat3.identity(outMat3);
|
||||
outMat3 = mat3.transpose(outMat3, mat3A);
|
||||
outMat3 = mat3.invert(outMat3, mat3A);
|
||||
outMat3Null = mat3.invert(outMat3, mat3A);
|
||||
outMat3 = mat3.adjoint(outMat3, mat3A);
|
||||
outVal = mat3.determinant(mat3A);
|
||||
outMat3 = mat3.multiply(outMat3, mat3A, mat3B);
|
||||
@@ -252,7 +257,7 @@ outMat3 = mat3.fromRotation(outMat3, Math.PI);
|
||||
outMat3 = mat3.fromScaling(outMat3, vec2A);
|
||||
outMat3 = mat3.fromMat2d(outMat3, mat2dA);
|
||||
outMat3 = mat3.fromQuat(outMat3, quatA);
|
||||
outMat3 = mat3.normalFromMat4(outMat3, mat4A);
|
||||
outMat3Null = mat3.normalFromMat4(outMat3, mat4A);
|
||||
outStr = mat3.str(mat3A);
|
||||
outVal = mat3.frob(mat3A);
|
||||
outMat3 = mat3.add(outMat3, mat3A, mat3B);
|
||||
@@ -271,19 +276,19 @@ outMat4 = mat4.fromValues(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)
|
||||
outMat4 = mat4.set(outMat4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16);
|
||||
outMat4 = mat4.identity(outMat4);
|
||||
outMat4 = mat4.transpose(outMat4, mat4A);
|
||||
outMat4 = mat4.invert(outMat4, mat4A);
|
||||
outMat4Null = mat4.invert(outMat4, mat4A);
|
||||
outMat4 = mat4.adjoint(outMat4, mat4A);
|
||||
outVal = mat4.determinant(mat4A);
|
||||
outMat4 = mat4.multiply(outMat4, mat4A, mat4B);
|
||||
outMat4 = mat4.mul(outMat4, mat4A, mat4B);
|
||||
outMat4 = mat4.translate(outMat4, mat4A, vec3A);
|
||||
outMat4 = mat4.scale(outMat4, mat4A, vec3A);
|
||||
outMat4 = mat4.rotate(outMat4, mat4A, Math.PI, vec3A);
|
||||
outMat4Null = mat4.rotate(outMat4, mat4A, Math.PI, vec3A);
|
||||
outMat4 = mat4.rotateX(outMat4, mat4A, Math.PI);
|
||||
outMat4 = mat4.rotateY(outMat4, mat4A, Math.PI);
|
||||
outMat4 = mat4.rotateZ(outMat4, mat4A, Math.PI);
|
||||
outMat4 = mat4.fromTranslation(outMat4, vec3A);
|
||||
outMat4 = mat4.fromRotation(outMat4, Math.PI, vec3A);
|
||||
outMat4Null = mat4.fromRotation(outMat4, Math.PI, vec3A);
|
||||
outMat4 = mat4.fromScaling(outMat4, vec3A);
|
||||
outMat4 = mat4.fromXRotation(outMat4, Math.PI);
|
||||
outMat4 = mat4.fromYRotation(outMat4, Math.PI);
|
||||
@@ -529,7 +534,7 @@ outMat2 = _mat2.identity(outMat2);
|
||||
outMat2 = _mat2.fromValues(1, 2, 3, 4);
|
||||
outMat2 = _mat2.set(outMat2, 1, 2, 3, 4);
|
||||
outMat2 = _mat2.transpose(outMat2, mat2A);
|
||||
outMat2 = _mat2.invert(outMat2, mat2A);
|
||||
outMat2Null = _mat2.invert(outMat2, mat2A);
|
||||
outMat2 = _mat2.adjoint(outMat2, mat2A);
|
||||
outVal = _mat2.determinant(mat2A);
|
||||
outMat2 = _mat2.multiply(outMat2, mat2A, mat2B);
|
||||
@@ -559,7 +564,7 @@ outMat2d = _mat2d.copy(outMat2d, mat2dA);
|
||||
outMat2d = _mat2d.identity(outMat2d);
|
||||
outMat2d = _mat2d.fromValues(1, 2, 3, 4, 5, 6);
|
||||
outMat2d = _mat2d.set(outMat2d, 1, 2, 3, 4, 5, 6);
|
||||
outMat2d = _mat2d.invert(outMat2d, mat2dA);
|
||||
outMat2dNull = _mat2d.invert(outMat2d, mat2dA);
|
||||
outVal = _mat2d.determinant(mat2dA);
|
||||
outMat2d = _mat2d.multiply(outMat2d, mat2dA, mat2dB);
|
||||
outMat2d = _mat2d.mul(outMat2d, mat2dA, mat2dB);
|
||||
@@ -588,7 +593,7 @@ outMat3 = _mat3.fromValues(1, 2, 3, 4, 5, 6, 7, 8, 9);
|
||||
outMat3 = _mat3.set(outMat3, 1, 2, 3, 4, 5, 6, 7, 8, 9);
|
||||
outMat3 = _mat3.identity(outMat3);
|
||||
outMat3 = _mat3.transpose(outMat3, mat3A);
|
||||
outMat3 = _mat3.invert(outMat3, mat3A);
|
||||
outMat3Null = _mat3.invert(outMat3, mat3A);
|
||||
outMat3 = _mat3.adjoint(outMat3, mat3A);
|
||||
outVal = _mat3.determinant(mat3A);
|
||||
outMat3 = _mat3.multiply(outMat3, mat3A, mat3B);
|
||||
@@ -601,7 +606,7 @@ outMat3 = _mat3.fromRotation(outMat3, Math.PI);
|
||||
outMat3 = _mat3.fromScaling(outMat3, vec2A);
|
||||
outMat3 = _mat3.fromMat2d(outMat3, mat2dA);
|
||||
outMat3 = _mat3.fromQuat(outMat3, quatA);
|
||||
outMat3 = _mat3.normalFromMat4(outMat3, mat4A);
|
||||
outMat3Null = _mat3.normalFromMat4(outMat3, mat4A);
|
||||
outStr = _mat3.str(mat3A);
|
||||
outVal = _mat3.frob(mat3A);
|
||||
outMat3 = _mat3.add(outMat3, mat3A, mat3B);
|
||||
@@ -620,19 +625,19 @@ outMat4 = _mat4.fromValues(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
|
||||
outMat4 = _mat4.set(outMat4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16);
|
||||
outMat4 = _mat4.identity(outMat4);
|
||||
outMat4 = _mat4.transpose(outMat4, mat4A);
|
||||
outMat4 = _mat4.invert(outMat4, mat4A);
|
||||
outMat4Null = _mat4.invert(outMat4, mat4A);
|
||||
outMat4 = _mat4.adjoint(outMat4, mat4A);
|
||||
outVal = _mat4.determinant(mat4A);
|
||||
outMat4 = _mat4.multiply(outMat4, mat4A, mat4B);
|
||||
outMat4 = _mat4.mul(outMat4, mat4A, mat4B);
|
||||
outMat4 = _mat4.translate(outMat4, mat4A, vec3A);
|
||||
outMat4 = _mat4.scale(outMat4, mat4A, vec3A);
|
||||
outMat4 = _mat4.rotate(outMat4, mat4A, Math.PI, vec3A);
|
||||
outMat4Null = _mat4.rotate(outMat4, mat4A, Math.PI, vec3A);
|
||||
outMat4 = _mat4.rotateX(outMat4, mat4A, Math.PI);
|
||||
outMat4 = _mat4.rotateY(outMat4, mat4A, Math.PI);
|
||||
outMat4 = _mat4.rotateZ(outMat4, mat4A, Math.PI);
|
||||
outMat4 = _mat4.fromTranslation(outMat4, vec3A);
|
||||
outMat4 = _mat4.fromRotation(outMat4, Math.PI, vec3A);
|
||||
outMat4Null = _mat4.fromRotation(outMat4, Math.PI, vec3A);
|
||||
outMat4 = _mat4.fromScaling(outMat4, vec3A);
|
||||
outMat4 = _mat4.fromXRotation(outMat4, Math.PI);
|
||||
outMat4 = _mat4.fromYRotation(outMat4, Math.PI);
|
||||
|
||||
Vendored
+5
-5
@@ -1384,7 +1384,7 @@ declare module 'gl-matrix' {
|
||||
* @param a the source matrix
|
||||
* @returns out
|
||||
*/
|
||||
public static invert(out: mat2, a: mat2): mat2;
|
||||
public static invert(out: mat2, a: mat2): mat2 | null;
|
||||
|
||||
/**
|
||||
* Calculates the adjugate of a mat2
|
||||
@@ -1638,7 +1638,7 @@ declare module 'gl-matrix' {
|
||||
* @param a the source matrix
|
||||
* @returns out
|
||||
*/
|
||||
public static invert(out: mat2d, a: mat2d): mat2d;
|
||||
public static invert(out: mat2d, a: mat2d): mat2d | null;
|
||||
|
||||
/**
|
||||
* Calculates the determinant of a mat2d
|
||||
@@ -1918,7 +1918,7 @@ declare module 'gl-matrix' {
|
||||
* @param a the source matrix
|
||||
* @returns out
|
||||
*/
|
||||
public static invert(out: mat3, a: mat3): mat3;
|
||||
public static invert(out: mat3, a: mat3): mat3 | null;
|
||||
|
||||
/**
|
||||
* Calculates the adjugate of a mat3
|
||||
@@ -2054,7 +2054,7 @@ declare module 'gl-matrix' {
|
||||
*
|
||||
* @returns out
|
||||
*/
|
||||
public static normalFromMat4(out: mat3, a: mat4): mat3;
|
||||
public static normalFromMat4(out: mat3, a: mat4): mat3 | null;
|
||||
|
||||
/**
|
||||
* Returns a string representation of a mat3
|
||||
@@ -2242,7 +2242,7 @@ declare module 'gl-matrix' {
|
||||
* @param a the source matrix
|
||||
* @returns out
|
||||
*/
|
||||
public static invert(out: mat4, a: mat4): mat4;
|
||||
public static invert(out: mat4, a: mat4): mat4 | null;
|
||||
|
||||
/**
|
||||
* Calculates the adjugate of a mat4
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": false,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
@@ -16,4 +16,4 @@
|
||||
"index.d.ts",
|
||||
"gl-matrix-tests.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-2
@@ -1,6 +1,5 @@
|
||||
// Type definitions for libphonenumber v7.4.3
|
||||
// Project: https://github.com/googlei18n/libphonenumber
|
||||
// Project: https://github.com/seegno/google-libphonenumber
|
||||
// Project: https://github.com/googlei18n/libphonenumber, https://github.com/seegno/google-libphonenumber
|
||||
// Definitions by: Leon Yu <https://github.com/leonyu>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
|
||||
Vendored
+15
-6
@@ -2091,7 +2091,7 @@ declare module "graphql/error/GraphQLError" {
|
||||
*
|
||||
* Enumerable, and appears in the result of JSON.stringify().
|
||||
*/
|
||||
locations: Array<{ line: number, column: number }> | void;
|
||||
locations?: Array<{ line: number, column: number }> | void;
|
||||
|
||||
/**
|
||||
* An array describing the JSON-path into the execution response which
|
||||
@@ -2099,28 +2099,37 @@ declare module "graphql/error/GraphQLError" {
|
||||
*
|
||||
* Enumerable, and appears in the result of JSON.stringify().
|
||||
*/
|
||||
path: Array<string | number> | void;
|
||||
path?: Array<string | number> | void;
|
||||
|
||||
/**
|
||||
* An array of GraphQL AST Nodes corresponding to this error.
|
||||
*/
|
||||
nodes: Array<ASTNode> | void;
|
||||
nodes?: Array<ASTNode> | void;
|
||||
|
||||
/**
|
||||
* The source GraphQL document corresponding to this error.
|
||||
*/
|
||||
source: Source | void;
|
||||
source?: Source | void;
|
||||
|
||||
/**
|
||||
* An array of character offsets within the source GraphQL document
|
||||
* which correspond to this error.
|
||||
*/
|
||||
positions: Array<number> | void;
|
||||
positions?: Array<number> | void;
|
||||
|
||||
/**
|
||||
* The original error thrown from a field resolver during execution.
|
||||
*/
|
||||
originalError: Error;
|
||||
originalError?: Error;
|
||||
|
||||
constructor(
|
||||
message: string,
|
||||
nodes?: Array<any>,
|
||||
source?: Source,
|
||||
positions?: Array<number>,
|
||||
path?: Array<string | number>,
|
||||
originalError?: Error,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Vendored
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"gulp-angular-templatecache.d.ts",
|
||||
"index.d.ts",
|
||||
"gulp-angular-templatecache-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"gulp-help-doc.d.ts",
|
||||
"index.d.ts",
|
||||
"gulp-help-doc-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"gulp-insert.d.ts",
|
||||
"index.d.ts",
|
||||
"gulp-insert-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"html-pdf.d.ts",
|
||||
"index.d.ts",
|
||||
"html-pdf-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
///<reference path="html-webpack-plugin.d.ts" />
|
||||
|
||||
import {Configuration} from "webpack";
|
||||
import HtmlWebpackPlugin = require("html-webpack-plugin");
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"html-webpack-plugin.d.ts",
|
||||
"index.d.ts",
|
||||
"html-webpack-plugin-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"imagemapster.d.ts",
|
||||
"index.d.ts",
|
||||
"imagemapster-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"intl-tel-input.d.ts",
|
||||
"index.d.ts",
|
||||
"intl-tel-input-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -14,7 +14,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"inversify-express-utils.d.ts",
|
||||
"index.d.ts",
|
||||
"inversify-express-utils-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"istanbul-middleware.d.ts",
|
||||
"index.d.ts",
|
||||
"istanbul-middleware-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"jquery-mousewheel.d.ts",
|
||||
"index.d.ts",
|
||||
"jquery-mousewheel-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -13,7 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"jquery-truncate-html.d.ts",
|
||||
"index.d.ts",
|
||||
"jquery-truncate-html-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
/// <reference path="jsoneditor.d.ts" />
|
||||
|
||||
import JSONEditor, {JSONEditorMode, JSONEditorNode, JSONEditorOptions} from 'jsoneditor';
|
||||
|
||||
let options: JSONEditorOptions;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user