pass npm run all in new definition-tester

This commit is contained in:
vvakame
2016-02-10 00:16:03 +09:00
parent c6c87d3587
commit 9027703c0b
96 changed files with 681 additions and 799 deletions
+1 -3
View File
@@ -2,10 +2,8 @@
* Created by shearerbeard on 6/28/15.
*/
///<reference path="alt.d.ts"/>
///<reference path="../es6-promise/es6-promise.d.ts" />
import Alt = require("alt");
import Promise = require("es6-promise");
//New alt instance
var alt = new Alt();
@@ -74,7 +72,7 @@ var testSource:AltJS.Source = {
fakeLoad():AltJS.SourceModel<string> {
return {
remote() {
return new Promise.Promise<string>((res:any, rej:any) => {
return new Promise<string>((res:any, rej:any) => {
setTimeout(() => {
if(true) {
res("stuff");
-1
View File
@@ -4,7 +4,6 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
///<reference path="../react/react.d.ts"/>
///<reference path="../es6-promise/es6-promise.d.ts" />
declare module AltJS {
-2
View File
@@ -3,8 +3,6 @@
// Definitions by: Matti Lehtinen <https://github.com/MattiLehtinen/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../es6-promise/es6-promise.d.ts"/>
declare module "amazon-product-api" {
interface ICredentials {
-1
View File
@@ -4,7 +4,6 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="./angular.d.ts" />
/// <reference path="../es6-promise/es6-promise.d.ts" />
declare module angular {
/**
+2 -6
View File
@@ -3,11 +3,7 @@
// Definitions by: Gorgi Kosev <https://github.com/spion>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../bluebird/bluebird.d.ts" />
declare module "anydb-sql" {
import Promise = require('bluebird');
interface AnyDBPool extends anydbSQL.DatabaseConnection {
query:(text:string, values:any[], callback:(err:Error, result:any)=>void)=>void
begin:()=>anydbSQL.Transaction
@@ -61,7 +57,7 @@ declare module "anydb-sql" {
getWithin(tx:DatabaseConnection):Promise<T>
exec():Promise<void>
all():Promise<T[]>
execWithin(tx:DatabaseConnection):Promise<void>
execWithin(tx:DatabaseConnection):Promise<void>
allWithin(tx:DatabaseConnection):Promise<T[]>
toQuery():QueryLike;
}
@@ -191,4 +187,4 @@ declare module "anydb-sql" {
function anydbSQL(config:Object):anydbSQL.AnydbSql;
export = anydbSQL;
}
}
-1
View File
@@ -1 +0,0 @@
--noImplicitAny --module commonjs --target es5
+1 -2
View File
@@ -4,8 +4,7 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts" />
/// <reference path="../node/node-0.11.d.ts" />
/// <reference path="../es6-promise/es6-promise.d.ts" />
/// <reference path="../node/node.d.ts" />
interface JQuery {
/**
-2
View File
@@ -3,8 +3,6 @@
// Definitions by: François Skorzec <https://github.com/fskorzec>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
///<reference path="../es6-promise/es6-promise.d.ts"/>
interface Element {
_: BlissNS.BlissBindedElement<Element>;
}
+1
View File
@@ -0,0 +1 @@
--target es5 --noImplicitAny
+1
View File
@@ -0,0 +1 @@
--target es5 --noImplicitAny
-1
View File
@@ -1 +0,0 @@
--noImplicitAny --module commonjs --target es5
+71 -73
View File
@@ -4,8 +4,6 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../redis/redis.d.ts" />
/// <reference path="../es6-promise/es6-promise.d.ts" />
declare module "bull" {
@@ -27,23 +25,23 @@ declare module "bull" {
export interface Job {
id: string
/**
* The custom data passed when the job was created
*/
data: Object;
/**
* Report progress on a job
*/
progress(value: any): Promise<void>;
/**
* Removes a Job from the queue from all the lists where it may be included.
* @returns {Promise} A promise that resolves when the job is removed.
*/
remove(): Promise<void>;
/**
* Rerun a Job that has failed.
* @returns {Promise} A promise that resolves when the job is scheduled for retry.
@@ -52,12 +50,12 @@ declare module "bull" {
}
export interface Backoff {
/**
* Backoff type, which can be either `fixed` or `exponential`
*/
type: string
/**
* Backoff delay, in milliseconds
*/
@@ -67,26 +65,26 @@ declare module "bull" {
export interface AddOptions {
/**
* An amount of miliseconds to wait until this job can be processed.
* Note that for accurate delays, both server and clients should have their clocks synchronized
* Note that for accurate delays, both server and clients should have their clocks synchronized
*/
delay?: number;
/**
* A number of attempts to retry if the job fails [optional]
*/
attempts?: number;
/**
* Backoff setting for automatic retries if the job fails
*/
backoff?: number | Backoff
/**
* A boolean which, if true, adds the job to the right
* A boolean which, if true, adds the job to the right
* of the queue instead of the left (default false)
*/
lifo?: boolean;
/**
* The number of milliseconds after which the job should be fail with a timeout error
*/
@@ -94,119 +92,119 @@ declare module "bull" {
}
export interface Queue {
/**
* Defines a processing function for the jobs placed into a given Queue.
*
* The callback is called everytime a job is placed in the queue.
*
* The callback is called everytime a job is placed in the queue.
* It is passed an instance of the job as first argument.
*
* The done callback can be called with an Error instance, to signal that the job did not complete successfully,
*
* The done callback can be called with an Error instance, to signal that the job did not complete successfully,
* or with a result as second argument as second argument (e.g.: done(null, result);) when the job is successful.
* Errors will be passed as a second argument to the "failed" event;
* Errors will be passed as a second argument to the "failed" event;
* results, as a second argument to the "completed" event.
*
*
* concurrency: Bull will then call you handler in parallel respecting this max number.
*/
process(concurrency: number, callback: (job: Job, done: DoneCallback) => void): void;
/**
* Defines a processing function for the jobs placed into a given Queue.
*
* The callback is called everytime a job is placed in the queue.
*
* The callback is called everytime a job is placed in the queue.
* It is passed an instance of the job as first argument.
*
* The done callback can be called with an Error instance, to signal that the job did not complete successfully,
*
* The done callback can be called with an Error instance, to signal that the job did not complete successfully,
* or with a result as second argument as second argument (e.g.: done(null, result);) when the job is successful.
* Errors will be passed as a second argument to the "failed" event;
* Errors will be passed as a second argument to the "failed" event;
* results, as a second argument to the "completed" event.
*/
process(callback: (job: Job, done: DoneCallback) => void): void;
/**
* Defines a processing function for the jobs placed into a given Queue.
*
* The callback is called everytime a job is placed in the queue.
*
* The callback is called everytime a job is placed in the queue.
* It is passed an instance of the job as first argument.
*
* A promise must be returned to signal job completion.
* If the promise is rejected, the error will be passed as a second argument to the "failed" event.
*
* A promise must be returned to signal job completion.
* If the promise is rejected, the error will be passed as a second argument to the "failed" event.
* If it is resolved, its value will be the "completed" event's second argument.
*
*
* concurrency: Bull will then call you handler in parallel respecting this max number.
*/
process(concurrency: number, callback: (job: Job) => void): Promise<any>;
/**
* Defines a processing function for the jobs placed into a given Queue.
*
* The callback is called everytime a job is placed in the queue.
*
* The callback is called everytime a job is placed in the queue.
* It is passed an instance of the job as first argument.
*
* A promise must be returned to signal job completion.
* If the promise is rejected, the error will be passed as a second argument to the "failed" event.
*
* A promise must be returned to signal job completion.
* If the promise is rejected, the error will be passed as a second argument to the "failed" event.
* If it is resolved, its value will be the "completed" event's second argument.
*/
process(callback: (job: Job) => void): Promise<any>;
// process(callback: (job: Job, done?: DoneCallback) => void): Promise<any>;
/**
* Creates a new job and adds it to the queue.
* If the queue is empty the job will be executed directly,
* Creates a new job and adds it to the queue.
* If the queue is empty the job will be executed directly,
* otherwise it will be placed in the queue and executed as soon as possible.
*/
add(data: Object, opts?: AddOptions): Promise<Job>;
/**
* Returns a promise that resolves when the queue is paused.
* The pause is global, meaning that all workers in all queue instances for a given queue will be paused.
* A paused queue will not process new jobs until resumed,
* The pause is global, meaning that all workers in all queue instances for a given queue will be paused.
* A paused queue will not process new jobs until resumed,
* but current jobs being processed will continue until they are finalized.
*
*
* Pausing a queue that is already paused does nothing.
*/
pause(): Promise<void>;
/**
* Returns a promise that resolves when the queue is resumed after being paused.
* Returns a promise that resolves when the queue is resumed after being paused.
* The resume is global, meaning that all workers in all queue instances for a given queue will be resumed.
*
*
* Resuming a queue that is not paused does nothing.
*/
resume(): Promise<void>;
/**
* Returns a promise that returns the number of jobs in the queue, waiting or paused.
* Returns a promise that returns the number of jobs in the queue, waiting or paused.
* Since there may be other processes adding or processing jobs, this value may be true only for a very small amount of time.
*/
count(): Promise<number>;
/**
* Empties a queue deleting all the input lists and associated jobs.
*/
empty(): Promise<void>;
/**
* Closes the underlying redis client. Use this to perform a graceful shutdown.
*
* `close` can be called from anywhere, with one caveat:
*
* `close` can be called from anywhere, with one caveat:
* if called from within a job handler the queue won't close until after the job has been processed
*/
close(): Promise<void>;
/**
* Returns a promise that will return the job instance associated with the jobId parameter.
* Returns a promise that will return the job instance associated with the jobId parameter.
* If the specified job cannot be located, the promise callback parameter will be set to null.
*/
getJob(jobId: string): Promise<Job>;
/**
* Tells the queue remove all jobs created outside of a grace period in milliseconds.
* Tells the queue remove all jobs created outside of a grace period in milliseconds.
* You can clean the jobs with the following states: completed, waiting, active, delayed, and failed.
*/
clean(gracePeriod: number, jobsState?: string): Promise<Job[]>;
/**
* Listens to queue events
* 'ready', 'error', 'activ', 'progress', 'completed', 'failed', 'paused', 'resumed', 'cleaned'
@@ -244,19 +242,19 @@ declare module "bull" {
interface CompletedEventCallback extends EventCallback {
(job: Job, result: Object): void;
}
interface FailedEventCallback extends EventCallback {
(job: Job, error: Error): void;
}
interface PausedEventCallback extends EventCallback {
(): void;
}
interface ResumedEventCallback extends EventCallback {
(job?: Job): void;
}
/**
* @see clean() for details
*/
@@ -275,11 +273,11 @@ declare module "bull/lib/priority-queue" {
/**
* This is the Queue constructor of priority queue.
*
* It works same a normal queue, with same function and parameters.
* The only difference is that the Queue#add() allow an options opts.priority
*
* It works same a normal queue, with same function and parameters.
* The only difference is that the Queue#add() allow an options opts.priority
* that could take ["low", "normal", "medium", "hight", "critical"]. If no options provider, "normal" will be taken.
*
*
* The priority queue will process more often highter priority jobs than lower.
*/
function PQueue(queueName: string, redisPort: number, redisHost: string, redisOpt?: Redis.ClientOpts): PQueue.PriorityQueue;
@@ -296,10 +294,10 @@ declare module "bull/lib/priority-queue" {
export interface PriorityQueue extends Bull.Queue {
/**
* Creates a new job and adds it to the queue.
* If the queue is empty the job will be executed directly,
* Creates a new job and adds it to the queue.
* If the queue is empty the job will be executed directly,
* otherwise it will be placed in the queue and executed as soon as possible.
*/
add(data: Object, opts?: PQueue.AddOptions): Promise<Bull.Job>;
@@ -0,0 +1 @@
--target es5 --noImplicitAny
@@ -0,0 +1 @@
--target es5 --noImplicitAny
+1
View File
@@ -0,0 +1 @@
--target es5 --noImplicitAny
+1
View File
@@ -0,0 +1 @@
--target es5 --noImplicitAny
@@ -1 +0,0 @@
--experimentalDecorators --noImplicitAny --target ES5
+1
View File
@@ -0,0 +1 @@
--target es5 --noImplicitAny
+1
View File
@@ -0,0 +1 @@
--target es5 --noImplicitAny
+55 -57
View File
@@ -1,57 +1,55 @@
// Type definitions for cucumber-js
// Project: https://github.com/cucumber/cucumber-js
// Definitions by: Abraão Alves <https://github.com/abraaoalves>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../es6-promise/es6-promise.d.ts" />
declare module cucumber {
export interface CallbackStepDefinition{
pending : () => Thenable<any>;
(errror?:any):void;
}
interface StepDefinitionCode {
(...stepArgs: Array<string |CallbackStepDefinition>): Thenable<any> | any | void;
}
interface StepDefinitionOptions{
timeout?: number;
}
export interface StepDefinitions {
Given(pattern: RegExp | string, options: StepDefinitionOptions, code: StepDefinitionCode): void;
Given(pattern: RegExp | string, code: StepDefinitionCode): void;
When(pattern: RegExp | string, options: StepDefinitionOptions, code: StepDefinitionCode): void;
When(pattern: RegExp | string, code: StepDefinitionCode): void;
Then(pattern: RegExp | string, options: StepDefinitionOptions, code: StepDefinitionCode): void;
Then(pattern: RegExp | string, code: StepDefinitionCode): void;
setDefaultTimeout(time:number): void;
}
interface HookScenario{
attach(text: string, mimeType?: string, callback?: (err?:any) => void): void;
isFailed() : boolean;
}
interface HookCode {
(scenario: HookScenario, callback?: CallbackStepDefinition): void;
}
interface AroundCode{
(scenario: HookScenario, runScenario?: (error:string, callback?:Function)=>void): void;
}
export interface Hooks {
Before(code: HookCode): void;
After(code: HookCode): void;
Around(code: AroundCode):void;
setDefaultTimeout(time:number): void;
registerHandler(handlerOption:string, code:(event:any, callback:CallbackStepDefinition) =>void): void;
}
}
declare module 'cucumber'{
export = cucumber;
}
// Type definitions for cucumber-js
// Project: https://github.com/cucumber/cucumber-js
// Definitions by: Abraão Alves <https://github.com/abraaoalves>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module cucumber {
export interface CallbackStepDefinition{
pending : () => PromiseLike<any>;
(errror?:any):void;
}
interface StepDefinitionCode {
(...stepArgs: Array<string |CallbackStepDefinition>): PromiseLike<any> | any | void;
}
interface StepDefinitionOptions{
timeout?: number;
}
export interface StepDefinitions {
Given(pattern: RegExp | string, options: StepDefinitionOptions, code: StepDefinitionCode): void;
Given(pattern: RegExp | string, code: StepDefinitionCode): void;
When(pattern: RegExp | string, options: StepDefinitionOptions, code: StepDefinitionCode): void;
When(pattern: RegExp | string, code: StepDefinitionCode): void;
Then(pattern: RegExp | string, options: StepDefinitionOptions, code: StepDefinitionCode): void;
Then(pattern: RegExp | string, code: StepDefinitionCode): void;
setDefaultTimeout(time:number): void;
}
interface HookScenario{
attach(text: string, mimeType?: string, callback?: (err?:any) => void): void;
isFailed() : boolean;
}
interface HookCode {
(scenario: HookScenario, callback?: CallbackStepDefinition): void;
}
interface AroundCode{
(scenario: HookScenario, runScenario?: (error:string, callback?:Function)=>void): void;
}
export interface Hooks {
Before(code: HookCode): void;
After(code: HookCode): void;
Around(code: AroundCode):void;
setDefaultTimeout(time:number): void;
registerHandler(handlerOption:string, code:(event:any, callback:CallbackStepDefinition) =>void): void;
}
}
declare module 'cucumber'{
export = cucumber;
}
-1
View File
@@ -4,7 +4,6 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../glob/glob.d.ts"/>
/// <reference path="../es6-promise/es6-promise.d.ts" />
declare module "del" {
import glob = require("glob");
+1 -2
View File
@@ -1,5 +1,4 @@
/// <reference path="denodeify.d.ts" />
/// <reference path="../es6-promise/es6-promise.d.ts" />
/// <reference path="../node/node.d.ts" />
import denodeify = require("denodeify");
@@ -7,4 +6,4 @@ import fs = require('fs');
import cp = require('child_process');
const readFile = denodeify<string,string,string>(fs.readFile);
const exec = denodeify<string,string>(cp.exec, (err, stdout, stderr) => [err, stdout]);
const exec = denodeify<string,string>(cp.exec, (err, stdout, stderr) => [err, stdout]);
+3 -5
View File
@@ -3,8 +3,6 @@
// Definitions by: joaomoreno <https://github.com/joaomoreno/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../es6-promise/es6-promise.d.ts" />
declare module "denodeify" {
function _<R>(fn: _.F0<R>, transformer?: _.M): () => Promise<R>;
function _<A,R>(fn: _.F1<A,R>, transformer?: _.M): (a:A) => Promise<R>;
@@ -16,7 +14,7 @@ declare module "denodeify" {
function _<A,B,C,D,E,F,G,R>(fn: _.F7<A,B,C,D,E,F,G,R>, transformer?: _.M): (a:A, b:B, c:C, d:D, e:E, f:F, g:G) => Promise<R>;
function _<A,B,C,D,E,F,G,H,R>(fn: _.F8<A,B,C,D,E,F,G,H,R>, transformer?: _.M): (a:A, b:B, c:C, d:D, e:E, f:F, g:G, h:H) => Promise<R>;
function _(fn: _.F, transformer?: _.M): (...args: any[]) => Promise<any>;
module _ {
type Callback<R> = (err: Error, result: R) => any;
type F0<R> = (cb: Callback<R>) => any;
@@ -31,6 +29,6 @@ declare module "denodeify" {
type F = (...args: any[]) => any;
type M = (err: Error, ...args: any[]) => any[];
}
export = _;
}
}
@@ -0,0 +1 @@
--target es5 --noImplicitAny
@@ -0,0 +1 @@
--target es5 --noImplicitAny
@@ -0,0 +1 @@
--target es5 --noImplicitAny
@@ -0,0 +1 @@
--target es5 --noImplicitAny
+1
View File
@@ -0,0 +1 @@
--target es5 --noImplicitAny
-10
View File
@@ -1,10 +0,0 @@
/// <reference path="es6-promises.d.ts" />
// This is a makeshift definition because the project was renamed to es6-promise
// This file may be deleted at some point. Please use es6-promise package in future projects
// This test simply makes sure that the reference from es6-promises -> es6-promise works fine
// constructor test
var constructResult = new Promise<string>((resolve, reject) => {
resolve('a string');
});
-9
View File
@@ -1,9 +0,0 @@
// Type definitions for es6-promise
// Project: https://github.com/jakearchibald/ES6-Promise
// Definitions by: François de Campredon <https://github.com/fdecampredon/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../es6-promise/es6-promise.d.ts"/>
// This is a makeshift definition because the project was renamed to es6-promise
// This file may be deleted at some point. Please use es6-promise package in future projects
+1
View File
@@ -0,0 +1 @@
--target es5 --noImplicitAny
+1
View File
@@ -0,0 +1 @@
--target es5 --noImplicitAny
-1
View File
@@ -1 +0,0 @@
--noImplicitAny --target es6
-2
View File
@@ -3,8 +3,6 @@
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>, Igor Dultsev <https://github.com/yhaskell>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../es6-promise/es6-promise.d.ts" />
interface PartialTemplateOptions {
cache?: boolean;
precompiled?: boolean;
-1
View File
@@ -1,4 +1,3 @@
/// <reference path="../es6-promise/es6-promise.d.ts"/>
/// <reference path="freedom.d.ts" />
var freedomModule :freedom.FreedomInModuleEnv;
+1 -3
View File
@@ -3,8 +3,6 @@
// Definitions by: Jonathan Pevarnek <https://github.com/jpevarnek/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../es6-promise/es6-promise.d.ts"/>
declare module freedom {
// Common on/emit for message passing interfaces.
interface EventDispatchFn<T> { (eventType: string, value?: T): void; }
@@ -497,7 +495,7 @@ declare module freedom.Social {
interface UserProfile {
userId: string;
name: string;
status?: number;
status?: number;
url?: string;
// Image URI (e.g. data:image/png;base64,adkwe329...)
imageData?: string;
-2
View File
@@ -3,8 +3,6 @@
// Definitions by: Klaus Reimer <https://github.com/kayahr/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../es6-promise/es6-promise.d.ts" />
declare module "fullname" {
function fullname(): Promise<string>;
export = fullname;
-3
View File
@@ -3,12 +3,10 @@
// Definitions by: Qubo <https://github.com/tkQubo>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../bluebird/bluebird.d.ts" />
/// <reference path="../node/node.d.ts" />
/// <reference path="../gulp/gulp.d.ts" />
/// <reference path="../orchestrator/orchestrator.d.ts" />
declare module "gulp-help" {
import Orchestrator = require('orchestrator');
import gulp = require('gulp');
@@ -116,4 +114,3 @@ declare module "gulp-help" {
export = gulpHelp;
}
+73 -78
View File
@@ -5,12 +5,7 @@
//This is a total rewrite of Hakubo's original hapi.d.ts, as it was out of date/incomplete.
/// <reference path="../node/node.d.ts" />
/// <reference path="../bluebird/bluebird.d.ts" />
declare module "hapi" {
import http = require("http");
@@ -209,7 +204,7 @@ declare module "hapi" {
/**Initializes the server views manager
var Hapi = require('hapi');
var server = new Hapi.Server();
server.views({
engines: {
html: require('handlebars'),
@@ -229,8 +224,8 @@ declare module "hapi" {
/** Concludes the handler activity by setting a response and returning control over to the framework where:
erran optional error response.
resultan optional response payload.
Since an request can only have one response regardless if it is an error or success, the reply() method can only result in a single response value. This means that passing both an err and result will only use the err. There is no requirement for either err or result to be (or not) an Error object. The framework will simply use the first argument if present, otherwise the second. The method supports two arguments to be compatible with the common callback pattern of error first.
FLOW CONTROL:
Since an request can only have one response regardless if it is an error or success, the reply() method can only result in a single response value. This means that passing both an err and result will only use the err. There is no requirement for either err or result to be (or not) an Error object. The framework will simply use the first argument if present, otherwise the second. The method supports two arguments to be compatible with the common callback pattern of error first.
FLOW CONTROL:
When calling reply(), the framework waits until process.nextTick() to continue processing the request and transmit the response. This enables making changes to the returned response object before the response is sent. This means the framework will resume as soon as the handler method exits. To suspend this behavior, the returned response object supports the following methods: hold(), send() */
export interface IReply {
<T>(err: Error,
@@ -241,7 +236,7 @@ declare module "hapi" {
/** Note that if result is a Stream with a statusCode property, that status code will be used as the default response code. */
<T>(result: string|number|boolean|Buffer|stream.Stream | Promise<T> | T): Response;
/** Returns control back to the framework without setting a response. If called in the handler, the response defaults to an empty payload with status code 200.
/** Returns control back to the framework without setting a response. If called in the handler, the response defaults to an empty payload with status code 200.
* The data argument is only used for passing back authentication data and is ignored elsewhere. */
continue(credentialData?: any): void;
@@ -384,7 +379,7 @@ declare module "hapi" {
an object */
auth?: boolean|string|
{
/** the authentication mode.Defaults to 'required' if a server authentication strategy is configured, otherwise defaults to no authentication.Available values:
/** the authentication mode.Defaults to 'required' if a server authentication strategy is configured, otherwise defaults to no authentication.Available values:
'required'authentication is required.
'optional'authentication is optional (must be valid if present).
'try'same as 'optional' but allows for invalid authentication. */
@@ -570,7 +565,7 @@ declare module "hapi" {
*/
headers?: boolean | IJoi | IValidationFunction;
/** validation rules for incoming request path parameters, after matching the path against the route and extracting any parameters then stored in request.params.Values allowed:
trueany path parameters allowed (no validation performed).This is the default.
falseno path variables allowed.
@@ -635,8 +630,8 @@ declare module "hapi" {
tags?: string[]
}
/** server.realm http://hapijs.com/api#serverrealm
The realm object contains server-wide or plugin-specific state that can be shared across various methods. For example, when calling server.bind(),
the active realm settings.bind property is set which is then used by routes and extensions added at the same level (server root or plugin).
The realm object contains server-wide or plugin-specific state that can be shared across various methods. For example, when calling server.bind(),
the active realm settings.bind property is set which is then used by routes and extensions added at the same level (server root or plugin).
Realms are a limited version of a sandbox where plugins can maintain state used by the framework when adding routes, extensions, and other properties.
The server.realm object should be considered read-only and must not be changed directly except for the plugins property can be directly manipulated by the plugins (each setting its own under plugins[name]).
exports.register = function (server, options, next) {
@@ -717,9 +712,9 @@ declare module "hapi" {
lookupCompressed: boolean;
}
/**http://hapijs.com/api#route-handler
/**http://hapijs.com/api#route-handler
Built-in handlers
The framework comes with a few built-in handler types available by setting the route handler config to an object containing one of these keys.*/
export interface IRouteHandlerConfig {
/** generates a static file endpoint for serving a single file. file can be set to:
@@ -816,7 +811,7 @@ declare module "hapi" {
export interface IRouteConfiguration {
/** - (required) the absolute path used to match incoming requests (must begin with '/'). Incoming requests are compared to the configured paths based on the connection router configuration option.The path can include named parameters enclosed in {} which will be matched against literal values in the request as described in Path parameters.*/
path: string;
/** - (required) the HTTP method.Typically one of 'GET', 'POST', 'PUT', 'PATCH', 'DELETE', or 'OPTIONS'.Any HTTP method is allowed, except for 'HEAD'.Use '*' to match against any HTTP method (only when an exact match was not found, and any match with a specific method will be given a higher priority over a wildcard match).
/** - (required) the HTTP method.Typically one of 'GET', 'POST', 'PUT', 'PATCH', 'DELETE', or 'OPTIONS'.Any HTTP method is allowed, except for 'HEAD'.Use '*' to match against any HTTP method (only when an exact match was not found, and any match with a specific method will be given a higher priority over a wildcard match).
* Can be assigned an array of methods which has the same result as adding the same route with different methods manually.*/
method: string|string[];
/** - an optional domain string or an array of domain strings for limiting the route to only requests with a matching host header field.Matching is done against the hostname part of the header only (excluding the port).Defaults to all hosts.*/
@@ -829,7 +824,7 @@ declare module "hapi" {
/** Route public interface When route information is returned or made available as a property. http://hapijs.com/api#route-public-interface */
export interface IRoute {
/** the route HTTP method. */
method: string;
/** the route path. */
@@ -854,8 +849,8 @@ declare module "hapi" {
artifacts - optional authentication artifacts.
reply.continue(result) - is called if authentication succeeded where:
result - same object as result above.
When the scheme authenticate() method implementation calls reply() with an error condition, the specifics of the error affect whether additional authentication strategies will be attempted if configured for the route.
.If the err returned by the reply() method includes a message, no additional strategies will be attempted.
When the scheme authenticate() method implementation calls reply() with an error condition, the specifics of the error affect whether additional authentication strategies will be attempted if configured for the route.
.If the err returned by the reply() method includes a message, no additional strategies will be attempted.
If the err does not include a message but does include a scheme name (e.g. Boom.unauthorized(null, 'Custom')), additional strategies will be attempted in order of preference.
var server = new Hapi.Server();
server.connection({ port: 80 });
@@ -1015,12 +1010,12 @@ declare module "hapi" {
generateKey?(args: any[]): string;
}
/** Request object
The request object is created internally for each incoming request. It is different from the node.js request object received from the HTTP server callback (which is available in request.raw.req). The request object methods and properties change throughout the request lifecycle.
Request events
The request object supports the following events:
'peek' - emitted for each chunk of payload data read from the client connection. The event method signature is function(chunk, encoding).
'finish' - emitted when the request payload finished reading. The event method signature is function ().
'disconnect' - emitted when a request errors or aborts unexpectedly.
@@ -1028,25 +1023,25 @@ declare module "hapi" {
var Hapi = require('hapi');
var server = new Hapi.Server();
server.connection({ port: 80 });
server.ext('onRequest', function (request, reply) {
var hash = Crypto.createHash('sha1');
request.on('peek', function (chunk) {
hash.update(chunk);
});
request.once('finish', function () {
console.log(hash.digest('hex'));
});
request.once('disconnect', function () {
console.error('request aborted');
});
return reply.continue();
});*/
export class Request extends Events.EventEmitter {
@@ -1158,64 +1153,64 @@ declare module "hapi" {
slashes: any;
};
/** request.setUrl(url)
Available only in 'onRequest' extension methods.
Changes the request URI before the router begins processing the request where:
url - the new request path value.
var Hapi = require('hapi');
var server = new Hapi.Server();
server.connection({ port: 80 });
server.ext('onRequest', function (request, reply) {
// Change all requests to '/test'
request.setUrl('/test');
return reply.continue();
});*/
setUrl(url: string): void;
/** request.setMethod(method)
Available only in 'onRequest' extension methods.
Changes the request method before the router begins processing the request where:
method - is the request HTTP method (e.g. 'GET').
var Hapi = require('hapi');
var server = new Hapi.Server();
server.connection({ port: 80 });
server.ext('onRequest', function (request, reply) {
// Change all requests to 'GET'
request.setMethod('GET');
return reply.continue();
});*/
setMethod(method: string): void;
/** request.log(tags, [data, [timestamp]])
Always available.
Logs request-specific events. When called, the server emits a 'request' event which can be used by other listeners or plugins. The arguments are:
data - an optional message string or object with the application data being logged.
timestamp - an optional timestamp expressed in milliseconds. Defaults to Date.now() (now).
Any logs generated by the server internally will be emitted only on the 'request-internal' channel and will include the event.internal flag set to true.
var Hapi = require('hapi');
var server = new Hapi.Server();
server.connection({ port: 80 });
server.on('request', function (request, event, tags) {
if (tags.error) {
console.log(event);
}
});
var handler = function (request, reply) {
request.log(['test', 'error'], 'Test event');
return reply();
};
@@ -1228,9 +1223,9 @@ declare module "hapi" {
/** an optional timestamp expressed in milliseconds. Defaults to Date.now() (now).*/
timestamp?: number): void;
/** request.getLog([tags], [internal])
Always available.
Returns an array containing the events matching any of the tags specified (logical OR)
request.getLog();
request.getLog('error');
@@ -1245,38 +1240,38 @@ declare module "hapi" {
internal?: boolean): string[];
/** request.tail([name])
Available until immediately after the 'response' event is emitted.
Adds a request tail which has to complete before the request lifecycle is complete where:
name - an optional tail name used for logging purposes.
Returns a tail function which must be called when the tail activity is completed.
Tails are actions performed throughout the request lifecycle, but which may end after a response is sent back to the client. For example, a request may trigger a database update which should not delay sending back a response. However, it is still desirable to associate the activity with the request when logging it (or an error associated with it).
When all tails completed, the server emits a 'tail' event.
var Hapi = require('hapi');
var server = new Hapi.Server();
server.connection({ port: 80 });
var get = function (request, reply) {
var dbTail = request.tail('write to database');
db.save('key', 'value', function () {
dbTail();
});
return reply('Success!');
};
server.route({ method: 'GET', path: '/', handler: get });
server.on('tail', function (request) {
console.log('Request completed including db activity');
});*/
tail(
@@ -1284,34 +1279,34 @@ declare module "hapi" {
name?: string): Function;
}
/** Response events
The response object supports the following events:
'peek' - emitted for each chunk of data written back to the client connection. The event method signature is function(chunk, encoding).
'finish' - emitted when the response finished writing but before the client response connection is ended. The event method signature is function ().
var Crypto = require('crypto');
var Hapi = require('hapi');
var server = new Hapi.Server();
server.connection({ port: 80 });
server.ext('onPreResponse', function (request, reply) {
var response = request.response;
if (response.isBoom) {
return reply();
}
var hash = Crypto.createHash('sha1');
response.on('peek', function (chunk) {
hash.update(chunk);
});
response.once('finish', function () {
console.log(hash.digest('hex'));
});
return reply.continue();
});*/
export class Response extends Events.EventEmitter {
@@ -1413,7 +1408,7 @@ declare module "hapi" {
/** Server http://hapijs.com/api#server
rver object is the main application container. The server manages all incoming connections along with all the facilities provided by the framework. A server can contain more than one connection (e.g. listen to port 80 and 8080).
rver object is the main application container. The server manages all incoming connections along with all the facilities provided by the framework. A server can contain more than one connection (e.g. listen to port 80 and 8080).
Server events
The server object inherits from Events.EventEmitter and emits the following events:
'log' - events logged with server.log() and server events generated internally by the framework.
@@ -1735,7 +1730,7 @@ declare module "hapi" {
cache(options: ICatBoxCacheOptions): void;
/** server.connection([options])
Adds an incoming server connection
Adds an incoming server connection
Returns a server object with the new connection selected.
Must be called before any other server method that modifies connections is called for it to apply to the new connection (e.g. server.state()).
Note that the options object is deeply cloned (with the exception of listener which is shallowly copied) and cannot contain any values that are unsafe to perform deep copy on.
@@ -1873,8 +1868,8 @@ declare module "hapi" {
};
server.handler('test', handler);*/
handler<THandlerConfig>(name: string, method: (route: IRoute, options: THandlerConfig) => ISessionHandler): void;
/** When the server contains exactly one connection, injects a request into the sole connection simulating an incoming HTTP request without making an actual socket connection.
Injection is useful for testing purposes as well as for invoking routing logic internally without the overhead or limitations of the network stack.
/** When the server contains exactly one connection, injects a request into the sole connection simulating an incoming HTTP request without making an actual socket connection.
Injection is useful for testing purposes as well as for invoking routing logic internally without the overhead or limitations of the network stack.
Utilizes the [shot module | https://github.com/hapijs/shot ] for performing injections, with some additional options and response properties
* When the server contains more than one connection, each server.connections array member provides its own connection.inject().
var Hapi = require('hapi');
@@ -2212,4 +2207,4 @@ declare module "hapi" {
views(options: IServerViewsConfiguration): void;
}
}
}
@@ -1 +0,0 @@
--noImplicitAny --module commonjs --target es5
+1 -2
View File
@@ -1,9 +1,8 @@
// Type definitions for java 0.5.4
// Project: https://github.com/joeferner/java
// Project: https://github.com/joeferner/node-java
// Definitions by: Jim Lloyd <https://github.com/jimlloyd>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../bluebird/bluebird.d.ts" />
/// <reference path="../node/node.d.ts" />
// This is the core API exposed by https://github.com/joeferner/java.
+1
View File
@@ -0,0 +1 @@
--target es5 --noImplicitAny
+1
View File
@@ -0,0 +1 @@
--target es5 --noImplicitAny
+1
View File
@@ -0,0 +1 @@
--target es5 --noImplicitAny
+1
View File
@@ -0,0 +1 @@
--target es5 --noImplicitAny
@@ -1,6 +1,5 @@
/// <reference path="../jquery-ajax-chain/jquery-ajax-chain.d.ts" />
/// <reference path="../jquery/jquery.d.ts" />
/// <reference path="../core-js/core-js.d.ts" />
function test_public_methods(): void {
+276 -278
View File
File diff suppressed because it is too large Load Diff
-1
View File
@@ -1 +0,0 @@
--noImplicitAny --module commonjs --target es6
+2 -17
View File
@@ -4,21 +4,6 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module Less {
// Promise definitions from ../es6-promise/es6-promise.d.ts
interface Thenable<R> {
then<U>(onFulfilled?: (value: R) => U | Thenable<U>, onRejected?: (error: any) => U | Thenable<U>): Thenable<U>;
}
class Promise<R> implements Thenable<R> {
constructor(callback: (resolve : (value?: R | Thenable<R>) => void, reject: (error?: any) => void) => void);
then<U>(onFulfilled?: (value: R) => U | Thenable<U>, onRejected?: (error: any) => U | Thenable<U>): Promise<U>;
catch<U>(onRejected?: (error: any) => U | Thenable<U>): Promise<U>;
finally<U>(finallyCallback: () => any): Promise<U>;
}
interface RootFileInfo {
filename: string;
relativeUrls: boolean;
@@ -90,8 +75,8 @@ interface LessStatic {
render(input: string, callback: (error: Less.RenderError, output: Less.RenderOutput) => void): void;
render(input: string, options: Less.Options, callback: (error: Less.RenderError, output: Less.RenderOutput) => void): void;
render(input: string): Less.Promise<Less.RenderOutput>;
render(input: string, options: Less.Options): Less.Promise<Less.RenderOutput>;
render(input: string): Promise<Less.RenderOutput>;
render(input: string, options: Less.Options): Promise<Less.RenderOutput>;
version: number[];
}
+26 -28
View File
@@ -3,41 +3,39 @@
// Definitions by: yuichi david pichsenmeister <https://github.com/3x14159265>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../es6-promise/es6-promise.d.ts" />
interface LocalForageOptions {
driver?: string | LocalForageDriver | LocalForageDriver[];
name?: string;
size?: number;
storeName?: string;
version?: string;
description?: string;
}
interface LocalForageDriver {
_driver: string;
_initStorage(options: LocalForageOptions): void;
_support: boolean | Promise<boolean>;
clear(callback: (err: any) => void): void;
getItem(key: string, callback: (err: any, value: any) => void): void;
key(keyIndex: number, callback: (err: any, key: string) => void): void;
keys(callback: (err: any, keys: string[]) => void): void;
length(callback: (err: any, numberOfKeys: number) => void): void;
removeItem(key: string, callback: (err: any) => void): void;
setItem(key: string, value: any, callback: (err: any, value: any) => void): void;
}
@@ -45,15 +43,15 @@ interface LocalForage {
LOCALSTORAGE: string;
WEBSQL: string;
INDEXEDDB: string;
/**
* Set and persist localForage options. This must be called before any other calls to localForage are made, but can be called after localForage is loaded.
* Set and persist localForage options. This must be called before any other calls to localForage are made, but can be called after localForage is loaded.
* If you set any config values with this method they will persist after driver changes, so you can call config() then setDriver()
* @param {ILocalForageConfig} options?
*/
config(options: LocalForageOptions): boolean;
createInstance(options: LocalForageOptions): LocalForage;
driver(): LocalForageDriver;
/**
* Force usage of a particular driver or drivers, if available.
@@ -63,28 +61,28 @@ interface LocalForage {
setDriver(driver: string | string[], callback: () => void, errorCallback: (error: any) => void): void;
defineDriver(driver: LocalForageDriver): Promise<void>;
defineDriver(driver: LocalForageDriver, callback: () => void, errorCallback: (error: any) => void): void;
getItem<T>(key: string): Promise<T>;
getItem<T>(key: string, callback: (err: any, value: T) => void): void;
setItem<T>(key: string, value: T): Promise<T>;
setItem<T>(key: string, value: T, callback: (err: any, value: T) => void): void;
removeItem(key: string): Promise<void>;
removeItem(key: string, callback: (err: any) => void): void;
clear(): Promise<void>;
clear(callback: (err: any) => void): void;
length(): Promise<number>;
length(callback: (err: any, numberOfKeys: number) => void): void;
key(keyIndex: number): Promise<string>;
key(keyIndex: number, callback: (err: any, key: string) => void): void;
keys(): Promise<string[]>;
keys(callback: (err: any, keys: string[]) => void): void;
iterate(iteratee: (value: any, key: string, iterationNumber: number) => any): Promise<any>;
iterate(iteratee: (value: any, key: string, iterationNumber: number) => any,
callback: (err: any, result: any) => void): void;
@@ -93,4 +91,4 @@ interface LocalForage {
declare module "localforage" {
export var localforage: LocalForage;
export default localforage;
}
}
@@ -1 +0,0 @@
--experimentalDecorators --noImplicitAny --target ES5
-2
View File
@@ -3,8 +3,6 @@
// Definitions by: freshp86 <https://github.com/freshp86>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../es6-promise/es6-promise.d.ts"/>
declare module lf {
export enum Order { ASC, DESC }
@@ -1 +0,0 @@
--noImplicitAny --module commonjs --target es5
-1
View File
@@ -1 +0,0 @@
--noImplicitAny
@@ -0,0 +1 @@
--target es5 --noImplicitAny
@@ -0,0 +1 @@
--target es5 --noImplicitAny
@@ -1 +0,0 @@
--noImplicitAny --module commonjs --target es5 --experimentalDecorators
@@ -1 +0,0 @@
--noImplicitAny --module commonjs --target es5 --experimentalDecorators
+71 -72
View File
@@ -1,17 +1,16 @@
// Type definitions for MongoDB v2.1
// Project: https://github.com/mongodb/node-mongodb-native/tree/2.1
// Definitions by: Federico Caselli <https://github.com/CaselIT>
// Definitions by: Federico Caselli <https://github.com/CaselIT>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
// Documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/
/// <reference path='../node/node.d.ts' />
/// <reference path='../es6-promise/es6-promise.d.ts' />
declare module "mongodb" {
import {EventEmitter} from 'events';
// Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/MongoClient.html
export class MongoClient {
constructor();
@@ -28,13 +27,13 @@ declare module "mongodb" {
export interface MongoCallback<T> {
(error: MongoError, result: T): void;
}
// http://mongodb.github.io/node-mongodb-native/2.1/api/MongoError.html
export class MongoError extends Error {
constructor(message: string);
static create(options: Object): MongoError;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/MongoClient.html#.connect
export interface MongoClientOptions {
uri_decode_auth?: boolean;
@@ -44,7 +43,7 @@ declare module "mongodb" {
mongos?: MongosOptions;
promiseLibrary?: Object;
}
// See : http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html
export interface DbCreateOptions {
authSource?: string;
@@ -85,7 +84,7 @@ declare module "mongodb" {
isValid(mode: string): boolean;
static isValid(mode: string): boolean;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Server.html
export interface SocketOptions {
// Reconnect on error. default:false
@@ -99,7 +98,7 @@ declare module "mongodb" {
// TCP Socket timeout setting. default 0
socketTimeoutMS?: number;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Server.html
export interface ServerOptions {
// - specify the number of connections in the pool default:5
@@ -115,7 +114,7 @@ declare module "mongodb" {
reconnectTries?: number;
reconnectInterval?: number;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html
export interface ReplSetOptions {
ha?: boolean;
@@ -134,7 +133,7 @@ declare module "mongodb" {
sslPass?: Buffer | string;
socketOptions?: SocketOptions;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Mongos.html
export interface MongosOptions {
ha?: boolean;
@@ -150,7 +149,7 @@ declare module "mongodb" {
sslPass?: Buffer | string;
socketOptions?: SocketOptions;
}
// Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html
export class Db extends EventEmitter {
constructor(databaseName: string, serverConfig: Server | ReplSet | Mongos, options?: DbCreateOptions);
@@ -205,12 +204,12 @@ declare module "mongodb" {
// http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#dropDatabase
dropDatabase(): Promise<any>;
dropDatabase(callback: MongoCallback<any>): void;
//deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#ensureIndex
// ensureIndex(collectionName: any, fieldOrSpec: any, options: IndexOptions, callback: Function): void;
//deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#eval
// eval(code: any, parameters: any[], options?: any, callback?: MongoCallback<any>): void;
//http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#executeDbAdminCommand
executeDbAdminCommand(command: Object, callback: MongoCallback<any>): void;
executeDbAdminCommand(command: Object, options?: { readPreference?: ReadPreference | string, maxTimeMS?: number }): Promise<any>;
@@ -241,21 +240,21 @@ declare module "mongodb" {
stats(options?: { scale?: number }): Promise<any>;;
stats(options: { scale?: number }, callback: MongoCallback<any>): void;
}
// Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/Server.html
export class Server extends EventEmitter {
constructor(host: string, port: number, options?: ServerOptions);
connections(): Array<any>;
}
// Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html
export class ReplSet extends EventEmitter {
constructor(servers: Array<Server>, options?: ReplSetOptions);
connections(): Array<any>;
}
// Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html
export class Mongos extends EventEmitter {
constructor(servers: Array<Server>, options?: MongosOptions);
@@ -278,7 +277,7 @@ declare module "mongodb" {
max?: number;
autoIndexId?: boolean;
}
// http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#collection
export interface DbCollectionOptions {
w?: number | string;
@@ -291,7 +290,7 @@ declare module "mongodb" {
strict?: boolean;
readConcern?: { level: Object };
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#createIndex
export interface IndexOptions {
// The write concern.
@@ -321,7 +320,7 @@ declare module "mongodb" {
// Override the auto generated index name (useful if the resulting name is larger than 128 bytes)
name?: string;
}
// http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html
export interface Admin {
// http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#addUser
@@ -350,7 +349,7 @@ declare module "mongodb" {
ping(callback: MongoCallback<any>): void
//http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#profilingInfo
profilingInfo(): Promise<any>;
profilingInfo(callback: MongoCallback<any>): void
profilingInfo(callback: MongoCallback<any>): void
//http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#profilingLevel
profilingLevel(): Promise<any>;
profilingLevel(callback: MongoCallback<any>): void
@@ -375,7 +374,7 @@ declare module "mongodb" {
validateCollection(collectionNme: string, options?: Object): Promise<any>;
validateCollection(collectionNme: string, options: Object, callback: MongoCallback<any>): void;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#addUser
export interface AddUserOptions {
w?: number | string;
@@ -385,7 +384,7 @@ declare module "mongodb" {
customData?: Object;
roles?: Object[]
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#removeUser
export interface FSyncOptions {
w?: number | string;
@@ -399,7 +398,7 @@ declare module "mongodb" {
constructor(s?: string | number);
generationTime: number;
// Creates an ObjectID from a hex string representation of an ObjectID.
// hexString create a ObjectID from a passed in 24 byte hexstring.
static createFromHexString(hexString: string): ObjectID;
@@ -449,7 +448,7 @@ declare module "mongodb" {
valueOf(): number;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Long.html
export class Long {
constructor(low: number, high: number);
@@ -497,13 +496,13 @@ declare module "mongodb" {
toString(radix?: number): string;
xor(other: Long): Long;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/MaxKey.html
export class MaxKey { }
//http://mongodb.github.io/node-mongodb-native/2.1/api/MinKey.html
export class MinKey { }
//http://mongodb.github.io/node-mongodb-native/2.1/api/Timestamp.html
export class Timestamp {
constructor(low: number, high: number);
@@ -641,9 +640,9 @@ declare module "mongodb" {
indexInformation(options?: { full: boolean }): Promise<any>;
indexInformation(options: { full: boolean }, callback: MongoCallback<any>): void;
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#initializeOrderedBulkOp
initializeOrderedBulkOp(options: CollectionOptions): OrderedBulkOperation;
initializeOrderedBulkOp(options: CollectionOptions): OrderedBulkOperation;
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#initializeUnorderedBulkOp
initializeUnorderedBulkOp(options: CollectionOptions): OrderedBulkOperation;
initializeUnorderedBulkOp(options: CollectionOptions): OrderedBulkOperation;
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertMany
insertMany(docs: Object[], callback: MongoCallback<InsertWriteOpResult>): void
insertMany(docs: Object[], options?: CollectionInsertManyOptions): Promise<InsertWriteOpResult>;
@@ -692,7 +691,7 @@ declare module "mongodb" {
updateOne(filter: Object, update: Object, options?: ReplaceOneOptions): Promise<UpdateWriteOpResult>;
updateOne(filter: Object, update: Object, options: ReplaceOneOptions, callback: MongoCallback<UpdateWriteOpResult>): void;
}
// Documentation: http://docs.mongodb.org/manual/reference/command/collStats/
export interface CollStats {
// Namespace.
@@ -726,7 +725,7 @@ declare module "mongodb" {
wiredTiger: any;
indexDetails: any;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#aggregate
export interface CollectionAggrigationOptions {
readPreference?: ReadPreference | string;
@@ -744,7 +743,7 @@ declare module "mongodb" {
// Allow driver to bypass schema validation in MongoDB 3.2 or higher.
bypassDocumentValidation?: boolean;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertMany
export interface CollectionInsertManyOptions {
// The write concern.
@@ -758,7 +757,7 @@ declare module "mongodb" {
//Force server to assign _id values instead of driver.
forceServerObjectId?: boolean;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#bulkWrite
export interface CollectionBluckWriteOptions {
// The write concern.
@@ -774,7 +773,7 @@ declare module "mongodb" {
// Allow driver to bypass schema validation in MongoDB 3.2 or higher.
bypassDocumentValidation?: boolean;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~BulkWriteOpResult
export interface BulkWriteOpResultObject {
insertedCount?: number;
@@ -786,7 +785,7 @@ declare module "mongodb" {
upsertedIds?: any;
result?: any;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#count
export interface MongoCountPreferences {
// The limit of documents to count.
@@ -798,11 +797,11 @@ declare module "mongodb" {
// The preferred read preference
readPreference?: ReadPreference | string;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~deleteWriteOpResult
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~deleteWriteOpResult
export interface DeleteWriteOpResultObject {
//The raw result returned from MongoDB, field will vary depending on server version.
result: {
result: {
//Is 1 if the command executed correctly.
ok?: number;
//The total count of documents deleted.
@@ -813,7 +812,7 @@ declare module "mongodb" {
//The number of documents deleted.
deletedCount?: number;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~findAndModifyWriteOpResult
export interface FindAndModifyWriteOpResultObject {
//Document returned from findAndModify command.
@@ -823,7 +822,7 @@ declare module "mongodb" {
//Is 1 if the command executed correctly.
ok?: number;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOneAndReplace
export interface FindOneAndReplaceOption {
projection?: Object;
@@ -832,7 +831,7 @@ declare module "mongodb" {
upsert?: boolean;
returnOriginal?: boolean;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#geoHaystackSearch
export interface GeoHaystackSearchOptions {
readPreference?: ReadPreference | string;
@@ -840,7 +839,7 @@ declare module "mongodb" {
search?: Object;
limit?: number;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#geoNear
export interface GeoNearOptions {
readPreference?: ReadPreference | string;
@@ -853,7 +852,7 @@ declare module "mongodb" {
uniqueDocs?: boolean;
includeLocs?: boolean;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Code.html
export class Code {
constructor(code: string | Function, scope?: Object)
@@ -870,7 +869,7 @@ declare module "mongodb" {
//Specify a journal write concern.
j?: boolean;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html
export interface OrderedBulkOperation {
length: number;
@@ -883,7 +882,7 @@ declare module "mongodb" {
//http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html#insert
insert(doc: Object): OrderedBulkOperation;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/BulkWriteResult.html
export interface BulkWriteResult {
ok: boolean;
@@ -904,25 +903,25 @@ declare module "mongodb" {
getWriteErrors(): Array<Object>;
hasWriteErrors(): boolean;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/WriteError.html
export interface WriteError {
//Write concern error code.
code: number;
code: number;
//Write concern error original bulk operation index.
index: number;
index: number;
//Write concern error message.
errmsg: string;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/WriteConcernError.html
export interface WriteConcernError {
//Write concern error code.
code: number;
code: number;
//Write concern error message.
errmsg: string;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/FindOperatorsOrdered.html
export interface FindOperatorsOrdered {
delete(): OrderedBulkOperation;
@@ -932,7 +931,7 @@ declare module "mongodb" {
updateOne(doc: Object): OrderedBulkOperation;
upsert(): FindOperatorsOrdered;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html
export interface UnorderedBulkOperation {
//http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html#execute
@@ -944,7 +943,7 @@ declare module "mongodb" {
//http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html#insert
insert(doc: Object): UnorderedBulkOperation;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/FindOperatorsUnordered.html
export interface FindOperatorsUnordered {
length: number;
@@ -955,7 +954,7 @@ declare module "mongodb" {
updateOne(doc: Object): UnorderedBulkOperation;
upsert(): FindOperatorsUnordered;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~insertWriteOpResult
export interface InsertWriteOpResult {
insertedCount: number;
@@ -964,7 +963,7 @@ declare module "mongodb" {
connection: any;
result: { ok: number, n: number }
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertOne
export interface CollectionInsertOneOptions {
// The write concern.
@@ -980,7 +979,7 @@ declare module "mongodb" {
//Allow driver to bypass schema validation in MongoDB 3.2 or higher.
bypassDocumentValidation?: boolean
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~insertOneWriteOpResult
export interface InsertOneWriteOpResult {
insertedCount: number;
@@ -989,7 +988,7 @@ declare module "mongodb" {
connection: any;
result: { ok: number, n: number }
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#parallelCollectionScan
export interface ParallelCollectionScanOptions {
readPreference?: ReadPreference | string;
@@ -997,7 +996,7 @@ declare module "mongodb" {
numCursors?: number;
raw?: boolean;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#replaceOne
export interface ReplaceOneOptions {
upsert?: boolean;
@@ -1005,8 +1004,8 @@ declare module "mongodb" {
wtimeout?: number;
j?: boolean;
bypassDocumentValidation?: boolean;
}
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~updateWriteOpResult
export interface UpdateWriteOpResult {
result: { ok: number, n: number, nModified: number };
@@ -1016,7 +1015,7 @@ declare module "mongodb" {
upsertedCount: number;
upsertedId: { _id: ObjectID };
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#mapReduce
export interface MapReduceOptions {
readPreference?: ReadPreference | string;
@@ -1031,8 +1030,8 @@ declare module "mongodb" {
verbose?: boolean;
bypassDocumentValidation?: boolean
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/external-Readable.html
export interface Readable {
pause(): void;
@@ -1047,10 +1046,10 @@ declare module "mongodb" {
export interface Writable { }
export interface Stream { }
//http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#~resultCallback
export type CursorResult = any | void | boolean;
//http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html
export interface Cursor extends Readable, NodeJS.EventEmitter {
@@ -1145,7 +1144,7 @@ declare module "mongodb" {
//http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#wrap
wrap(stream: Stream): void;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#count
export interface CursorCommentOptions {
skip?: number;
@@ -1154,20 +1153,20 @@ declare module "mongodb" {
hint?: string;
readPreference?: ReadPreference | string;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#~iteratorCallback
export interface IteratorCallback {
(doc: any): void;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#~endCallback
export interface EndCallback {
(error: MongoError): void;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#~resultCallback
export type AggregationCursorResult = any | void;
//http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html
export interface AggregationCursor extends Readable, NodeJS.EventEmitter {
// http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#batchSize
@@ -1231,7 +1230,7 @@ declare module "mongodb" {
//http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#wrap
wrap(stream: Stream): void;
}
//http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html
export interface CommandCursor extends Readable, NodeJS.EventEmitter {
// http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#batchSize
-1
View File
@@ -4,7 +4,6 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
/// <reference path="../es6-promise/es6-promise.d.ts" />
declare module "mssql" {
import events = require('events');
-1
View File
@@ -3,7 +3,6 @@
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../es6-promise/es6-promise.d.ts" />
/// <reference path="../bootbox/bootbox.d.ts" />
interface NgBootboxDialog {
-2
View File
@@ -3,8 +3,6 @@
// Definitions by: Guillaume Lacasa <https://blog.lacasa.fr>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../es6-promise/es6-promise.d.ts" />
declare module openpgp {
interface KeyPair {
+1
View File
@@ -0,0 +1 @@
--target es5 --noImplicitAny
+1
View File
@@ -0,0 +1 @@
--target es5 --noImplicitAny
+2 -3
View File
@@ -1,6 +1,5 @@
/// <reference path="promises-a-plus.d.ts"/>
/// <reference path="../rx/rx.async.d.ts"/>
/// <reference path="../es6-promise/es6-promise.d.ts"/>
/// <reference path="../q/Q.d.ts"/>
/// <reference path="../when/when"/>
@@ -46,8 +45,8 @@ function testCompatibleWithRxJS() {
function testCompatibleWithES6Promises() {
// define ES6 thenables
var es6ThenNum: Thenable<number>;
var es6ThenStr: Thenable<string>;
var es6ThenNum: PromiseLike<number>;
var es6ThenStr: PromiseLike<string>;
// from ES6 to spec
thenNum = es6ThenNum;
@@ -1 +0,0 @@
--target es5 --noImplicitAny --experimentalDecorators --module commonjs
-1
View File
@@ -1,4 +1,3 @@
/// <reference path="../es6-promise/es6-promise.d.ts"/>
/// <reference path="./react-datagrid.d.ts" />
/// <reference path="../react/react.d.ts" />
-1
View File
@@ -4,7 +4,6 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../react/react.d.ts"/>
/// <reference path="../es6-promise/es6-promise.d.ts"/>
declare module "react-datagrid" {
import DataGrid = ReactDataGrid.DataGrid;
@@ -1 +0,0 @@
--target es5 --noImplicitAny --experimentalDecorators --jsx react --module commonjs
@@ -1 +0,0 @@
--target es5 --noImplicitAny --experimentalDecorators --jsx react
@@ -1 +0,0 @@
--experimentalDecorators --noImplicitAny --target ES5
@@ -1 +0,0 @@
--target es5 --noImplicitAny --experimentalDecorators --jsx react
@@ -1 +0,0 @@
--target ES6
-1
View File
@@ -1 +0,0 @@
--target ES6
-1
View File
@@ -1 +0,0 @@
--target ES6
-3
View File
@@ -1,12 +1,10 @@
/// <reference path="redux-thunk.d.ts" />
/// <reference path="../redux/redux.d.ts" />
/// <reference path="../es6-promise/es6-promise.d.ts" />
/// <reference path="../express/express.d.ts" />
import { createStore, applyMiddleware, Store, Dispatch } from 'redux';
import * as thunk from 'redux-thunk';
import ThunkInterface = ReduxThunk.ThunkInterface;
import { Promise } from 'es6-promise';
declare var rootReducer: Function;
declare var fetch: any;
@@ -124,4 +122,3 @@ function makeSandwichesForEverybody(): ThunkInterface {
);
};
}
-3
View File
@@ -3,8 +3,6 @@
// Definitions by: Qubo <https://github.com/tkqubo>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../es6-promise/es6-promise.d.ts" />
declare module "restful.js" {
export interface Headers {
[key: string]: any
@@ -242,4 +240,3 @@ declare module "restful.js" {
export default function restful(endpoint: string): Api;
}
-1
View File
@@ -4,7 +4,6 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../request/request.d.ts" />
/// <reference path="../es6-promise/es6-promise.d.ts" />
/// <reference path="../riot-games-api/riot-games-api.d.ts" />
declare module "riot-api-nodejs"{
-2
View File
@@ -3,8 +3,6 @@
// Definitions by: ryoppy <https://github.com/ryoppy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../es6-promise/es6-promise.d.ts" />
declare module scalike {
export interface Either<A, B> {
+1 -1
View File
@@ -5,7 +5,7 @@
// Based on original work by: samuelneff <https://github.com/samuelneff/sequelize-auto-ts/blob/master/lib/sequelize.d.ts>
/// <reference path='../lodash/lodash-3.10.d.ts' />
/// <reference path='../lodash/lodash.d.ts' />
/// <reference path="../bluebird/bluebird.d.ts" />
/// <reference path="../validator/validator.d.ts" />
-1
View File
@@ -1,6 +1,5 @@
/// <reference path="../should/should.d.ts" />
/// <reference path="should-promised.d.ts" />
/// <reference path="../bluebird/bluebird.d.ts" />
var promise: Promise<number> = new Promise<number>(function (resolve, reject) {});
+66 -67
View File
@@ -4,7 +4,6 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../spotify-api/spotify-api.d.ts" />
/// <reference path="../es6-promise/es6-promise.d.ts"/>
/**
* Declare SpotifyWebApi variable, sincle that is the name of the function in spotify-web-api-js.
@@ -42,7 +41,7 @@ declare module SpotifyWebApiJs {
interface SpotifyApiJs {
/**
* Fetches a resource through a generic GET request.
*
*
* @param url The URL to be fetched
* @param callback An optional callback
*/
@@ -51,25 +50,25 @@ declare module SpotifyWebApiJs {
/**
* Fetches information about the current user.
* See [Get Current User's Profile](https://developer.spotify.com/web-api/get-current-users-profile/)
*
*
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
getMe(options?: Object, callback?: ResultsCallback<SpotifyApi.CurrentUsersProfileResponse>) : Promise<SpotifyApi.CurrentUsersProfileResponse>;
getMe(options?: Object, callback?: ResultsCallback<SpotifyApi.CurrentUsersProfileResponse>) : Promise<SpotifyApi.CurrentUsersProfileResponse>;
/**
* Fetches current user's saved tracks.
* See [Get Current User's Saved Tracks](https://developer.spotify.com/web-api/get-users-saved-tracks/)
* See [Get Current User's Saved Tracks](https://developer.spotify.com/web-api/get-users-saved-tracks/)
*
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
getMySavedTracks(options?: Object, callback?: ResultsCallback<SpotifyApi.UsersSavedTracksResponse>) : Promise<SpotifyApi.UsersSavedTracksResponse>;
/**
* Adds a list of tracks to the current user's saved tracks.
* See [Save Tracks for Current User](https://developer.spotify.com/web-api/save-tracks-user/)
*
*
* @param trackIds The ids of the tracks. If you know their Spotify URI it is easy to find their track id (e.g. spotify:track:<here_is_the_track_id>)
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
@@ -79,7 +78,7 @@ declare module SpotifyWebApiJs {
/**
* Remove a list of tracks from the current user's saved tracks.
* See [Remove Tracks for Current User](https://developer.spotify.com/web-api/remove-tracks-user/)
*
*
* @param trackIds The ids of the tracks. If you know their Spotify URI it is easy to find their track id (e.g. spotify:track:<here_is_the_track_id>)
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
@@ -89,26 +88,26 @@ declare module SpotifyWebApiJs {
/**
* Checks if the current user's saved tracks contains a certain list of tracks.
* See [Check Current User's Saved Tracks](https://developer.spotify.com/web-api/check-users-saved-tracks/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param trackIds The ids of the tracks. If you know their Spotify URI it is easy to find their track id (e.g. spotify:track:<here_is_the_track_id>)
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
containsMySavedTracks(trackIds: string[], options?: Object, callback?: ResultsCallback<SpotifyApi.CheckUsersSavedTracksResponse>) : Promise<SpotifyApi.CheckUsersSavedTracksResponse>;
/**
* Adds the current user as a follower of one or more other Spotify users.
* See [Follow Artists or Users](https://developer.spotify.com/web-api/follow-artists-users/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param userIds The ids of the users. If you know their Spotify URI it is easy to find their user id (e.g. spotify:user:<here_is_the_user_id>)
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded. one is the error object (null if no error), and the second is an empty value if the request succeeded.
*/
followUsers(userIds: string[], callback?: ResultsCallback<SpotifyApi.FollowArtistsOrUsersResponse>) : Promise<SpotifyApi.FollowArtistsOrUsersResponse>;
/**
* Adds the current user as a follower of one or more artists.
* See [Follow Artists or Users](https://developer.spotify.com/web-api/follow-artists-users/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param artistIds The ids of the artists. If you know their Spotify URI it is easy to find their artist id (e.g. spotify:artist:<here_is_the_artist_id>)
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded. one is the error object (null if no error), and the second is an empty value if the request succeeded.
*/
@@ -117,7 +116,7 @@ declare module SpotifyWebApiJs {
/**
* Add the current user as a follower of one playlist.
* See [Follow a Playlist](https://developer.spotify.com/web-api/follow-playlist/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param ownerId The id of the playlist owner. If you know the Spotify URI of the playlist, it is easy to find the owner's user id (e.g. spotify:user:<here_is_the_owner_id>:playlist:xxxx)
* @param playlistId The id of the playlist. If you know the Spotify URI it is easy to find the playlist id (e.g. spotify:user:xxxx:playlist:<here_is_the_playlist_id>)
* @param options A JSON object with options that can be passed. For instance, whether you want the playlist to be followed privately ({public: false})
@@ -128,7 +127,7 @@ declare module SpotifyWebApiJs {
/**
* Removes the current user as a follower of one or more other Spotify users.
* See [Unfollow Artists or Users](https://developer.spotify.com/web-api/unfollow-artists-users/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param userIds The ids of the users. If you know their Spotify URI it is easy to find their user id (e.g. spotify:user:<here_is_the_user_id>)
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
@@ -137,7 +136,7 @@ declare module SpotifyWebApiJs {
/**
* Removes the current user as a follower of one or more artists.
* See [Unfollow Artists or Users](https://developer.spotify.com/web-api/unfollow-artists-users/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param artistIds The ids of the artists. If you know their Spotify URI it is easy to find their artist id (e.g. spotify:artist:<here_is_the_artist_id>)
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
@@ -146,7 +145,7 @@ declare module SpotifyWebApiJs {
/**
* Remove the current user as a follower of one playlist.
* See [Unfollow a Playlist](https://developer.spotify.com/web-api/unfollow-playlist/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param ownerId The id of the playlist owner. If you know the Spotify URI of the playlist, it is easy to find the owner's user id (e.g. spotify:user:<here_is_the_owner_id>:playlist:xxxx)
* @param playlistId The id of the playlist. If you know the Spotify URI it is easy to find the playlist id (e.g. spotify:user:xxxx:playlist:<here_is_the_playlist_id>)
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
@@ -156,16 +155,16 @@ declare module SpotifyWebApiJs {
/**
* Checks to see if the current user is following one or more other Spotify users.
* See [Check if Current User Follows Users or Artists](https://developer.spotify.com/web-api/check-current-user-follows/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param userIds The ids of the users. If you know their Spotify URI it is easy to find their user id (e.g. spotify:user:<here_is_the_user_id>)
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
isFollowingUsers(userIds: string[], callback?: ResultsCallback<SpotifyApi.UserFollowsUsersOrArtistsResponse>) : Promise<SpotifyApi.UserFollowsUsersOrArtistsResponse>
/**
* Checks to see if the current user is following one or more artists.
* See [Check if Current User Follows](https://developer.spotify.com/web-api/check-current-user-follows/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param artistIds The ids of the artists. If you know their Spotify URI it is easy to find their artist id (e.g. spotify:artist:<here_is_the_artist_id>)
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
@@ -174,18 +173,18 @@ declare module SpotifyWebApiJs {
/**
* Check to see if one or more Spotify users are following a specified playlist.
* See [Check if Users Follow a Playlist](https://developer.spotify.com/web-api/check-user-following-playlist/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param ownerId The id of the playlist owner. If you know the Spotify URI of the playlist, it is easy to find the owner's user id (e.g. spotify:user:<here_is_the_owner_id>:playlist:xxxx)
* @param playlistId The id of the playlist. If you know the Spotify URI it is easy to find the playlist id (e.g. spotify:user:xxxx:playlist:<here_is_the_playlist_id>)
* @param userIds The ids of the users. If you know their Spotify URI it is easy to find their user id (e.g. spotify:user:<here_is_the_user_id>)
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
areFollowingPlaylist(ownerId: string, playlistId: string, userIds: string[], callback?: ResultsCallback<SpotifyApi.UsersFollowPlaylistReponse>) : Promise<SpotifyApi.UsersFollowPlaylistReponse>;
/**
* Get the current user's followed artists.
* See [Get User's Followed Artists](https://developer.spotify.com/web-api/get-followed-artists/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param options Options, being after and limit.
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
@@ -194,27 +193,27 @@ declare module SpotifyWebApiJs {
/**
* Fetches information about a specific user.
* See [Get a User's Profile](https://developer.spotify.com/web-api/get-users-profile/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param userId The id of the user. If you know the Spotify URI it is easy to find the id (e.g. spotify:user:<here_is_the_id>)
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
getUser(userId: string, options?: Object, callback?: ResultsCallback<SpotifyApi.UserProfileResponse>) : Promise<SpotifyApi.UserProfileResponse>;
/**
* Fetches a list of the current user's playlists.
* See [Get a List of a User's Playlists](https://developer.spotify.com/web-api/get-list-users-playlists/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param userId The id of the user. If you know the Spotify URI it is easy to find the id (e.g. spotify:user:<here_is_the_id>)
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
getUserPlaylists(userId: string, options?: Object, callback?: ResultsCallback<SpotifyApi.ListOfUsersPlaylistsResponse>) : Promise<SpotifyApi.ListOfUsersPlaylistsResponse>;
/**
* Fetches a specific playlist.
* See [Get a Playlist](https://developer.spotify.com/web-api/get-playlist/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param userId The id of the user. If you know the Spotify URI it is easy to find the user id (e.g. spotify:user:<here_is_the_user_id>:playlist:xxxx)
* @param playlistId The id of the playlist. If you know the Spotify URI it is easy to find the playlist id (e.g. spotify:user:xxxx:playlist:<here_is_the_playlist_id>)
* @param options A JSON object with options that can be passed
@@ -225,7 +224,7 @@ declare module SpotifyWebApiJs {
/**
* Fetches the tracks from a specific playlist.
* See [Get a Playlist's Tracks](https://developer.spotify.com/web-api/get-playlists-tracks/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param userId The id of the user. If you know the Spotify URI it is easy to find the user id (e.g. spotify:user:<here_is_the_user_id>:playlist:xxxx)
* @param playlistId The id of the playlist. If you know the Spotify URI it is easy to find the playlist id (e.g. spotify:user:xxxx:playlist:<here_is_the_playlist_id>)
* @param options A JSON object with options that can be passed
@@ -236,28 +235,28 @@ declare module SpotifyWebApiJs {
/**
* Creates a playlist and stores it in the current user's library.
* See [Create a Playlist](https://developer.spotify.com/web-api/create-playlist/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param userId The id of the user. You may want to user the "getMe" function to find out the id of the current logged in user
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
createPlaylist(userId: string, options?: Object, callback?: ResultsCallback<SpotifyApi.CreatePlaylistResponse>) : Promise<SpotifyApi.CreatePlaylistResponse>;
/**
* Change a playlist's name and public/private state
* See [Change a Playlist's Details](https://developer.spotify.com/web-api/change-playlist-details/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param userId The id of the user. You may want to user the "getMe" function to find out the id of the current logged in user
* @param playlistId The id of the playlist. If you know the Spotify URI it is easy to find the playlist id (e.g. spotify:user:xxxx:playlist:<here_is_the_playlist_id>)
* @param data A JSON object with the data to update. E.g. {name: 'A new name', public: true}
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
changePlaylistDetails(userId: string, playlistId: string, data: Object, callback?: ResultsCallback<SpotifyApi.ChangePlaylistDetailsReponse>) : Promise<SpotifyApi.ChangePlaylistDetailsReponse>;
/**
* Add tracks to a playlist.
* See [Add Tracks to a Playlist](https://developer.spotify.com/web-api/add-tracks-to-playlist/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param userId The id of the user. If you know the Spotify URI it is easy to find the user id (e.g. spotify:user:<here_is_the_user_id>:playlist:xxxx)
* @param playlistId The id of the playlist. If you know the Spotify URI it is easy to find the playlist id (e.g. spotify:user:xxxx:playlist:<here_is_the_playlist_id>)
* @param uris An array of Spotify URIs for the tracks
@@ -265,11 +264,11 @@ declare module SpotifyWebApiJs {
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
addTracksToPlaylist(userId: string, playlistId: string, uris: string[], options?: Object, callback?: ResultsCallback<SpotifyApi.AddTracksToPlaylistResponse>) : Promise<SpotifyApi.AddTracksToPlaylistResponse>;
/**
* Replace the tracks of a playlist
* See [Replace a Playlist's Tracks](https://developer.spotify.com/web-api/replace-playlists-tracks/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param userId The id of the user. If you know the Spotify URI it is easy to find the user id (e.g. spotify:user:<here_is_the_user_id>:playlist:xxxx)
* @param playlistId The id of the playlist. If you know the Spotify URI it is easy to find the playlist id (e.g. spotify:user:xxxx:playlist:<here_is_the_playlist_id>)
* @param uris An array of Spotify URIs for the tracks
@@ -280,7 +279,7 @@ declare module SpotifyWebApiJs {
/**
* Reorder tracks in a playlist
* See [Reorder a Playlists Tracks](https://developer.spotify.com/web-api/reorder-playlists-tracks/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param userId The id of the user. If you know the Spotify URI it is easy to find the user id (e.g. spotify:user:<here_is_the_user_id>:playlist:xxxx)
* @param playlistId The id of the playlist. If you know the Spotify URI it is easy to find the playlist id (e.g. spotify:user:xxxx:playlist:<here_is_the_playlist_id>)
* @param rangeStart The position of the first track to be reordered.
@@ -293,7 +292,7 @@ declare module SpotifyWebApiJs {
/**
* Remove tracks from a playlist
* See [Remove Tracks from a Playlist](https://developer.spotify.com/web-api/remove-tracks-playlist/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param userId The id of the user. If you know the Spotify URI it is easy to find the user id (e.g. spotify:user:<here_is_the_user_id>:playlist:xxxx)
* @param playlistId The id of the playlist. If you know the Spotify URI it is easy to find the playlist id (e.g. spotify:user:xxxx:playlist:<here_is_the_playlist_id>)
* @param uris An array of tracks to be removed. Each element of the array can be either a string, in which case it is treated as a URI, or an object containing the properties `uri` (which is a string) and `positions` (which is an array of integers).
@@ -304,7 +303,7 @@ declare module SpotifyWebApiJs {
/**
* Remove tracks from a playlist, specifying a snapshot id.
* See [Remove Tracks from a Playlist](https://developer.spotify.com/web-api/remove-tracks-playlist/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param userId The id of the user. If you know the Spotify URI it is easy to find the user id (e.g. spotify:user:<here_is_the_user_id>:playlist:xxxx)
* @param playlistId The id of the playlist. If you know the Spotify URI it is easy to find the playlist id (e.g. spotify:user:xxxx:playlist:<here_is_the_playlist_id>)
* @param uris An array of tracks to be removed. Each element of the array can be either a string, in which case it is treated as a URI, or an object containing the properties `uri` (which is a string) and `positions` (which is an array of integers).
@@ -329,7 +328,7 @@ declare module SpotifyWebApiJs {
/**
* Fetches an album from the Spotify catalog.
* See [Get an Album](https://developer.spotify.com/web-api/get-album/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param albumId The id of the album. If you know the Spotify URI it is easy to find the album id (e.g. spotify:album:<here_is_the_album_id>)
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
@@ -339,17 +338,17 @@ declare module SpotifyWebApiJs {
/**
* Fetches the tracks of an album from the Spotify catalog.
* See [Get an Album's Tracks](https://developer.spotify.com/web-api/get-albums-tracks/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param albumId The id of the album. If you know the Spotify URI it is easy to find the album id (e.g. spotify:album:<here_is_the_album_id>)
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
getAlbumTracks(albumId: string, options?: Object, callback?: ResultsCallback<SpotifyApi.AlbumTracksResponse>) : Promise<SpotifyApi.AlbumTracksResponse>;
/**
* Fetches multiple albums from the Spotify catalog.
* See [Get Several Albums](https://developer.spotify.com/web-api/get-several-albums/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param albumIds The ids of the albums. If you know their Spotify URI it is easy to find their album id (e.g. spotify:album:<here_is_the_album_id>)
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
@@ -359,7 +358,7 @@ declare module SpotifyWebApiJs {
/**
* Fetches a track from the Spotify catalog.
* See [Get a Track](https://developer.spotify.com/web-api/get-track/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param trackId The id of the track. If you know the Spotify URI it is easy to find the track id (e.g. spotify:track:<here_is_the_track_id>)
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
@@ -379,7 +378,7 @@ declare module SpotifyWebApiJs {
/**
* Fetches an artist from the Spotify catalog.
* See [Get an Artist](https://developer.spotify.com/web-api/get-artist/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param artistId The id of the artist. If you know the Spotify URI it is easy to find the artist id (e.g. spotify:artist:<here_is_the_artist_id>)
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
@@ -389,7 +388,7 @@ declare module SpotifyWebApiJs {
/**
* Fetches multiple artists from the Spotify catalog.
* See [Get Several Artists](https://developer.spotify.com/web-api/get-several-artists/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param artistIds The ids of the artists. If you know their Spotify URI it is easy to find their artist id (e.g. spotify:artist:<here_is_the_artist_id>)
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
@@ -399,7 +398,7 @@ declare module SpotifyWebApiJs {
/**
* Fetches the albums of an artist from the Spotify catalog.
* See [Get an Artist's Albums](https://developer.spotify.com/web-api/get-artists-albums/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param artistId The id of the artist. If you know the Spotify URI it is easy to find the artist id (e.g. spotify:artist:<here_is_the_artist_id>)
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
@@ -409,18 +408,18 @@ declare module SpotifyWebApiJs {
/**
* Fetches a list of top tracks of an artist from the Spotify catalog, for a specific country.
* See [Get an Artist's Top Tracks](https://developer.spotify.com/web-api/get-artists-top-tracks/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param artistId The id of the artist. If you know the Spotify URI it is easy to find the artist id (e.g. spotify:artist:<here_is_the_artist_id>)
* @param countryId The id of the country (e.g. ES for Spain or US for United States)
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
getArtistTopTracks(artistId: string, countryId: string, options?: Object, callback?: ResultsCallback<SpotifyApi.ArtistsTopTracksResponse>) : Promise<SpotifyApi.ArtistsTopTracksResponse>;
/**
* Fetches a list of artists related with a given one from the Spotify catalog.
* See [Get an Artist's Related Artists](https://developer.spotify.com/web-api/get-related-artists/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param artistId The id of the artist. If you know the Spotify URI it is easy to find the artist id (e.g. spotify:artist:<here_is_the_artist_id>)
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
@@ -430,16 +429,16 @@ declare module SpotifyWebApiJs {
/**
* Fetches a list of Spotify featured playlists (shown, for example, on a Spotify player's "Browse" tab).
* See [Get a List of Featured Playlists](https://developer.spotify.com/web-api/get-list-featured-playlists/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
getFeaturedPlaylists(options?: Object, callback?: ResultsCallback<SpotifyApi.ListOfFeaturedPlaylistsResponse>) : Promise<SpotifyApi.ListOfFeaturedPlaylistsResponse>;
/**
* Fetches a list of new album releases featured in Spotify (shown, for example, on a Spotify player's "Browse" tab).
* See [Get a List of New Releases](https://developer.spotify.com/web-api/get-list-new-releases/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
@@ -448,7 +447,7 @@ declare module SpotifyWebApiJs {
/**
* Get a list of categories used to tag items in Spotify (on, for example, the Spotify player's "Browse" tab).
* See [Get a List of Categories](https://developer.spotify.com/web-api/get-list-categories/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
@@ -457,47 +456,47 @@ declare module SpotifyWebApiJs {
/**
* Get a single category used to tag items in Spotify (on, for example, the Spotify player's "Browse" tab).
* See [Get a Category](https://developer.spotify.com/web-api/get-category/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param categoryId The id of the category. These can be found with the getCategories function
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
getCategory(categoryId: string, options?: Object, callback?: ResultsCallback<SpotifyApi.SingleCategoryResponse>) : Promise<SpotifyApi.SingleCategoryResponse>;
/**
* Get a list of Spotify playlists tagged with a particular category.
* See [Get a Category's Playlists](https://developer.spotify.com/web-api/get-categorys-playlists/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param categoryId The id of the category. These can be found with the getCategories function
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
getCategoryPlaylists(categoryId: string, options?: Object, callback?: ResultsCallback<SpotifyApi.CategoryPlaylistsReponse>) : Promise<SpotifyApi.CategoryPlaylistsReponse>;
/**
* Fetches albums from the Spotify catalog according to a query.
* See [Search for an Item](https://developer.spotify.com/web-api/search-item/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param query The search query
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
searchAlbums(query: string, options?: SpotifyApi.SearchForItemParameterObject, callback?: ResultsCallback<SpotifyApi.AlbumSearchResponse>) : Promise<SpotifyApi.AlbumSearchResponse>;
/**
* Fetches artists from the Spotify catalog according to a query.
* See [Search for an Item](https://developer.spotify.com/web-api/search-item/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param query The search query
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
searchArtists(query: string, options?: SpotifyApi.SearchForItemParameterObject, callback?: ResultsCallback<SpotifyApi.ArtistSearchResponse>) : Promise<SpotifyApi.ArtistSearchResponse>;
/**
* Fetches tracks from the Spotify catalog according to a query.
* See [Search for an Item](https://developer.spotify.com/web-api/search-item/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param query The search query
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
@@ -507,17 +506,17 @@ declare module SpotifyWebApiJs {
/**
* Fetches playlists from the Spotify catalog according to a query.
* See [Search for an Item](https://developer.spotify.com/web-api/search-item/) on the Spotify Developer site for more information about the endpoint.
*
*
* @param query The search query
* @param options A JSON object with options that can be passed
* @param callback An optional callback that receives 2 parameters. The first one is the error object (null if no error), and the second is the value if the request succeeded.
*/
searchPlaylists(query: string, options?: SpotifyApi.SearchForItemParameterObject, callback?: ResultsCallback<SpotifyApi.PlaylistSearchResponse>) : Promise<SpotifyApi.PlaylistSearchResponse>;
/**
* Sets the access token to be used.
* See [the Authorization Guide](https://developer.spotify.com/web-api/authorization-guide/) on the Spotify Developer site for more information about obtaining an access token.
*
*
* @param accessToken The access token
*/
setAccessToken(accessToken: string) : void;
@@ -525,7 +524,7 @@ declare module SpotifyWebApiJs {
/**
* Sets an implementation of Promises/A+ to be used. E.g. Q, when.
* See [Conformant Implementations](https://github.com/promises-aplus/promises-spec/blob/master/implementations.md) for a list of some available options
*
*
* @param promiseImplementation A Promises/A+ valid implementation
* @throws {Error} If the implementation being set doesn't conform with Promises/A+
*/
+1 -3
View File
@@ -3,8 +3,6 @@
// Definitions by: Exceptionless <https://github.com/exceptionless>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../es6-promise/es6-promise.d.ts"/>
declare module StackTrace {
export interface StackTraceOptions {
filter?: (stackFrame:StackFrame) => boolean;
@@ -63,7 +61,7 @@ declare module StackTrace {
* @param fn {Function}
*/
export function deinstrument(fn:() => void): void;
/**
* Given an Array of StackFrames, serialize and POST to given URL.
*
+3 -7
View File
@@ -7,11 +7,7 @@
* Function used as .init() argument.
*/
interface Init {
(ctx:Context): any | Promise;
}
interface Promise {
then(resolve:(result: any) => any|Promise, reject:(reason: any | Error) => any|Promise): Promise
(ctx:Context): any | Promise<any>;
}
/**
@@ -101,7 +97,7 @@ interface Stamp {
* an .enclose() function is an anti-pattern that should be avoided, when possible.
* @return A new object composed of the Stamps and prototypes provided.
*/
(state?:{}, ...encloseArgs:any[]): any | Promise;
(state?:{}, ...encloseArgs:any[]): any | Promise<any>;
/**
* Just like calling stamp(), stamp.create() invokes the stamp and returns a new instance.
@@ -113,7 +109,7 @@ interface Stamp {
* an .enclose() function is an anti-pattern that should be avoided, when possible.
* @return A new object composed of the Stamps and prototypes provided.
*/
create(state?:{}, ...encloseArgs:any[]): any | Promise;
create(state?:{}, ...encloseArgs:any[]): any | Promise<any>;
/**
* An object map containing the fixed prototypes.
-1
View File
@@ -1 +0,0 @@
-3
View File
@@ -1,11 +1,9 @@
/// <reference path="undertaker.d.ts" />
/// <reference path="../node/node.d.ts" />
/// <reference path="../es6-promise/es6-promise.d.ts" />
var fs = require('fs');
var Undertaker = require('undertaker');
import { Registry } from 'undertaker';
require('es6-promise');
var taker = new Undertaker();
@@ -43,4 +41,3 @@ taker.task('build', taker.series('clean', function build(cb: () => void) {
// do things
cb();
}));
-1
View File
@@ -1,5 +1,4 @@
/// <reference path="webmidi.d.ts" />
/// <reference path="../es6-promise/es6-promise.d.ts" />
if (navigator.requestMIDIAccess !== undefined) {
navigator.requestMIDIAccess().then(onSuccessCallback, onErrorCallback);
-3
View File
@@ -3,8 +3,6 @@
// Definitions by: Toshiya Nakakura <https://github.com/nakakura>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../es6-promise/es6-promise.d.ts" />
interface Navigator {
/**
* When invoked, returns a Promise object representing a request for access to MIDI devices on the user's system.
@@ -128,4 +126,3 @@ declare module WebMidi{
port: MIDIPort;
}
}
-2
View File
@@ -6,8 +6,6 @@
// Taken from http://dev.w3.org/2011/webrtc/editor/getusermedia.html
// version: W3C Editor's Draft 29 June 2015
/// <reference path="../es6-promise/es6-promise.d.ts" />
interface ConstrainBooleanParameters {
exact?: boolean;
ideal?: boolean;
-1
View File
@@ -1 +0,0 @@
--module commonjs
-2
View File
@@ -4,7 +4,6 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../geometry-dom/geometry-dom.d.ts" />
/// <reference path="../es6-promise/es6-promise.d.ts" />
declare type VREye = string;
@@ -172,4 +171,3 @@ interface Navigator {
*/
getVRDevices(): Promise<Array<WebVRApi.VRDevice>>;
}
-1
View File
@@ -1,5 +1,4 @@
/// <reference path="whatwg-fetch.d.ts" />
/// <reference path="../es6-promise/es6-promise.d.ts" />
function test_fetchUrlWithOptions() {
var headers = new Headers();
-2
View File
@@ -3,8 +3,6 @@
// Definitions by: Ryan Graham <https://github.com/ryan-codingintrigue>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../es6-promise/es6-promise.d.ts" />
declare class Request extends Body {
constructor(input: string|Request, init?:RequestInit);
method: string;
+1
View File
@@ -0,0 +1 @@
--target es5 --noImplicitAny
-1
View File
@@ -1 +0,0 @@
--target ES6
-3
View File
@@ -3,8 +3,6 @@
// Definitions by: angular team <https://github.com/angular/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../es6-promise/es6-promise.d.ts"/>
declare class Zone {
constructor(parentZone: Zone, data: any);
@@ -18,4 +16,3 @@ declare class Zone {
static longStackTraceZone: {[key: string]: any};
}