mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 08:58:23 +08:00
Lots of fixes
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitAny": false,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitAny": false,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"target": "es5",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
|
||||
@@ -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
3
evernote/index.d.ts
vendored
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitAny": false,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
/// <reference path="../cheerio/cheerio.d.ts" />
|
||||
|
||||
import cheerio = require('gulp-cheerio');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import coffeelint = require('gulp-coffeelint');
|
||||
import gulp = require('gulp');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import gulp = require("gulp");
|
||||
import * as concat from "gulp-concat";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import * as gulp from 'gulp';
|
||||
import * as csso from 'gulp-csso';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import * as gulp from 'gulp';
|
||||
import * as debug from 'gulp-debug';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
|
||||
import espower = require('gulp-espower');
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import * as gulp from "gulp";
|
||||
import * as flatten from "gulp-flatten";
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import gulp = require('gulp');
|
||||
import gzip = require('gulp-gzip');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
/// <reference path="../node/node.d.ts" />
|
||||
|
||||
import * as gulp from 'gulp';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import * as gulp from 'gulp';
|
||||
import * as htmlmin from 'gulp-htmlmin';
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import * as gulp from "gulp";
|
||||
import * as inject from "gulp-inject";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import * as gulp from 'gulp';
|
||||
import * as install from 'gulp-install';
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import gulp = require('gulp');
|
||||
import jasmineBrowser = require('gulp-jasmine-browser');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import * as gulp from 'gulp';
|
||||
import * as jeditor from 'gulp-json-editor';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import * as gulp from 'gulp';
|
||||
import * as gulpJspm from 'gulp-jspm';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import * as gulp from "gulp";
|
||||
import * as less from "gulp-less";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import * as gulp from "gulp";
|
||||
import * as minifyCSS from "gulp-minify-css";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import * as gulp from 'gulp';
|
||||
import * as minifyHtml from 'gulp-minify-html';
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import ngAnnotate = require('gulp-ng-annotate');
|
||||
import gulp = require('gulp');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import gulp = require('gulp');
|
||||
import path = require('path');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import gulp = require('gulp');
|
||||
import protractor = require('gulp-protractor');
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
/// <reference path="../gulp-rev/gulp-rev.d.ts" />
|
||||
|
||||
import * as gulp from 'gulp';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import gulp = require('gulp');
|
||||
import rev = require('gulp-rev');
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import shell = require('gulp-shell');
|
||||
import gulp = require('gulp');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import * as gulp from 'gulp';
|
||||
import * as size from 'gulp-size';
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import * as gulp from 'gulp';
|
||||
import * as stripDebug from 'gulp-strip-debug';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
/// <reference path="../svg-sprite/svg-sprite.d.ts" />
|
||||
|
||||
import svgSprite = require('gulp-svg-sprite');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import * as gulp from "gulp";
|
||||
import * as tsd from "gulp-tsd";
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
/// <reference path="../gulp-uglify/gulp-uglify.d.ts" />
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
import * as gulp from 'gulp';
|
||||
import * as watch from 'gulp-watch';
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
|
||||
/// <reference path="../browser-sync/browser-sync.d.ts"/>
|
||||
|
||||
import gulp = require("gulp");
|
||||
import browserSync = require("browser-sync");
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"files": ["handlebars.d.ts", "handlebars-tests.ts"],
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
"baseUrl": "../",
|
||||
"experimentalDecorators": true
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"files": ["ion.rangeSlider.d.ts", "ion.rangeSlider-tests.ts"],
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"files": ["iscroll.d.ts", "iscroll-tests.ts"],
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitAny": false,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"files": ["jasmine.d.ts", "jasmine-tests.ts"],
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitAny": false,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitAny": false,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitAny": false,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitAny": false,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitAny": false,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import gulp = require('gulp');
|
||||
import karma = require('karma');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
|
||||
import gulp = require("gulp");
|
||||
import mainBowerFiles = require("main-bower-files");
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"files": ["material-ui-0.13.4.d.ts", "material-ui-0.13.4-tests.tsx"],
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"files": ["material-ui.d.ts", "material-ui-tests.tsx"],
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
|
||||
@@ -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
2
moment/index.d.ts
vendored
@@ -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.
|
||||
*
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"files": ["node.d.ts", "node-tests.d.ts"],
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
|
||||
2
physijs/physijs.d.ts
vendored
2
physijs/physijs.d.ts
vendored
@@ -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;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"files": ["react.d.ts", "react-tests.d.ts"],
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
"baseUrl": "../",
|
||||
"jsx": "react"
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
"baseUrl": "../",
|
||||
"jsx": "react"
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
"baseUrl": "../",
|
||||
"jsx": "react"
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitAny": false,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
|
||||
4
ref-union/index.d.ts
vendored
4
ref-union/index.d.ts
vendored
@@ -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
1
ref/index.d.ts
vendored
@@ -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. */
|
||||
|
||||
@@ -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;
|
||||
2
restful.js/index.d.ts
vendored
2
restful.js/index.d.ts
vendored
@@ -238,4 +238,4 @@ export interface ResponseInterceptorReturnValue {
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export declare default function restful(endpoint: string): Api;
|
||||
export default function restful(endpoint: string): Api;
|
||||
|
||||
@@ -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
|
||||
});
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitAny": false,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
|
||||
@@ -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
2
rsmq/rsmq.d.ts
vendored
@@ -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;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/// <reference path="rsync.d.ts"/>
|
||||
|
||||
import * as Rsync from 'rsync';
|
||||
|
||||
// --------------------------
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
import gulp = require("gulp");
|
||||
import tmp = require("run-sequence");
|
||||
var runSequence = tmp.use(gulp);
|
||||
|
||||
9
safari-extension-content/tsconfig.json
Normal file
9
safari-extension-content/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitAny": false,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitAny": false,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitAny": false,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
{
|
||||
"files": ["sencha_touch.d.ts", "SenchaTouch-Tests.ts"],
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitAny": false,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
|
||||
@@ -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("", "");
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"files": ["sequelize.d.ts", "sequelize-tests.d.ts"],
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitAny": false,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitAny": false,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"files": ["signalr.d.ts", "signalr-tests.d.ts"],
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user