Lots of fixes

This commit is contained in:
Ryan Cavanaugh
2016-05-04 16:30:29 -07:00
parent ded70421be
commit 33686b47c5
139 changed files with 196 additions and 207 deletions

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitAny": false,
"strictNullChecks": false,
"baseUrl": "../"
}

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitAny": false,
"strictNullChecks": false,
"baseUrl": "../"
}

View File

@@ -1,7 +1,7 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"target": "es5",
"noImplicitAny": true,
"strictNullChecks": false,
"baseUrl": "../"

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import gulp = require("gulp");
import * as es from "event-stream";

3
evernote/index.d.ts vendored
View File

@@ -3,9 +3,6 @@
// Definitions by: Zachary Collins <https://github.com/corps/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../thrift/thrift.d.ts"/>
import { Thrift } from "thrift";
declare namespace Evernote {

View File

@@ -1,9 +1,11 @@
{
"files": ["fixed-data-table.d.ts", "fixed-data-table-tests.tsx"],
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": false,
"baseUrl": "../"
"baseUrl": "../",
"jsx": "react"
}
}

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitAny": false,
"strictNullChecks": false,
"baseUrl": "../"
}

View File

@@ -1,5 +1,5 @@
/// <reference path="./gulp-autoprefixer.d.ts"/>
/// <reference path="../gulp/gulp.d.ts"/>
import * as gulp from "gulp";
import * as autoprefixer from "gulp-autoprefixer";

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
/// <reference path="../cheerio/cheerio.d.ts" />
import cheerio = require('gulp-cheerio');

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import coffeelint = require('gulp-coffeelint');
import gulp = require('gulp');

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import gulp = require("gulp");
import * as concat from "gulp-concat";

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import * as gulp from 'gulp';
import * as csso from 'gulp-csso';

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import * as gulp from 'gulp';
import * as debug from 'gulp-debug';

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import espower = require('gulp-espower');

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
/// <reference path="../gulp-less/gulp-less.d.ts" />
/// <reference path="../gulp-concat/gulp-concat.d.ts" />

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import * as gulp from "gulp";
import * as flatten from "gulp-flatten";

View File

@@ -1,5 +1,5 @@
/// <reference path="./gulp-gh-pages.d.ts"/>
/// <reference path="../gulp/gulp.d.ts"/>
import * as gulp from "gulp";
import * as ghPages from "gulp-gh-pages";

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import gulp = require('gulp');
import gzip = require('gulp-gzip');

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
/// <reference path="../node/node.d.ts" />
import * as gulp from 'gulp';

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import * as gulp from 'gulp';
import * as htmlmin from 'gulp-htmlmin';

View File

@@ -1,5 +1,5 @@
/// <reference path="./gulp-if.d.ts"/>
/// <reference path="../gulp/gulp.d.ts"/>
import gulp = require('gulp');
import _if = require('gulp-if');

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import * as gulp from "gulp";
import * as inject from "gulp-inject";

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import * as gulp from 'gulp';
import * as install from 'gulp-install';

View File

@@ -1,5 +1,5 @@
/// <reference path="./gulp-istanbul.d.ts"/>
/// <reference path="../gulp/gulp.d.ts"/>
import gulp = require("gulp");
import istanbul = require("gulp-istanbul");

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import gulp = require('gulp');
import jasmineBrowser = require('gulp-jasmine-browser');

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import * as gulp from 'gulp';
import * as jeditor from 'gulp-json-editor';

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import * as gulp from 'gulp';
import * as gulpJspm from 'gulp-jspm';

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import * as gulp from "gulp";
import * as less from "gulp-less";

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import * as gulp from "gulp";
import * as minifyCSS from "gulp-minify-css";

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import * as gulp from 'gulp';
import * as minifyHtml from 'gulp-minify-html';

View File

@@ -1,5 +1,5 @@
/// <reference path="./gulp-mocha.d.ts"/>
/// <reference path="../gulp/gulp.d.ts"/>
import * as gulp from "gulp";
import * as mocha from "gulp-mocha";

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import ngAnnotate = require('gulp-ng-annotate');
import gulp = require('gulp');

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import gulp = require('gulp');
import path = require('path');

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import gulp = require('gulp');
import protractor = require('gulp-protractor');

View File

@@ -1,5 +1,5 @@
/// <reference path="./gulp-rename.d.ts"/>
/// <reference path="../gulp/gulp.d.ts"/>
import gulp = require("gulp");
import rename = require("gulp-rename");

View File

@@ -1,5 +1,5 @@
/// <reference path="./gulp-replace.d.ts"/>
/// <reference path="../gulp/gulp.d.ts"/>
import * as gulp from "gulp";
import * as replace from "gulp-replace";

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
/// <reference path="../gulp-rev/gulp-rev.d.ts" />
import * as gulp from 'gulp';

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import gulp = require('gulp');
import rev = require('gulp-rev');

View File

@@ -1,5 +1,5 @@
/// <reference path="./gulp-ruby-sass.d.ts"/>
/// <reference path="../gulp/gulp.d.ts"/>
import * as gulp from "gulp";
import * as sass from "gulp-ruby-sass";

View File

@@ -1,5 +1,5 @@
/// <reference path="./gulp-sass.d.ts"/>
/// <reference path="../gulp/gulp.d.ts"/>
import gulp = require("gulp");
import * as sass from "gulp-sass";

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import shell = require('gulp-shell');
import gulp = require('gulp');

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import * as gulp from 'gulp';
import * as size from 'gulp-size';

View File

@@ -1,5 +1,5 @@
/// <reference path="./gulp-sourcemaps.d.ts"/>
/// <reference path="../gulp/gulp.d.ts"/>
import gulp = require("gulp");
import sourcemaps = require("gulp-sourcemaps");

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import * as gulp from 'gulp';
import * as stripDebug from 'gulp-strip-debug';

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
/// <reference path="../svg-sprite/svg-sprite.d.ts" />
import svgSprite = require('gulp-svg-sprite');

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import * as gulp from "gulp";
import * as tsd from "gulp-tsd";

View File

@@ -1,6 +1,3 @@
/// <reference path="gulp-tslint.d.ts"/>
/// <reference path="../gulp/gulp.d.ts"/>
import * as gulp from 'gulp';
import * as tslint from 'gulp-tslint';
import vinyl = require('../vinyl');

View File

@@ -1,5 +1,5 @@
/// <reference path="./gulp-typedoc.d.ts"/>
/// <reference path="../gulp/gulp.d.ts"/>
import gulp = require("gulp");
import typedoc = require("gulp-typedoc");

View File

@@ -1,5 +1,5 @@
/// <reference path="./gulp-typescript.d.ts"/>
/// <reference path="../gulp/gulp.d.ts"/>
import gulp = require("gulp");
import typescript = require("gulp-typescript");

View File

@@ -1,5 +1,5 @@
/// <reference path="gulp-uglify.d.ts"/>
/// <reference path="../gulp/gulp.d.ts"/>
import * as gulp from 'gulp';
import * as uglify from 'gulp-uglify';

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
/// <reference path="../gulp-uglify/gulp-uglify.d.ts" />

View File

@@ -1,6 +1,3 @@
/// <reference path="../gulp/gulp.d.ts" />
import * as gulp from 'gulp';
import * as watch from 'gulp-watch';

View File

@@ -1,6 +1,3 @@
/// <reference path="../browser-sync/browser-sync.d.ts"/>
import gulp = require("gulp");
import browserSync = require("browser-sync");

View File

@@ -1,4 +1,5 @@
{
"files": ["handlebars.d.ts", "handlebars-tests.ts"],
"compilerOptions": {
"module": "commonjs",
"target": "es6",

View File

@@ -4,6 +4,7 @@
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": false,
"baseUrl": "../"
"baseUrl": "../",
"experimentalDecorators": true
}
}

View File

@@ -1,4 +1,5 @@
{
"files": ["ion.rangeSlider.d.ts", "ion.rangeSlider-tests.ts"],
"compilerOptions": {
"module": "commonjs",
"target": "es6",

View File

@@ -1,4 +1,5 @@
{
"files": ["iscroll.d.ts", "iscroll-tests.ts"],
"compilerOptions": {
"module": "commonjs",
"target": "es6",

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitAny": false,
"strictNullChecks": false,
"baseUrl": "../"
}

View File

@@ -1,4 +1,5 @@
{
"files": ["jasmine.d.ts", "jasmine-tests.ts"],
"compilerOptions": {
"module": "commonjs",
"target": "es6",

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitAny": false,
"strictNullChecks": false,
"baseUrl": "../"
}

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitAny": false,
"strictNullChecks": false,
"baseUrl": "../"
}

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitAny": false,
"strictNullChecks": false,
"baseUrl": "../"
}

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitAny": false,
"strictNullChecks": false,
"baseUrl": "../"
}

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitAny": false,
"strictNullChecks": false,
"baseUrl": "../"
}

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import gulp = require('gulp');
import karma = require('karma');

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import gulp = require("gulp");
import mainBowerFiles = require("main-bower-files");

View File

@@ -1,4 +1,5 @@
{
"files": ["material-ui-0.13.4.d.ts", "material-ui-0.13.4-tests.tsx"],
"compilerOptions": {
"module": "commonjs",
"target": "es6",

View File

@@ -1,4 +1,5 @@
{
"files": ["material-ui.d.ts", "material-ui-tests.tsx"],
"compilerOptions": {
"module": "commonjs",
"target": "es6",

View File

@@ -1,5 +1,5 @@
/// <reference path="../gulp/gulp.d.ts" />
import gulp = require('gulp');
import * as merge2 from "merge2";

2
moment/index.d.ts vendored
View File

@@ -178,7 +178,7 @@ declare namespace moment {
* @param unitOfTime the unit of time you want to subtract (eg "years" / "hours" etc)
* @param amount the amount you want to subtract
*/
subtract(amount: string|string, unitOfTime: string): Moment;
subtract(amount: number|string, unitOfTime: string): Moment;
/**
* Mutates the original moment by subtracting time.
*

View File

@@ -1,4 +1,5 @@
{
"files": ["node.d.ts", "node-tests.d.ts"],
"compilerOptions": {
"module": "commonjs",
"target": "es6",

View File

@@ -3,7 +3,7 @@
// Definitions by: Satoru Kimura <https://github.com/gyohk>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../three/three.d.ts" />
declare namespace Physijs {
export function noConflict():Object;

View File

@@ -1,4 +1,5 @@
{
"files": ["react.d.ts", "react-tests.d.ts"],
"compilerOptions": {
"module": "commonjs",
"target": "es6",

View File

@@ -4,6 +4,7 @@
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": false,
"baseUrl": "../"
"baseUrl": "../",
"jsx": "react"
}
}

View File

@@ -4,6 +4,7 @@
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": false,
"baseUrl": "../"
"baseUrl": "../",
"jsx": "react"
}
}

View File

@@ -4,6 +4,7 @@
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": false,
"baseUrl": "../"
"baseUrl": "../",
"jsx": "react"
}
}

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitAny": false,
"strictNullChecks": false,
"baseUrl": "../"
}

View File

@@ -3,10 +3,6 @@
// Definitions by: Paul Loyd <https://github.com/loyd>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../ref/ref.d.ts" />
import ref = require('ref');
/**

1
ref/index.d.ts vendored
View File

@@ -3,6 +3,7 @@
// Definitions by: Paul Loyd <https://github.com/loyd>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
export interface Type {
/** The size in bytes required to hold this datatype. */

View File

@@ -3,12 +3,13 @@
// Definitions by: Nobuhiro Nakamura <https://github.com/lefb766>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module "domReady" {
interface DomReady {
(callback: () => any): DomReady;
version: string;
}
interface DomReady {
(callback: () => any): DomReady;
version: string;
let domReady: DomReady;
export = domReady;
}
declare let domReady: DomReady;
export = domReady;

View File

@@ -238,4 +238,4 @@ export interface ResponseInterceptorReturnValue {
url?: string;
}
export declare default function restful(endpoint: string): Api;
export default function restful(endpoint: string): Api;

View File

@@ -1,4 +1,3 @@
import restful, {
Api, MemberResponse, CollectionResponse, ResponseBody, CollectionEndpoint, MemberEndpoint,
} from 'restful.js';
@@ -96,18 +95,18 @@ articleMember = api.one('articles', 1); // http://api.example.com/articles/1
commentMember = articleMember.one('comments', 3); // http://api.example.com/articles/1/comments/3
commentMember.get()
.then((response: MemberResponse<Comment>) => {
var commentEntity = response.body();
var commentEntity = response.body();
// You can also call `all` and `one` on an entity
return commentEntity.all('authors').getAll(); // http://api.example.com/articles/1/comments/3/authors
}).then((response: CollectionResponse<Author>) => {
var authorEntities = response.body();
// You can also call `all` and `one` on an entity
return commentEntity.all('authors').getAll(); // http://api.example.com/articles/1/comments/3/authors
}).then((response: CollectionResponse<Author>) => {
var authorEntities = response.body();
authorEntities.forEach((authorEntity: ResponseBody<Author>) => {
var author = authorEntity.data();
console.log(author.name);
authorEntities.forEach((authorEntity: ResponseBody<Author>) => {
var author = authorEntity.data();
console.log(author.name);
});
});
});
// configure the api
api.header('AuthToken', 'test');
@@ -144,32 +143,37 @@ resource.addFullRequestInterceptor(function(params, headers, data, method, url)
//...
// all args had been modified
return {
params: params,
headers: headers,
data: data,
method: method,
url: url
};
if (resource === null) {
return {
params: params,
headers: headers,
data: data,
method: method,
url: url
};
} else {
// just return modified arguments
return {
headers: headers,
data: data
};
// just return modified arguments
return {
headers: headers,
data: data
};
}
});
resource.addFullResponseInterceptor(function(data, headers, method, url) {
// all args had been modified (method and url is read only)
return {
headers: headers,
data: data
};
// just return modified arguments
return {
headers: headers
};
if (url) {
return {
headers: headers,
data: data
};
} else {
// just return modified arguments
return {
headers: headers
};
}
});
//
@@ -193,5 +197,5 @@ commentMember
.get()
.then(function(commentEntity) { /* */ })
.catch(function(err) {
// deal with the error
});
// deal with the error
});

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitAny": false,
"strictNullChecks": false,
"baseUrl": "../"
}

View File

@@ -1,5 +1,3 @@
/// <reference path="./riot-api-nodejs.d.ts"/>
import * as Api from "riot-api-nodejs";
let ClassicApi = new Api.ClassicAPI([""], Api.region_e.EUW);

2
rsmq/rsmq.d.ts vendored
View File

@@ -3,8 +3,6 @@
// Definitions by: Qubo <https://github.com/MugeSo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path='../redis/redis.d.ts'/>
declare namespace RedisSMQ {
interface CallbackT<R> {
(e?:Error, res?:R): void;

View File

@@ -1,5 +1,3 @@
/// <reference path="rsync.d.ts"/>
import * as Rsync from 'rsync';
// --------------------------

View File

@@ -1,6 +1,3 @@
/// <reference path="../gulp/gulp.d.ts" />
import gulp = require("gulp");
import tmp = require("run-sequence");
var runSequence = tmp.use(gulp);

View File

@@ -0,0 +1,9 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": false,
"baseUrl": "../"
}
}

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitAny": false,
"strictNullChecks": false,
"baseUrl": "../"
}

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitAny": false,
"strictNullChecks": false,
"baseUrl": "../"
}

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitAny": false,
"strictNullChecks": false,
"baseUrl": "../"
}

View File

@@ -1,8 +1,9 @@
{
"files": ["sencha_touch.d.ts", "SenchaTouch-Tests.ts"],
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitAny": false,
"strictNullChecks": false,
"baseUrl": "../"
}

View File

@@ -1,6 +1,4 @@
/// <reference path="sequelize-fixtures.d.ts" />
import Sequelize = require('../sequelize');
import Sequelize = require('sequelize');
import SequelizeFixtures = require('sequelize-fixtures');
var sequelize = new Sequelize("", "");

View File

@@ -1,4 +1,5 @@
{
"files": ["sequelize.d.ts", "sequelize-tests.d.ts"],
"compilerOptions": {
"module": "commonjs",
"target": "es6",

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitAny": false,
"strictNullChecks": false,
"baseUrl": "../"
}

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"noImplicitAny": false,
"strictNullChecks": false,
"baseUrl": "../"
}

View File

@@ -1,4 +1,5 @@
{
"files": ["signalr.d.ts", "signalr-tests.d.ts"],
"compilerOptions": {
"module": "commonjs",
"target": "es6",

View File

@@ -1,7 +1,7 @@
/// <reference path="./slick.autotooltips.d.ts" />
var grid = new Slick.Grid("#myGrid", [], [], {});
grid.registerPlugin(new Slick.AutoTooltips({
var tgrid = new Slick.Grid("#myGrid", [], [], {});
tgrid.registerPlugin(new Slick.AutoTooltips({
enableForCells: true,
enableForHeaderCells: true,
maxToolTipLength: 100

Some files were not shown because too many files have changed in this diff Show More