diff --git a/alt/alt-tests.ts b/alt/alt-tests.ts index 403c9d99ae7cdd..1941b407160b53 100644 --- a/alt/alt-tests.ts +++ b/alt/alt-tests.ts @@ -2,10 +2,8 @@ * Created by shearerbeard on 6/28/15. */ /// -/// 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 { return { remote() { - return new Promise.Promise((res:any, rej:any) => { + return new Promise((res:any, rej:any) => { setTimeout(() => { if(true) { res("stuff"); diff --git a/alt/alt.d.ts b/alt/alt.d.ts index 0e0b40d8fb8f09..0d7bc863264ce8 100644 --- a/alt/alt.d.ts +++ b/alt/alt.d.ts @@ -4,7 +4,6 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped /// -/// declare module AltJS { diff --git a/amazon-product-api/amazon-product-api.d.ts b/amazon-product-api/amazon-product-api.d.ts index fc84dcc09083a7..7ce5d92e3a0336 100644 --- a/amazon-product-api/amazon-product-api.d.ts +++ b/amazon-product-api/amazon-product-api.d.ts @@ -3,8 +3,6 @@ // Definitions by: Matti Lehtinen // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// - declare module "amazon-product-api" { interface ICredentials { diff --git a/angularjs/angular-component-router.d.ts b/angularjs/angular-component-router.d.ts index 228db1e017e9e1..6c37b5e86e49a6 100644 --- a/angularjs/angular-component-router.d.ts +++ b/angularjs/angular-component-router.d.ts @@ -4,7 +4,6 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped /// -/// declare module angular { /** diff --git a/anydb-sql/anydb-sql.d.ts b/anydb-sql/anydb-sql.d.ts index d8bce402b7e842..30b23d2473e841 100644 --- a/anydb-sql/anydb-sql.d.ts +++ b/anydb-sql/anydb-sql.d.ts @@ -3,11 +3,7 @@ // Definitions by: Gorgi Kosev // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// - 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 exec():Promise all():Promise - execWithin(tx:DatabaseConnection):Promise + execWithin(tx:DatabaseConnection):Promise allWithin(tx:DatabaseConnection):Promise toQuery():QueryLike; } @@ -191,4 +187,4 @@ declare module "anydb-sql" { function anydbSQL(config:Object):anydbSQL.AnydbSql; export = anydbSQL; -} \ No newline at end of file +} diff --git a/atom/atom-tests.ts.tscparams b/atom/atom-tests.ts.tscparams deleted file mode 100644 index 6331805a5fa598..00000000000000 --- a/atom/atom-tests.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ ---noImplicitAny --module commonjs --target es5 diff --git a/baconjs/baconjs.d.ts b/baconjs/baconjs.d.ts index 4717d0e956263f..8cb6ba7381da3e 100644 --- a/baconjs/baconjs.d.ts +++ b/baconjs/baconjs.d.ts @@ -4,8 +4,7 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped /// -/// -/// +/// interface JQuery { /** diff --git a/blissfuljs/blissfuljs.d.ts b/blissfuljs/blissfuljs.d.ts index 99ef63e7ea14a8..b203383f13bb2f 100644 --- a/blissfuljs/blissfuljs.d.ts +++ b/blissfuljs/blissfuljs.d.ts @@ -3,8 +3,6 @@ // Definitions by: François Skorzec // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// - interface Element { _: BlissNS.BlissBindedElement; } diff --git a/bluebird/bluebird-1.0-tests.ts.tscparams b/bluebird/bluebird-1.0-tests.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/bluebird/bluebird-1.0-tests.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/bluebird/bluebird-1.0.d.ts.tscparams b/bluebird/bluebird-1.0.d.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/bluebird/bluebird-1.0.d.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/bookshelf/bookshelf-tests.ts.tscparams b/bookshelf/bookshelf-tests.ts.tscparams deleted file mode 100644 index 5f84b9777747bf..00000000000000 --- a/bookshelf/bookshelf-tests.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ ---noImplicitAny --module commonjs --target es5 diff --git a/bull/bull.d.ts b/bull/bull.d.ts index b867c11235b422..68b1f500437e32 100644 --- a/bull/bull.d.ts +++ b/bull/bull.d.ts @@ -4,8 +4,6 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped /// -/// - 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; - + /** * 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; - + /** * 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; - + /** * 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; - + // process(callback: (job: Job, done?: DoneCallback) => void): Promise; - + /** - * 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; - + /** * 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; - + /** - * 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; - + /** - * 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; - + /** * Empties a queue deleting all the input lists and associated jobs. */ empty(): Promise; - + /** * 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; - + /** - * 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; - + /** - * 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; - + /** * 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; diff --git a/chocolatechipjs/chocolatechipjs-tests.ts.tscparams b/chocolatechipjs/chocolatechipjs-tests.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/chocolatechipjs/chocolatechipjs-tests.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/chocolatechipjs/chocolatechipjs.d.ts.tscparams b/chocolatechipjs/chocolatechipjs.d.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/chocolatechipjs/chocolatechipjs.d.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/colors/colors-tests.ts.tscparams b/colors/colors-tests.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/colors/colors-tests.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/colors/colors.d.ts.tscparams b/colors/colors.d.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/colors/colors.d.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/core-decorators/core-decorators-tests.ts.tscparams b/core-decorators/core-decorators-tests.ts.tscparams deleted file mode 100644 index 3f0863ac67cac7..00000000000000 --- a/core-decorators/core-decorators-tests.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ ---experimentalDecorators --noImplicitAny --target ES5 diff --git a/core-js/core-js-tests.ts.tscparams b/core-js/core-js-tests.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/core-js/core-js-tests.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/core-js/core-js.d.ts.tscparams b/core-js/core-js.d.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/core-js/core-js.d.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/cucumber/cucumber.d.ts b/cucumber/cucumber.d.ts index 75faeff7a5fb89..2b0eae74b86ff1 100644 --- a/cucumber/cucumber.d.ts +++ b/cucumber/cucumber.d.ts @@ -1,57 +1,55 @@ -// Type definitions for cucumber-js -// Project: https://github.com/cucumber/cucumber-js -// Definitions by: Abraão Alves -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -declare module cucumber { - - export interface CallbackStepDefinition{ - pending : () => Thenable; - (errror?:any):void; - } - - interface StepDefinitionCode { - (...stepArgs: Array): Thenable | 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; -} \ No newline at end of file +// Type definitions for cucumber-js +// Project: https://github.com/cucumber/cucumber-js +// Definitions by: Abraão Alves +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare module cucumber { + + export interface CallbackStepDefinition{ + pending : () => PromiseLike; + (errror?:any):void; + } + + interface StepDefinitionCode { + (...stepArgs: Array): PromiseLike | 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; +} diff --git a/del/del.d.ts b/del/del.d.ts index 88316f4f292a6e..550f8f5557270a 100644 --- a/del/del.d.ts +++ b/del/del.d.ts @@ -4,7 +4,6 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped /// -/// declare module "del" { import glob = require("glob"); diff --git a/denodeify/denodeify-tests.ts b/denodeify/denodeify-tests.ts index 0cd6a0c9883069..5179c061b759c5 100644 --- a/denodeify/denodeify-tests.ts +++ b/denodeify/denodeify-tests.ts @@ -1,5 +1,4 @@ /// -/// /// import denodeify = require("denodeify"); @@ -7,4 +6,4 @@ import fs = require('fs'); import cp = require('child_process'); const readFile = denodeify(fs.readFile); -const exec = denodeify(cp.exec, (err, stdout, stderr) => [err, stdout]); \ No newline at end of file +const exec = denodeify(cp.exec, (err, stdout, stderr) => [err, stdout]); diff --git a/denodeify/denodeify.d.ts b/denodeify/denodeify.d.ts index fec2fbf3cc4921..f993b027018d36 100644 --- a/denodeify/denodeify.d.ts +++ b/denodeify/denodeify.d.ts @@ -3,8 +3,6 @@ // Definitions by: joaomoreno // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// - declare module "denodeify" { function _(fn: _.F0, transformer?: _.M): () => Promise; function _(fn: _.F1, transformer?: _.M): (a:A) => Promise; @@ -16,7 +14,7 @@ declare module "denodeify" { function _(fn: _.F7, transformer?: _.M): (a:A, b:B, c:C, d:D, e:E, f:F, g:G) => Promise; function _(fn: _.F8, transformer?: _.M): (a:A, b:B, c:C, d:D, e:E, f:F, g:G, h:H) => Promise; function _(fn: _.F, transformer?: _.M): (...args: any[]) => Promise; - + module _ { type Callback = (err: Error, result: R) => any; type F0 = (cb: Callback) => any; @@ -31,6 +29,6 @@ declare module "denodeify" { type F = (...args: any[]) => any; type M = (err: Error, ...args: any[]) => any[]; } - + export = _; -} \ No newline at end of file +} diff --git a/es6-collections/es6-collections-tests.ts.tscparams b/es6-collections/es6-collections-tests.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/es6-collections/es6-collections-tests.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/es6-collections/es6-collections.d.ts.tscparams b/es6-collections/es6-collections.d.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/es6-collections/es6-collections.d.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/es6-promise/es6-promise-commonjs-tests.ts.tscparams b/es6-promise/es6-promise-commonjs-tests.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/es6-promise/es6-promise-commonjs-tests.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/es6-promise/es6-promise-tests.ts.tscparams b/es6-promise/es6-promise-tests.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/es6-promise/es6-promise-tests.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/es6-promise/es6-promise.d.ts.tscparams b/es6-promise/es6-promise.d.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/es6-promise/es6-promise.d.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/es6-promises/es6-promises-tests.ts b/es6-promises/es6-promises-tests.ts deleted file mode 100644 index 465b3045cac859..00000000000000 --- a/es6-promises/es6-promises-tests.ts +++ /dev/null @@ -1,10 +0,0 @@ -/// - -// 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((resolve, reject) => { - resolve('a string'); -}); diff --git a/es6-promises/es6-promises.d.ts b/es6-promises/es6-promises.d.ts deleted file mode 100644 index 682bdb0de68647..00000000000000 --- a/es6-promises/es6-promises.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Type definitions for es6-promise -// Project: https://github.com/jakearchibald/ES6-Promise -// Definitions by: François de Campredon -// Definitions: https://github.com/borisyankov/DefinitelyTyped - -/// - -// 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 \ No newline at end of file diff --git a/es6-shim/es6-shim-tests.ts.tscparams b/es6-shim/es6-shim-tests.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/es6-shim/es6-shim-tests.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/es6-shim/es6-shim.d.ts.tscparams b/es6-shim/es6-shim.d.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/es6-shim/es6-shim.d.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/expect/expect-tests.ts.tscparams b/expect/expect-tests.ts.tscparams deleted file mode 100644 index a0f279051fb99b..00000000000000 --- a/expect/expect-tests.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ ---noImplicitAny --target es6 diff --git a/express-handlebars/express-handlebars.d.ts b/express-handlebars/express-handlebars.d.ts index 1f24f5ea449407..341c7661b97dbc 100644 --- a/express-handlebars/express-handlebars.d.ts +++ b/express-handlebars/express-handlebars.d.ts @@ -3,8 +3,6 @@ // Definitions by: Sam Saint-Pettersen , Igor Dultsev // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// - interface PartialTemplateOptions { cache?: boolean; precompiled?: boolean; diff --git a/freedom/freedom-tests.ts b/freedom/freedom-tests.ts index e83d0cd13679c1..4047d7615c7034 100644 --- a/freedom/freedom-tests.ts +++ b/freedom/freedom-tests.ts @@ -1,4 +1,3 @@ -/// /// var freedomModule :freedom.FreedomInModuleEnv; diff --git a/freedom/freedom.d.ts b/freedom/freedom.d.ts index c69b800e9c246f..9858f11bb66d52 100644 --- a/freedom/freedom.d.ts +++ b/freedom/freedom.d.ts @@ -3,8 +3,6 @@ // Definitions by: Jonathan Pevarnek // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// - declare module freedom { // Common on/emit for message passing interfaces. interface EventDispatchFn { (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; diff --git a/fullname/fullname.d.ts b/fullname/fullname.d.ts index a1d44f16729dda..affa09f3ab0dd8 100644 --- a/fullname/fullname.d.ts +++ b/fullname/fullname.d.ts @@ -3,8 +3,6 @@ // Definitions by: Klaus Reimer // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// - declare module "fullname" { function fullname(): Promise; export = fullname; diff --git a/gulp-help/gulp-help.d.ts b/gulp-help/gulp-help.d.ts index dd47ed0f689c08..6eeb9a03986f18 100644 --- a/gulp-help/gulp-help.d.ts +++ b/gulp-help/gulp-help.d.ts @@ -3,12 +3,10 @@ // Definitions by: Qubo // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// /// /// /// - declare module "gulp-help" { import Orchestrator = require('orchestrator'); import gulp = require('gulp'); @@ -116,4 +114,3 @@ declare module "gulp-help" { export = gulpHelp; } - diff --git a/hapi/hapi-8.2.0.d.ts b/hapi/hapi-8.2.0.d.ts index c652ad43533e83..80e908528933f3 100644 --- a/hapi/hapi-8.2.0.d.ts +++ b/hapi/hapi-8.2.0.d.ts @@ -5,12 +5,7 @@ //This is a total rewrite of Hakubo's original hapi.d.ts, as it was out of date/incomplete. - /// -/// - - - 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 { (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. */ (result: string|number|boolean|Buffer|stream.Stream | Promise | 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(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; } -} \ No newline at end of file +} diff --git a/ibm-mobilefirst/ibm-mobilefirst-tests.ts.tscparams b/ibm-mobilefirst/ibm-mobilefirst-tests.ts.tscparams deleted file mode 100644 index 4169d3605feb3c..00000000000000 --- a/ibm-mobilefirst/ibm-mobilefirst-tests.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ ---noImplicitAny --module commonjs --target es5 \ No newline at end of file diff --git a/java/java.d.ts b/java/java.d.ts index 87125355daa938..447020f1d86f25 100644 --- a/java/java.d.ts +++ b/java/java.d.ts @@ -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 // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// /// // This is the core API exposed by https://github.com/joeferner/java. diff --git a/jbinary/jbinary-tests.ts.tscparams b/jbinary/jbinary-tests.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/jbinary/jbinary-tests.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/jbinary/jbinary.d.ts.tscparams b/jbinary/jbinary.d.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/jbinary/jbinary.d.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/jdataview/jdataview-tests.ts.tscparams b/jdataview/jdataview-tests.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/jdataview/jdataview-tests.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/jdataview/jdataview.d.ts.tscparams b/jdataview/jdataview.d.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/jdataview/jdataview.d.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/jquery-ajax-chain/jquery-ajax-chain-tests.ts b/jquery-ajax-chain/jquery-ajax-chain-tests.ts index 8a484fa6338640..abaeac8a91e29a 100644 --- a/jquery-ajax-chain/jquery-ajax-chain-tests.ts +++ b/jquery-ajax-chain/jquery-ajax-chain-tests.ts @@ -1,6 +1,5 @@ /// /// -/// function test_public_methods(): void { diff --git a/kii-cloud-sdk/kii-cloud-sdk.d.ts b/kii-cloud-sdk/kii-cloud-sdk.d.ts index 6f14d47bb9ff43..4c710f0e783924 100644 --- a/kii-cloud-sdk/kii-cloud-sdk.d.ts +++ b/kii-cloud-sdk/kii-cloud-sdk.d.ts @@ -3,8 +3,6 @@ // Definitions by: Kii Consortium // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// - declare module KiiCloud { enum KiiACLAction { KiiACLBucketActionCreateObjects, @@ -202,7 +200,7 @@ declare module KiiCloud { /** * Set the access token lifetime in seconds. - * + * * If you don't call this method or call it with 0, token won't be expired. * Call this method if you like the access token to be expired * after a certain period. Once called, token retrieved @@ -222,7 +220,7 @@ declare module KiiCloud { /** * Returns access token lifetime in seconds. - * + * * If access token lifetime has not set explicitly by {@link Kii.setAccessTokenExpiration(expiresIn)}, returns 0. * * @return access token lifetime in seconds. @@ -233,7 +231,7 @@ declare module KiiCloud { /** * Initialize the Kii SDK with a specific URL - * + * * Should be the first Kii SDK action your application makes. * * @param appID The application ID found in your Kii developer console @@ -244,11 +242,11 @@ declare module KiiCloud { * @example * // Disable KiiAnalytics * Kii.initializeWithSite("my-app-id", "my-app-key", KiiSite.JP); - * + * * // Enable KiiAnalytics with deviceId * var analyticsOption = { deviceId: "my-device-id" }; * Kii.initializeWithSite("my-app-id", "my-app-key", KiiSite.JP, analyticsOption); - * + * * // Enable KiiAnalytics without deviceId * Kii.initializeWithSite("my-app-id", "my-app-key", KiiSite.JP, {}); */ @@ -256,7 +254,7 @@ declare module KiiCloud { /** * Initialize the Kii SDK - * + * * Should be the first Kii SDK action your application makes. * Meanwhile, Kii Analytics is initialized. * @@ -267,11 +265,11 @@ declare module KiiCloud { * @example * // Disable KiiAnalytics * Kii.initialize("my-app-id", "my-app-key"); - * + * * // Enable KiiAnalytics with deviceId * var analyticsOption = { deviceId: "my-device-id" }; * Kii.initialize("my-app-id", "my-app-key", analyticsOption); - * + * * // Enable KiiAnalytics without deviceId * Kii.initialize("my-app-id", "my-app-key", {}); */ @@ -279,7 +277,7 @@ declare module KiiCloud { /** * Creates a reference to a bucket for this app - * + * *

The bucket will be created/accessed within this app's scope * * @param bucketName The name of the bucket the app should create/access @@ -293,7 +291,7 @@ declare module KiiCloud { /** * Creates a reference to a encrypted bucket for this app - * + * *

The bucket will be created/accessed within this app's scope * * @param bucketName The name of the bucket the app should create/access @@ -364,13 +362,13 @@ declare module KiiCloud { * // Authentication failed. * } * ); - * + * * // example to use Promise * Kii.authenticateAsAppAdmin("your client id", "your client secret").then( * function(adminContext) { // fulfill callback function * // adminContext : KiiAppAdminContext instance * // Operate entities with adminContext. - * + * * }, * function(error) { // reject callback function * // Authentication failed. @@ -464,7 +462,7 @@ declare module KiiCloud { * // do something with the error response * } * }); - * + * * // example to use promise * Kii.listTopics().then( * function(params) { @@ -521,12 +519,12 @@ declare module KiiCloud { * success: function(theACL, theEntries) { * // do something * }, - * + * * failure: function(theACL, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var acl = . . .; // a KiiACL object * acl.listACLEntries().then( @@ -594,12 +592,12 @@ declare module KiiCloud { * success: function(theSavedACL) { * // do something with the saved acl * }, - * + * * failure: function(theACL, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var acl = . . .; // a KiiACL object * acl.save().then( @@ -639,7 +637,7 @@ declare module KiiCloud { /** * Get the action that is being permitted/restricted in this entry * - * @return + * @return */ getAction(): KiiACLAction; @@ -655,7 +653,7 @@ declare module KiiCloud { /** * Get the subject that is being permitted/restricted in this entry * - * @return + * @return */ getSubject(): T; @@ -671,13 +669,13 @@ declare module KiiCloud { /** * Get whether or not the action is being permitted to the subject * - * @return + * @return */ getGrant(): boolean; /** * Create a KiiACLEntry object with a subject and action - * + * * The entry will not be applied on the server until the KiiACL object is * explicitly saved. This method simply returns a working KiiACLEntry with * a specified subject and action. @@ -728,7 +726,7 @@ declare module KiiCloud { /** * Set the logging status of the SDK - * + * * Helpful for development - we strongly advice you turn off logging for any production code. * * @param True if logs should be printed, false otherwise @@ -739,10 +737,10 @@ declare module KiiCloud { static setLogging(True: boolean): void; /** - * + * * * @deprecated Use {@link Kii.initializeWithSite} instead. Initialize the Kii SDK with a specific URL - * + * * Should be the first Kii SDK action your application makes * * @param appID The application ID found in your Kii developer console @@ -759,10 +757,10 @@ declare module KiiCloud { static initializeWithSite(appID: string, appKey: string, site: KiiAnalyticsSite, deviceid: string): void; /** - * + * * * @deprecated Use {@link Kii.initialize} instead. Initialize the KiiAnalytics SDK - * + * * Should be the first KiiAnalytics SDK action your application makes * * @param appID The application ID found in your Kii developer console @@ -779,7 +777,7 @@ declare module KiiCloud { /** * Utilize the KiiAnalytics logger to track SDK-specific actions - * + * * Helpful for development - we strongly advice you turn off logging for any production code. * * @param message The message to print to console.log in your browser @@ -791,7 +789,7 @@ declare module KiiCloud { /** * Log a single event to be uploaded to KiiAnalytics - * + * * Use this method if you'd like to track an event by name only. If you'd like to track other attributes/dimensions, please use KiiAnalytics.trackEventWithExtras(eventName, parameters) * * @param eventName A string representing the event name for later tracking @@ -810,7 +808,7 @@ declare module KiiCloud { /** * Log a single event to be uploaded to KiiAnalytics - * + * * Use this method if you'd like to track an event by name and add extra information to the event. * * @param eventName A string representing the event name for later tracking @@ -833,7 +831,7 @@ declare module KiiCloud { /** * Log a single event to be uploaded to KiiAnalytics - * + * * Use this method if you'd like to track an event asynchronously by name and add extra information to the event. * * @param eventName A string representing the event name for later tracking @@ -856,7 +854,7 @@ declare module KiiCloud { static trackEventWithExtrasAndCallbacks(eventName: string, extras: any, callbacks?: { success(): any; failure(error: Error): any; }): Promise; /** - * + * * * @deprecated Set a custom API endpoint URL * @@ -865,7 +863,7 @@ declare module KiiCloud { static setBaseURL(url: string): void; /** - * + * * * @deprecated Use {@link Kii.getSDKVersion} instead. Kii Analytics SDK Version Number * @@ -876,7 +874,7 @@ declare module KiiCloud { /** * Represent an anonymous user for setting the ACL of an object. This will include anyone using the application but have not signed up or authenticated as registered user. - * + * * When retrieving ACL from an object, test for this class to determine the subject type. */ export class KiiAnonymousUser { @@ -888,7 +886,7 @@ declare module KiiCloud { /** * Represent any authenticated user for setting the ACL of an object. This will include anyone using the application who has registered and authenticated in the current session. - * + * * When retrieving ACL from an object, test for this class to determine the subject type. Example: */ export class KiiAnyAuthenticatedUser { @@ -1036,14 +1034,14 @@ declare module KiiCloud { /** * Register new group own by specified user on Kii Cloud with specified ID. * This method can be used only by app admin. - * + * *

If the group that has specified id already exists, registration will be failed. * * @param groupID ID of the KiiGroup * @param groupName Name of the KiiGroup * @param user id of owner * @param members An array of KiiUser objects to add to the group - * @param callbacks + * @param callbacks * * @return return promise object. *
    @@ -1169,7 +1167,7 @@ declare module KiiCloud { * // Auth failed. * } * }); - * + * * // example to use Promise * Kii.authenticateAsAppAdmin("client-id", "client-secret").then( * function(adminContext) { @@ -1243,7 +1241,7 @@ declare module KiiCloud { * // Auth failed. * } * }); - * + * * // example to use Promise * Kii.authenticateAsAppAdmin("client-id", "client-secret").then( * function(adminContext) { @@ -1382,7 +1380,7 @@ declare module KiiCloud { * } * } * ); - * + * * // example to use Promise * // Assume you already have adminContext instance. * adminContext.registerThing( @@ -1457,7 +1455,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * // assume thing/group is already registered. * var group = KiiGroup.groupWithURI("kiicloud://groups/xxxyyyy"); @@ -1510,7 +1508,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * // assume thing/group is already registered. * var group = KiiGroup.groupWithURI("kiicloud://groups/xxxyyyy"); @@ -1558,7 +1556,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * // Assume you already have adminContext instance. * adminContext.loadThingWithVendorThingID("thing-xxxx-yyyy").then( @@ -1605,7 +1603,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * // Assume you already have adminContext instance. * adminContext.loadThingWithThingID("thing-xxxx-yyyy").then( @@ -1672,7 +1670,7 @@ declare module KiiCloud { * // do something with the error response * } * }); - * + * * // example to use Promise * // Assume you already have adminContext instance. * adminContext.listTopics().then( @@ -1705,13 +1703,13 @@ declare module KiiCloud { /** * The name of this bucket * - * @return + * @return */ getBucketName(): string; /** * Create a KiiObject within the current bucket - * + * *

    The object will not be created on the server until the KiiObject is explicitly saved. This method simply returns an empty working KiiObject. * * @return An empty KiiObject with no specific type @@ -1724,7 +1722,7 @@ declare module KiiCloud { /** * Create a KiiObject within the current bucket, with type - * + * *

    The object will not be created on the server until the KiiObject is explicitly saved. This method simply returns an empty working KiiObject with a specified type. The type allows for better indexing and improved query results. It is recommended to use this method - but for lazy creation, the createObject method is also available. * * @param type A string representing the desired object type @@ -1739,7 +1737,7 @@ declare module KiiCloud { /** * Create a KiiObject within the current bucket, specifying its ID. - * + * *

    If the object has not exist on KiiCloud, {@link KiiObject#saveAllFields(callback)} * will create new Object which has ID specified in the argument. * If the object exist in KiiCloud, references the existing object which has @@ -1761,7 +1759,7 @@ declare module KiiCloud { /** * Get the ACL handle for this bucket - * + * *

    Any KiiACLEntry objects added or revoked from this ACL object will be appended to/removed from the server on ACL save. * * @return A KiiACL object associated with this KiiObject @@ -1774,7 +1772,7 @@ declare module KiiCloud { /** * Perform a query on the given bucket - * + * *

    The query will be executed against the server, returning a result set. * * @param query An object with callback methods defined @@ -1801,7 +1799,7 @@ declare module KiiCloud { * // example to use callbacks directly * var bucket = . . .; // a KiiBucket * var queryObject = . . .; // a KiiQuery - * + * * // define the callbacks (stored in a variable for reusability) * var queryCallbacks = { * success: function(queryPerformed, resultSet, nextQuery) { @@ -1810,21 +1808,21 @@ declare module KiiCloud { * // do something with the object * // resultSet[i]; // could be KiiObject, KiiGroup, KiiUser, etc * } - * + * * // if there are more results to be retrieved * if(nextQuery != null) { - * + * * // get them and repeat recursively until no results remain * bucket.executeQuery(nextQuery, queryCallbacks); * } * }, - * + * * failure: function(bucket, anErrorString) { * // do something with the error response * } * }; * bucket.executeQuery(queryObject, queryCallbacks); - * + * * // example to use Promise * var bucket = . . .; // a KiiBucket * var queryObject = . . .; // a KiiQuery @@ -1838,10 +1836,10 @@ declare module KiiCloud { * // do something with the object * // resultSet[i]; // could be KiiObject, KiiGroup, KiiUser, etc * } - * + * * // if there are more results to be retrieved * if(nextQuery != null) { - * + * * // get them and repeat recursively until no results remain * bucket.executeQuery(nextQuery).then( * function(params) { @@ -1852,7 +1850,7 @@ declare module KiiCloud { * } * ); * } - * + * * }, * function(error) { * // do something with the error response @@ -1890,24 +1888,24 @@ declare module KiiCloud { * // example to use callbacks directly * var bucket = . . .; // a KiiBucket * var queryObject = . . .; // a KiiQuery - * + * * // define the callbacks * var callbacks = { * success: function(bucket, query, count) { * // do something with the results * }, - * + * * failure: function(bucket, errorString) { * // error happened. * } * }; - * + * * bucket.countWithQuery(queryObject, callbacks); - * + * * // example to use Promise * var bucket = . . .; // a KiiBucket * var queryObject = . . .; // a KiiQuery - * + * * bucket.countWithQuery(queryObject, callbacks).then( * function(params) { * var bucket = params[0]; @@ -1954,18 +1952,18 @@ declare module KiiCloud { * success: function(bucket, query, count) { * // do something with the results * }, - * + * * failure: function(bucket, errorString) { * // error happened. * } * }; - * + * * bucket.count(callbacks); - * + * * // example to use Promise * var bucket = . . .; // a KiiBucket * var queryObject = . . .; // a KiiQuery - * + * * bucket.count().then( * function(params) { * var bucket = params[0]; @@ -2004,19 +2002,19 @@ declare module KiiCloud { * success: function(deletedBucket) { * // do something with the result * }, - * + * * failure: function(bucketToDelete, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var bucket = . . .; // a KiiBucket * bucket['delete']({ * success: function(deletedBucket) { * // do something with the result * }, - * + * * failure: function(bucketToDelete, anErrorString) { * // do something with the error response * } @@ -2147,7 +2145,7 @@ declare module KiiCloud { * var orderByKey = "_calculated." + putDistanceInto; * query.sortByAsc(orderByKey); * // Define the callbacks - * var bucket = Kii.bucketWithName("MyBucket"); + * var bucket = Kii.bucketWithName("MyBucket"); * var queryCallback = { * success: function(queryPerformed, resultSet, nextQuery) { * // check the first object from resultSet. @@ -2214,12 +2212,12 @@ declare module KiiCloud { */ export class KiiGroup { /** - * + * * * @deprecated Use {@link KiiGroup.getId} instead. * Get the UUID of the given group, assigned by the server * - * @return + * @return */ getUUID(): string; @@ -2233,13 +2231,13 @@ declare module KiiCloud { /** * The name of this group * - * @return + * @return */ getName(): string; /** * Returns the owner of this group if this group holds the information of owner. - * + * * Group will holds the information of owner when "saving group on cloud" or "retrieving group info/owner from cloud". * The cache will not be shared among the different instances of KiiGroup. *
      @@ -2258,7 +2256,7 @@ declare module KiiCloud { /** * Get a specifically formatted string referencing the group - * + * *

      The group must exist in the cloud (have a valid UUID). * * @return A URI string based on the current group. null if a URI couldn't be generated. @@ -2271,7 +2269,7 @@ declare module KiiCloud { /** * Register new group own by current user on Kii Cloud with specified ID. - * + * *

      If the group that has specified id already exists, registration will be failed. * * @param groupID ID of the KiiGroup @@ -2304,7 +2302,7 @@ declare module KiiCloud { * // do something with the error response * } * }); - * + * * // example to use Promise * var members = []; * members.push(KiiUser.userWithID("Member User Id")); @@ -2323,7 +2321,7 @@ declare module KiiCloud { /** * Creates a reference to a bucket for this group - * + * *

      The bucket will be created/accessed within this group's scope * * @param bucketName The name of the bucket the user should create/access @@ -2338,7 +2336,7 @@ declare module KiiCloud { /** * Creates a reference to a encrypted bucket for this group - * + * *

      The bucket will be created/accessed within this group's scope * * @param bucketName The name of the bucket the user should create/access @@ -2353,7 +2351,7 @@ declare module KiiCloud { /** * Adds a user to the given group - * + * *

      This method will NOT access the server immediately. You must call save to add the user on the server. This allows multiple users to be added/removed before calling save. * * @param member The user to be added to the group @@ -2368,7 +2366,7 @@ declare module KiiCloud { /** * Removes a user from the given group - * + * *

      This method will NOT access the server immediately. You must call save to remove the user on the server. This allows multiple users to be added/removed before calling save. * * @param member The user to be added to the group @@ -2412,12 +2410,12 @@ declare module KiiCloud { * var u = memberList[i]; // a KiiUser within the group * } * }, - * + * * failure: function(theGroup, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var group = . . .; // a KiiGroup * group.getMemberList().then( @@ -2460,12 +2458,12 @@ declare module KiiCloud { * success: function(theRenamedGroup) { * // do something with the group * }, - * + * * failure: function(theGroup, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var group = . . .; // a KiiGroup * group.changeGroupName("myNewName").then( @@ -2481,7 +2479,7 @@ declare module KiiCloud { /** * Saves the latest group values to the server - * + * *

      If the group does not yet exist, it will be created. If the group already exists, the members that have changed will be updated accordingly. If the group already exists and there is no updates of members, it will allways succeed but does not execute update. To change the name of group, use {@link #changeGroupName}. * * @param callbacks An object with callback methods defined @@ -2506,19 +2504,19 @@ declare module KiiCloud { * success: function(theSavedGroup) { * // do something with the saved group * }, - * + * * failure: function(theGroup, anErrorString, addMembersArray, removeMembersArray) { * // do something with the error response * } * }); - * + * * // example to use Promise * var group = . . .; // a KiiGroup * group.save({ * success: function(theSavedGroup) { * // do something with the saved group * }, - * + * * failure: function(theGroup, anErrorString, addMembersArray, removeMembersArray) { * // do something with the error response * } @@ -2539,7 +2537,7 @@ declare module KiiCloud { /** * Saves the latest group values to the server with specified owner. * This method can be used only by the group owner or app admin. - * + * *

      If the group does not yet exist, it will be created. If the group already exists, the members and owner that have changed will be updated accordingly. If the group already exists and there is no updates of members and owner, it will allways succeed but does not execute update. To change the name of group, use {@link #changeGroupName}. * * @param user id of owner @@ -2565,19 +2563,19 @@ declare module KiiCloud { * success: function(theSavedGroup) { * // do something with the saved group * }, - * + * * failure: function(theGroup, anErrorString, addMembersArray, removeMembersArray) { * // do something with the error response * } * }); - * + * * // example to use Promise * var group = . . .; // a KiiGroup * group.saveWithOwner("UserID of owner", { * success: function(theSavedGroup) { * // do something with the saved group * }, - * + * * failure: function(theGroup, anErrorString, addMembersArray, removeMembersArray) { * // do something with the error response * } @@ -2597,7 +2595,7 @@ declare module KiiCloud { /** * Updates the local group's data with the group data on the server - * + * *

      The group must exist on the server. Local data will be overwritten. * * @param callbacks An object with callback methods defined @@ -2620,12 +2618,12 @@ declare module KiiCloud { * success: function(theRefreshedGroup) { * // do something with the refreshed group * }, - * + * * failure: function(theGroup, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var group = . . .; // a KiiGroup * group.refresh().then( @@ -2662,18 +2660,18 @@ declare module KiiCloud { * success: function(theDeletedGroup) { * // do something * }, - * + * * failure: function(theGroup, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var group = . . .; // a KiiGroup * group['delete']({ * success: function(theDeletedGroup) { * }, - * + * * failure: function(theGroup, anErrorString) { * } * }).then( @@ -2689,7 +2687,7 @@ declare module KiiCloud { /** * Gets the owner of the associated group - * + * * This API does not return all the properties of the owner. * To get all owner properties, {@link KiiUser#refresh} is necessary. * @@ -2722,7 +2720,7 @@ declare module KiiCloud { * // do something with the error response * } * }); - * + * * // example to use Promise * var group = . . .; // a KiiGroup * group.getOwner().then( @@ -2856,7 +2854,7 @@ declare module KiiCloud { * // do something with the error response * } * }); - * + * * // example to use promise * var group = . . .; // a KiiGroup * group.listTopics().then( @@ -2889,21 +2887,21 @@ declare module KiiCloud { /** * Get the UUID of the given object, assigned by the server * - * @return + * @return */ getUUID(): string; /** * Get the server's creation date of this object * - * @return + * @return */ getCreated(): number; /** * Get the modified date of the given object, assigned by the server * - * @return + * @return */ getModified(): string; @@ -2925,7 +2923,7 @@ declare module KiiCloud { /** * Sets a key/value pair to a KiiObject - * + * *

      If the key already exists, its value will be written over. *
      NOTE: Before involving floating point value, please consider using integer instead. For example, use percentage, permil, ppm, etc.
      * The reason is: @@ -2979,7 +2977,7 @@ declare module KiiCloud { /** * Get the ACL handle for this file - * + * *

      Any KiiACLEntry objects added or revoked from this ACL object will be appended to/removed from the server on ACL save. * * @return A KiiACL object associated with this KiiObject @@ -2992,7 +2990,7 @@ declare module KiiCloud { /** * Get a specifically formatted string referencing the object - * + * *

      The object must exist in the cloud (have a valid UUID). * * @return A URI string based on the current object. null if a URI couldn't be generated. @@ -3041,12 +3039,12 @@ declare module KiiCloud { * success: function(theSavedObject) { * // do something with the saved object * }, - * + * * failure: function(theObject, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var obj = . . .; // a KiiObject * obj.saveAllFields().then( @@ -3099,12 +3097,12 @@ declare module KiiCloud { * success: function(theSavedObject) { * // do something with the saved object * }, - * + * * failure: function(theObject, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var obj = . . .; // a KiiObject * obj.save().then( @@ -3120,7 +3118,7 @@ declare module KiiCloud { /** * Updates the local object's data with the user data on the server - * + * *

      The object must exist on the server. Local data will be overwritten. * * @param callbacks An object with callback methods defined @@ -3143,12 +3141,12 @@ declare module KiiCloud { * success: function(theRefreshedObject) { * // do something with the refreshed object * }, - * + * * failure: function(theObject, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var obj = . . .; // a KiiObject * obj.refresh().then( @@ -3185,12 +3183,12 @@ declare module KiiCloud { * success: function(theDeletedObject) { * // do something * }, - * + * * failure: function(theObject, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var obj = . . .; // a KiiObject * obj['delete']().then( @@ -3254,12 +3252,12 @@ declare module KiiCloud { * success: function(theSrcObject, theTgtObjectUri) { * // Do something with the objects * }, - * + * * failure: function(theSrcObject, theTgtObjectUri, anErrorString) { * // Do something with the error response * } * }); - * + * * // example to use Promise * var sourceObject = ...; // Source KiiObject * var targetObject = ...; // Target KiiObject @@ -3328,7 +3326,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * var myObject = Kii.bucketWithName('myBucket').createObject(); * myObject.save().then( @@ -3392,7 +3390,7 @@ declare module KiiCloud { * if (oEvent.lengthComputable) { * var percentComplete = oEvent.loaded / oEvent.total; * //getting download progress. You can update progress bar on this function. - * + * * } * }, * success: function(obj, bodyBlob) { @@ -3405,7 +3403,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * var myObject = KiiObject.objectWithURI('put existing object uri here'); * myObject.downloadBody({ @@ -3413,7 +3411,7 @@ declare module KiiCloud { * if (oEvent.lengthComputable) { * var percentComplete = oEvent.loaded / oEvent.total; * //getting download progress. You can update progress bar on this function. - * + * * } * } * ).then( @@ -3469,7 +3467,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * var myObject = KiiObject.objectWithURI('put existing object uri here'); * myObject.publishBody().then( @@ -3524,7 +3522,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * var myObject = KiiObject.objectWithURI('put existing object uri here'); * var expiresAt = new Date(2014, 11, 24); @@ -3580,7 +3578,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * var myObject = KiiObject.objectWithURI('put existing object uri here'); * var expiresIn = 60 * 60; // Expires in 1 hour. @@ -3623,12 +3621,12 @@ declare module KiiCloud { * success: function(theDeletedObject) { * // do something * }, - * + * * failure: function(obj, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var obj = . . .; // a KiiObject * obj.deleteBody().then( @@ -3754,7 +3752,7 @@ declare module KiiCloud { * If this method is not called, no collapse_key is applied. * For details please refer to GCM document of collapse_key. * - * @param collapseKey + * @param collapseKey * * @return builder instance. */ @@ -3765,7 +3763,7 @@ declare module KiiCloud { * If this method is not called, no delay_while_idle is applied. * For details please refer to GCM document of delay_while_idle. * - * @param delayWhileIdle + * @param delayWhileIdle * * @return builder instance. */ @@ -3776,7 +3774,7 @@ declare module KiiCloud { * If this method is not called, no time_to_live is applied. * For details please refer to GCM document of time_to_live. * - * @param timeToLive + * @param timeToLive * * @return builder instance. */ @@ -3787,7 +3785,7 @@ declare module KiiCloud { * If this method is not called, no restricted_package_name is applied. * For details please refer to GCM document of restricted_package_name. * - * @param restrictedPackageName + * @param restrictedPackageName * * @return builder instance. */ @@ -3822,7 +3820,7 @@ declare module KiiCloud { * If this method is not called, no sound is applied. * For details please refer to APNS document of sound. * - * @param sound + * @param sound * * @return builder instance. */ @@ -3833,7 +3831,7 @@ declare module KiiCloud { * If this method is not called, no badge is applied. * For details please refer to APNS document of badge. * - * @param badge + * @param badge * * @return builder instance. */ @@ -3856,7 +3854,7 @@ declare module KiiCloud { * If this method is not called, no category is applied. * For details please refer to APNS document of category. * - * @param category + * @param category * * @return builder instance. */ @@ -3927,7 +3925,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * var topic = Kii.topicWithName("myAppTopic"); * var user = KiiUser.getCurrentUser(); @@ -3978,7 +3976,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * var topic = Kii.topicWithName("myAppTopic"); * var user = KiiUser.getCurrentUser(); @@ -4035,7 +4033,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * var topic = Kii.topicWithName("myAppTopic"); * var user = KiiUser.getCurrentUser(); @@ -4066,7 +4064,7 @@ declare module KiiCloud { /** * Get the limit of the current query * - * @return + * @return */ getLimit(): number; @@ -4090,7 +4088,7 @@ declare module KiiCloud { /** * Set the query to sort by a field in descending order - * + * * If a sort has already been set, it will be overwritten. * * @param field The key that should be used to sort @@ -4099,7 +4097,7 @@ declare module KiiCloud { /** * Set the query to sort by a field in ascending order - * + * * If a sort has already been set, it will be overwritten. * * @param field The key that should be used to sort @@ -4141,29 +4139,29 @@ declare module KiiCloud { * // example to use callbacks directly * // Instantiate with the endpoint. * var entry = Kii.serverCodeEntry("main"); - * + * * // Set the custom parameters. * var arg = {"username":"name_of_my_friend", "password":"password_for_my_friend"}; - * + * * // Example of executing the Server Code * entry.execute(arg, { - * + * * success: function(entry, argument, execResult) { * // do something now that the user is logged in * }, - * + * * failure: function(entry, argument, execResult, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * // Instantiate with the endpoint. * var entry = Kii.serverCodeEntry("main"); - * + * * // Set the custom parameters. * var arg = {"username":"name_of_my_friend", "password":"password_for_my_friend"}; - * + * * // Example of executing the Server Code * entry.execute(arg).then( * function(params) { @@ -4211,11 +4209,11 @@ declare module KiiCloud { */ export class KiiSocialConnect { /** - * + * * * @deprecated You don't have to call this method. * Set up a reference to one of the supported KiiSocialNetworks. - * + * * Set up the network. Need to be called before accessing other methods. *
      Facebook * @@ -4254,7 +4252,7 @@ declare module KiiCloud { * * *
      - * + * *
      Twitter * * @@ -4341,7 +4339,7 @@ declare module KiiCloud { /** * Log a user into the social network provided - * + * * This will initiate the login process for the given network. If user has already linked with the specified social network, * sign-in with the social network. Otherwise, this will sign-up and create new user authenticated by the specified social network. * If sign-up successful, the user is cached inside SDK as current user,and accessible via {@link KiiUser.getCurrentUser()}. @@ -4352,7 +4350,7 @@ declare module KiiCloud { * * @param networkName One of the supported KiiSocialNetworkName values * @param options A dictionary of key/values to pass to KiiSocialConnect - * + * *
      Facebook *
      * @@ -4372,7 +4370,7 @@ declare module KiiCloud { * * *
      - * + * *
      Twitter * * @@ -4398,7 +4396,7 @@ declare module KiiCloud { * * *
      - * + * *
      Google * * @@ -4418,7 +4416,7 @@ declare module KiiCloud { * * *
      - * + * *
      Renren * * @@ -4438,7 +4436,7 @@ declare module KiiCloud { * * *
      - * + * *
      QQ * * @@ -4486,16 +4484,16 @@ declare module KiiCloud { * // example to use callbacks directly * // Example of using no option * KiiSocialConnect.logIn(KiiSocialNetworkName.FACEBOOK, null, { - * + * * success: function(user, network) { * // do something now that the user is logged in * }, - * + * * failure: function(user, network, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * KiiSocialConnect.logIn(KiiSocialNetworkName.FACEBOOK, null).then( * function(params) { @@ -4510,7 +4508,7 @@ declare module KiiCloud { /** * Link the currently logged in user with a social network - * + * * This will initiate the login process for the given network, which for SSO-enabled services like Facebook, will send the user to the Facebook site for authentication. There must be a currently authenticated KiiUser. Otherwise, you can use the logIn: method to create and log in a KiiUser using a network. The network must already be set up via setupNetwork
      * If there is not logged-in user to link with, callbacks.failure or reject callback of promise will be called.
      * If the opitons is invalid, callbacks.failure or reject callback of promise will be called.
      @@ -4536,7 +4534,7 @@ declare module KiiCloud { * * *
      - * + * *
      Twitter * * @@ -4562,7 +4560,7 @@ declare module KiiCloud { * * *
      - * + * *
      Google * * @@ -4582,7 +4580,7 @@ declare module KiiCloud { * * *
      - * + * *
      Renren * * @@ -4602,7 +4600,7 @@ declare module KiiCloud { * * *
      - * + * *
      QQ * * @@ -4651,16 +4649,16 @@ declare module KiiCloud { * // example to use callbacks directly * // Example of using no option * KiiSocialConnect.linkCurrentUserWithNetwork(KiiSocialNetworkName.FACEBOOK, null, { - * + * * success: function(user, network) { * // do something now that the user is linked * }, - * + * * failure: function(user, network, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * // Example of using no option * KiiSocialConnect.linkCurrentUserWithNetwork(KiiSocialNetworkName.FACEBOOK, null).then( @@ -4676,7 +4674,7 @@ declare module KiiCloud { /** * Unlink the currently logged in user with a social network - * + * * The network must already be set up via setupNetwork * * @param networkName One of the supported KiiSocialNetworkName values @@ -4700,19 +4698,19 @@ declare module KiiCloud { * * * @example - * + * * // example to use callbacks directly * KiiSocialConnect.unLinkCurrentUserFromNetwork(KiiSocialNetworkName.FACEBOOK, { - * + * * success: function(user, network) { * // do something now that the user is unlinked * }, - * + * * failure: function(user, network, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * KiiSocialConnect.unLinkCurrentUserFromNetwork(KiiSocialNetworkName.FACEBOOK).then( * function(params) { @@ -4739,7 +4737,7 @@ declare module KiiCloud { /** * Retrieve the current user's access token expiration date from a social network - * + * * The network must be set up and linked to the current user. It is recommended you save this to preferences for multi-session use. * * @deprecated Use {@link KiiSocialConnect.getAccessTokenObjectForNetwork} instead. @@ -4752,7 +4750,7 @@ declare module KiiCloud { /** * Retrieve the current user's access token object from a social network - * + * * The network must be set up and linked to the current user. * It is recommended you save this to preferences for multi-session use.

      * Following parameters can be assigned to object.

      @@ -4885,7 +4883,7 @@ declare module KiiCloud { * } * } * ); - * + * * // example to use Promise * KiiThing.register( * { @@ -4941,7 +4939,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * // assume thing is already registered. * thing.refresh().then( @@ -4994,7 +4992,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * // assume thing is already registered. * thing.fields._stringField1 = "new string value"; @@ -5020,7 +5018,7 @@ declare module KiiCloud { *
      To let users to own thing, please call {@link KiiThing#registerOwner} *
      Note: if you obtain thing instance from {@link KiiAppAdminContext}, * API is authorized by app admin.
      - * + * * It will delete bucket, topic which belongs to this thing, * entity belongs to the bucket/topic and all ownership information of thing. * This operation can not be reverted. Please carefully use this. @@ -5049,7 +5047,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * // assume thing is already registered. * thing.deleteThing().then( @@ -5107,7 +5105,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * // assume thing/user is already registered. * var user = KiiUser.userWithURI("kiicloud://users/xxxyyyy"); @@ -5166,7 +5164,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * // assume thing/group is already registered. * var group = KiiGroup.groupWithURI("kiicloud://groups/xxxyyyy"); @@ -5219,7 +5217,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * // assume thing/group is already registered. * var group = KiiGroup.groupWithURI("kiicloud://groups/xxxyyyy"); @@ -5271,7 +5269,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * // assume thing/group is already registered. * var group = KiiGroup.groupWithURI("kiicloud://groups/xxxyyyy"); @@ -5324,7 +5322,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * // assume thing/group is already registered. * var group = KiiGroup.groupWithURI("kiicloud://groups/xxxyyyy"); @@ -5346,7 +5344,7 @@ declare module KiiCloud { *
      To let users to own Thing, please call {@link KiiThing#registerOwner} *
      Note: if you obtain thing instance from {@link KiiAppAdminContext}, * API is authorized by app admin.
      - * + * * After succeeded, access token published for thing is disabled. * In a result, only the app administrator and owners of thing can access the thing. * Used when user lost the thing and avoid using by unknown users. @@ -5376,7 +5374,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * // assume thing is already registered. * thing.disable().then( @@ -5397,7 +5395,7 @@ declare module KiiCloud { *
      To let users to own Thing, please call {@link KiiThing#registerOwner} *
      Note: if you obtain thing instance from {@link KiiAppAdminContext}, * API is authorized by app admin.
      - * + * * After succeeded, If thing is registered with "persistentToken" option, * token should be recovered (Access token which is used before disabling can be available). * Otherwise, it does not recovered. @@ -5427,7 +5425,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * // assume thing is already registered. * thing.enable().then( @@ -5472,7 +5470,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * KiiThing.loadWithVendorThingID("thing-xxxx-yyyy").then( * function(thing) { @@ -5492,7 +5490,7 @@ declare module KiiCloud { *
      To let users to own Thing, please call {@link KiiThing#registerOwner} *
      Note: if you obtain thing instance from {@link KiiAppAdminContext}, * API is authorized by app admin.
      - * + * * thing id can be obtained by {@link thingID} * * @param thingID registered thing id. @@ -5518,7 +5516,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * KiiThing.loadWithVendorThingID("thing-xxxx-yyyy").then( * function(thing) { @@ -5542,7 +5540,7 @@ declare module KiiCloud { /** * Creates a reference to a encrypted bucket for this thing - * + * *

      The bucket will be created/accessed within this thing's scope * * @param bucketName The name of the bucket the user should create/access @@ -5606,7 +5604,7 @@ declare module KiiCloud { * // do something with the error response * } * }); - * + * * // example to use promise * var thing = . . .; // a KiiThing * thing.listTopics().then( @@ -5676,7 +5674,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * // assume topic is already instantiated. * topic.exists().then( @@ -5716,7 +5714,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * // assume topic is already instantiated. * topic.save().then( @@ -5767,7 +5765,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * // assume topic is already instantiated. * var contents = { @@ -5812,7 +5810,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * // assume topic is already instantiated. * topic.deleteTopic().then( @@ -5841,12 +5839,12 @@ declare module KiiCloud { */ export class KiiUser { /** - * + * * * @deprecated Use {@link KiiUser.getId} instead. * Get the UUID of the given user, assigned by the server * - * @return + * @return */ getUUID(): string; @@ -5860,7 +5858,7 @@ declare module KiiCloud { /** * Get the username of the given user * - * @return + * @return */ getUsername(): string; @@ -5875,7 +5873,7 @@ declare module KiiCloud { /** * Get the display name associated with this user * - * @return + * @return */ getDisplayName(): string; @@ -5900,21 +5898,21 @@ declare module KiiCloud { /** * Get the email address associated with this user * - * @return + * @return */ getEmailAddress(): string; /** * Get the phone number associated with this user * - * @return + * @return */ getPhoneNumber(): string; /** * Get the country code associated with this user * - * @return + * @return */ getCountry(): string; @@ -5930,16 +5928,16 @@ declare module KiiCloud { /** * Get the server's creation date of this user * - * @return + * @return */ getCreated(): string; /** - * + * * * @deprecated Get the modified date of the given user, assigned by the server * - * @return + * @return */ getModified(): string; @@ -5973,7 +5971,7 @@ declare module KiiCloud { /** * Get the access token for the user - only available if the user is currently logged in * - * @return + * @return */ getAccessToken(): string; @@ -6003,7 +6001,7 @@ declare module KiiCloud { /** * Get a specifically formatted string referencing the user - * + * *

      The user must exist in the cloud (have a valid UUID). * * @return A URI string based on the given user. null if a URI couldn't be generated. @@ -6016,7 +6014,7 @@ declare module KiiCloud { /** * Sets a key/value pair to a KiiUser - * + * *

      If the key already exists, its value will be written over. If the object is of invalid type, it will return false and a KiiError will be thrown (quietly). Accepted types are any JSON-encodable objects. * * @param key The key to set. The key must not be a system key (created, metadata, modified, type, uuid) or begin with an underscore (_) @@ -6044,7 +6042,7 @@ declare module KiiCloud { /** * The currently authenticated user * - * @return + * @return * * @example * var user = KiiUser.getCurrentUser(); @@ -6053,7 +6051,7 @@ declare module KiiCloud { /** * Create a user object to prepare for registration with credentials pre-filled - * + * *

      Creates an pre-filled user object for manipulation. This user will not be authenticated until one of the authentication methods are called on it. It can be treated as any other KiiObject before it is authenticated. * * @param username The user's desired username. Must be between 3 and 64 characters, which can include alphanumeric characters as well as underscores '_', dashes '-' and periods '.' @@ -6071,7 +6069,7 @@ declare module KiiCloud { /** * Create a user object to prepare for registration with credentials pre-filled - * + * *

      Creates an pre-filled user object for registration. This user will not be authenticated until the registration method is called on it. It can be treated as any other KiiUser before it is registered. * * @param phoneNumber The user's phone number @@ -6089,7 +6087,7 @@ declare module KiiCloud { /** * Create a user object to prepare for registration with credentials pre-filled - * + * *

      Creates an pre-filled user object for registration. This user will not be authenticated until the registration method is called on it. It can be treated as any other KiiUser before it is registered. * * @param phoneNumber The user's phone number @@ -6109,7 +6107,7 @@ declare module KiiCloud { /** * Create a user object to prepare for registration with credentials pre-filled - * + * *

      Creates an pre-filled user object for registration. This user will not be authenticated until the registration method is called on it. It can be treated as any other KiiUser before it is registered. * * @param emailAddress The user's email address @@ -6127,7 +6125,7 @@ declare module KiiCloud { /** * Create a user object to prepare for registration with credentials pre-filled - * + * *

      Creates an pre-filled user object for registration. This user will not be authenticated until the registration method is called on it. It can be treated as any other KiiUser before it is registered. * * @param emailAddress The user's email address @@ -6147,7 +6145,7 @@ declare module KiiCloud { /** * Create a user object to prepare for registration with credentials pre-filled - * + * *

      Creates an pre-filled user object for registration. This user will not be authenticated until the registration method is called on it. It can be treated as any other KiiUser before it is registered. * * @param emailAddress The user's email address @@ -6167,7 +6165,7 @@ declare module KiiCloud { /** * Create a user object to prepare for registration with credentials pre-filled - * + * *

      Creates an pre-filled user object for registration. This user will not be authenticated until the registration method is called on it. It can be treated as any other KiiUser before it is registered. * * @param emailAddress The user's email address @@ -6221,7 +6219,7 @@ declare module KiiCloud { /** * Creates a reference to a bucket for this user - * + * *

      The bucket will be created/accessed within this user's scope * * @param bucketName The name of the bucket the user should create/access @@ -6236,7 +6234,7 @@ declare module KiiCloud { /** * Creates a reference to a encrypted bucket for this user - * + * *

      The bucket will be created/accessed within this user's scope * * @param bucketName The name of the bucket the user should create/access @@ -6278,12 +6276,12 @@ declare module KiiCloud { * success: function(theAuthenticatedUser) { * // do something with the authenticated user * }, - * + * * failure: function(theUser, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * KiiUser.authenticate("myusername", "mypassword").then( * function(theAuthenticatedUser) { @@ -6304,13 +6302,13 @@ declare module KiiCloud { * by {@link KiiUser#getAccessTokenObject()}.
      * Also, if successful, the user is cached inside SDK as current user * and accessible via {@link KiiUser.getCurrentUser()}.
      - * + * * Note that, if not specified, token expiration time is not cached * and set to value equivalant to 275760 years.
      - * + * * If the specified token is expired, authenticataiton will be failed. * Authenticate the user again to renew the token.
      - * + * * If expiresAt is invalid, callbacks.failure or reject callback of promise will be called.
      * * @param accessToken A valid access token associated with the desired user @@ -6339,12 +6337,12 @@ declare module KiiCloud { * success: function(theAuthenticatedUser) { * // do something with the authenticated user * }, - * + * * failure: function(theUser, anErrorString) { * // do something with the error response * } * }, expiresAt); - * + * * // example to use Promise * // Assume you stored the object get from KiiUser#getAccessTokenObject() * // and now accessing by 'tokenObject' var. @@ -6364,7 +6362,7 @@ declare module KiiCloud { /** * Registers a user with the server - * + * *

      The user object must have an associated email/password combination. * * @param callbacks An object with callback methods defined @@ -6387,12 +6385,12 @@ declare module KiiCloud { * success: function(theAuthenticatedUser) { * // do something with the authenticated user * }, - * + * * failure: function(theUser, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var user = KiiUser.userWithUsername("myusername", "mypassword"); * user.register().then( @@ -6430,12 +6428,12 @@ declare module KiiCloud { * success: function(theAuthenticatedUser) { * // do something with the authenticated user * }, - * + * * failure: function(theUser, anErrorString) { * // do something with the error response * } * }, userFields); - * + * * // example to use Promise * var userFields = {"displayName":"yourName", "country":"JP", "age":30}; * KiiUser.registerAsPseudoUser(null, userFields).then( @@ -6451,11 +6449,11 @@ declare module KiiCloud { /** * Sets credentials data and custom fields to pseudo user. - * + * *

      This method is exclusive to pseudo user. *
      password is mandatory and needs to provide at least one of login name, email address or phone number. * - * @param identityData + * @param identityData * @param password The user's password. Valid pattern is ^[\x20-\x7E]{4,50}$. * @param callbacks An object with callback methods defined. * This argument is mandatory and can't be ommited. @@ -6493,7 +6491,7 @@ declare module KiiCloud { * userFields, * removeFields * ); - * + * * // example to use Promise * var identityData = { "username": "__USER_NAME_" }; * var userFields = { "displayName":"__DISPLAY_NAME","score":12344300 }; @@ -6517,11 +6515,11 @@ declare module KiiCloud { /** * Update user attributes. - * - * + * + * *

      If you want to update identity data of pseudo user, you must use KiiUser.putIdentity instead. * - * @param identityData + * @param identityData * @param callbacks An object with callback methods defined. * This argument is mandatory and can't be ommited. * @param userFields Custom Fields to add to the user. @@ -6556,7 +6554,7 @@ declare module KiiCloud { * userFields, * removeFields * ); - * + * * // example to use Promise * var identityData = { "username": "__USER_NAME_" }; * var userFields = { "displayName":"__DISPLAY_NAME","score":12344300 }; @@ -6579,7 +6577,7 @@ declare module KiiCloud { /** * Update a user's password on the server - * + * *

      Update a user's password with the server. The fromPassword must be equal to the current password associated with the account in order to succeed. * * @param fromPassword The user's current password @@ -6604,12 +6602,12 @@ declare module KiiCloud { * success: function(theUser) { * // do something * }, - * + * * failure: function(theUser, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var user = Kii.currentUser(); * user.updatePassword("oldpassword", "newpassword").then( @@ -6625,7 +6623,7 @@ declare module KiiCloud { /** * Reset a user's password on the server - * + * *

      Reset a user's password on the server. The user is determined by the specified userIdentifier - which is an email address that has already been associated with an account. Reset instructions will be sent to that identifier. *

      Please Note: This will reset the user's access token, so if they are currently logged in - their session will no longer be valid. * @@ -6648,12 +6646,12 @@ declare module KiiCloud { * success: function() { * // do something * }, - * + * * failure: function(anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * KiiUser.resetPassword("johndoe@example.com").then( * function() { @@ -6701,7 +6699,7 @@ declare module KiiCloud { * // Handle error. * } * }); - * + * * // example to use Promise * KiiUser.resetPasswordWithNotificationMethod("+819001234567", "SMS").then( * function() { @@ -6751,12 +6749,12 @@ declare module KiiCloud { * success: function(theUser) { * // do something * }, - * + * * failure: function(theUser, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var user = Kii.currentUser(); * user.verifyPhoneNumber("012345").then( @@ -6772,7 +6770,7 @@ declare module KiiCloud { /** * Resend the email verification code to the user - * + * *

      This method will re-send the email verification to the currently logged in user * * @param callbacks An object with callback methods defined @@ -6795,12 +6793,12 @@ declare module KiiCloud { * success: function(theUser) { * // do something * }, - * + * * failure: function(theUser, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var user = Kii.currentUser(); * user.resendEmailVerification().then( @@ -6816,7 +6814,7 @@ declare module KiiCloud { /** * Resend the SMS verification code to the user - * + * *

      This method will re-send the SMS verification to the currently logged in user * * @param callbacks An object with callback methods defined @@ -6839,12 +6837,12 @@ declare module KiiCloud { * success: function(theUser) { * // do something * }, - * + * * failure: function(theUser, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var user = Kii.currentUser(); * user.resendPhoneNumberVerification().then( @@ -6889,12 +6887,12 @@ declare module KiiCloud { * var g = groupList[i]; // a KiiGroup object * } * }, - * + * * failure: function(theUser, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var user = Kii.currentUser(); * user.memberOfGroups().then( @@ -6946,12 +6944,12 @@ declare module KiiCloud { * var g = groupList[i]; // a KiiGroup object * } * }, - * + * * failure: function(theUser, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var user = Kii.currentUser(); * user.ownerOfGroups().then( @@ -6994,12 +6992,12 @@ declare module KiiCloud { * success: function(theUser) { * // do something on success * }, - * + * * failure: function(theUser, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var user = Kii.currentUser(); * user.changePhone('+19415551234').then( @@ -7037,12 +7035,12 @@ declare module KiiCloud { * success: function(theUser) { * // do something on success * }, - * + * * failure: function(theUser, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var user = Kii.currentUser(); * user.changeEmail('mynewemail@kii.com').then( @@ -7058,7 +7056,7 @@ declare module KiiCloud { /** * Saves the latest user values to the server - * + * *

      If the user does not yet exist, it will NOT be created. Otherwise, the fields that have changed will be updated accordingly. * * @param callbacks An object with callback methods defined @@ -7081,12 +7079,12 @@ declare module KiiCloud { * success: function(theSavedUser) { * // do something with the saved user * }, - * + * * failure: function(theUser, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var user = Kii.getCurrentUser(); // a KiiUser * user.save().then( @@ -7102,7 +7100,7 @@ declare module KiiCloud { /** * Updates the local user's data with the user data on the server - * + * *

      The user must exist on the server. Local data will be overwritten. * * @param callbacks An object with callback methods defined @@ -7125,12 +7123,12 @@ declare module KiiCloud { * success: function(theRefreshedUser) { * // do something with the refreshed user * }, - * + * * failure: function(theUser, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var user = Kii.getCurrentUser(); // a KiiUser * user.refresh().then( @@ -7167,12 +7165,12 @@ declare module KiiCloud { * success: function(theDeletedUser) { * // do something * }, - * + * * failure: function(theUser, anErrorString) { * // do something with the error response * } * }); - * + * * // example to use Promise * var user = Kii.getCurrentUser(); // a KiiUser * user['delete']().then( @@ -7240,7 +7238,7 @@ declare module KiiCloud { * // Do something with the error response * } * }); - * + * * // example to use Promise * KiiUser.findUserByEmail("user_to_find@example.com").then( * function(theMatchedUser) { @@ -7289,7 +7287,7 @@ declare module KiiCloud { * // Do something with the error response * } * }); - * + * * // example to use Promise * KiiUser.findUserByPhone("phone_number_to_find").then( * function(theMatchedUser) { @@ -7337,7 +7335,7 @@ declare module KiiCloud { * // Do something with the error response * } * }); - * + * * // example to use Promise * KiiUser.findUserByUsername("user_name_to_find").then( * function(theMatchedUser) { @@ -7401,7 +7399,7 @@ declare module KiiCloud { * // do something with the error response * } * }); - * + * * // example to use callbacks directly * var user = . . .; // a KiiUser * user.listTopics().then( diff --git a/koa/koa-1.1.2-tests.ts.tscparams b/koa/koa-1.1.2-tests.ts.tscparams deleted file mode 100644 index 4a863174b8e97c..00000000000000 --- a/koa/koa-1.1.2-tests.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ ---noImplicitAny --module commonjs --target es6 \ No newline at end of file diff --git a/less/less.d.ts b/less/less.d.ts index c8a83fbc861947..ed2f9b141351be 100644 --- a/less/less.d.ts +++ b/less/less.d.ts @@ -4,21 +4,6 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped declare module Less { - // Promise definitions from ../es6-promise/es6-promise.d.ts - interface Thenable { - then(onFulfilled?: (value: R) => U | Thenable, onRejected?: (error: any) => U | Thenable): Thenable; - } - - class Promise implements Thenable { - constructor(callback: (resolve : (value?: R | Thenable) => void, reject: (error?: any) => void) => void); - - then(onFulfilled?: (value: R) => U | Thenable, onRejected?: (error: any) => U | Thenable): Promise; - - catch(onRejected?: (error: any) => U | Thenable): Promise; - - finally(finallyCallback: () => any): Promise; - } - 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; - render(input: string, options: Less.Options): Less.Promise; + render(input: string): Promise; + render(input: string, options: Less.Options): Promise; version: number[]; } diff --git a/localForage/localForage.d.ts b/localForage/localForage.d.ts index ad25fd9f534f56..d42012e5f26bdd 100644 --- a/localForage/localForage.d.ts +++ b/localForage/localForage.d.ts @@ -3,41 +3,39 @@ // Definitions by: yuichi david pichsenmeister // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// - 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; - + 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; defineDriver(driver: LocalForageDriver, callback: () => void, errorCallback: (error: any) => void): void; - + getItem(key: string): Promise; getItem(key: string, callback: (err: any, value: T) => void): void; - + setItem(key: string, value: T): Promise; setItem(key: string, value: T, callback: (err: any, value: T) => void): void; - + removeItem(key: string): Promise; removeItem(key: string, callback: (err: any) => void): void; - + clear(): Promise; clear(callback: (err: any) => void): void; - + length(): Promise; length(callback: (err: any, numberOfKeys: number) => void): void; - + key(keyIndex: number): Promise; key(keyIndex: number, callback: (err: any, key: string) => void): void; - + keys(): Promise; keys(callback: (err: any, keys: string[]) => void): void; - + iterate(iteratee: (value: any, key: string, iterationNumber: number) => any): Promise; 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; -} \ No newline at end of file +} diff --git a/lodash-decorators/lodash-decorators-tests.ts.tscparams b/lodash-decorators/lodash-decorators-tests.ts.tscparams deleted file mode 100644 index 3f0863ac67cac7..00000000000000 --- a/lodash-decorators/lodash-decorators-tests.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ ---experimentalDecorators --noImplicitAny --target ES5 diff --git a/lovefield/lovefield.d.ts b/lovefield/lovefield.d.ts index 0b0afe023b969b..3c215fcc004dcd 100644 --- a/lovefield/lovefield.d.ts +++ b/lovefield/lovefield.d.ts @@ -3,8 +3,6 @@ // Definitions by: freshp86 // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// - declare module lf { export enum Order { ASC, DESC } diff --git a/merge-descriptors/merge-descriptors-tests.ts.tscparams b/merge-descriptors/merge-descriptors-tests.ts.tscparams deleted file mode 100644 index 4169d3605feb3c..00000000000000 --- a/merge-descriptors/merge-descriptors-tests.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ ---noImplicitAny --module commonjs --target es5 \ No newline at end of file diff --git a/meteor/meteor-tests.ts.tscparams b/meteor/meteor-tests.ts.tscparams deleted file mode 100644 index 3195c46cdac486..00000000000000 --- a/meteor/meteor-tests.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ ---noImplicitAny diff --git a/microsoft-live-connect/microsoft-live-connect-tests.ts.tscparams b/microsoft-live-connect/microsoft-live-connect-tests.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/microsoft-live-connect/microsoft-live-connect-tests.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/microsoft-live-connect/microsoft-live-connect.d.ts.tscparams b/microsoft-live-connect/microsoft-live-connect.d.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/microsoft-live-connect/microsoft-live-connect.d.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/mobservable-react/mobservable-react-tests.ts.tscparams b/mobservable-react/mobservable-react-tests.ts.tscparams deleted file mode 100644 index 3f1358357fcf5f..00000000000000 --- a/mobservable-react/mobservable-react-tests.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ ---noImplicitAny --module commonjs --target es5 --experimentalDecorators \ No newline at end of file diff --git a/mobservable/mobservable-tests.ts.tscparams b/mobservable/mobservable-tests.ts.tscparams deleted file mode 100644 index 64e543982c848e..00000000000000 --- a/mobservable/mobservable-tests.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ ---noImplicitAny --module commonjs --target es5 --experimentalDecorators diff --git a/mongodb/mongodb.d.ts b/mongodb/mongodb.d.ts index 695f14c6a43911..15e4fdec6ca494 100644 --- a/mongodb/mongodb.d.ts +++ b/mongodb/mongodb.d.ts @@ -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 +// Definitions by: Federico Caselli // Definitions: https://github.com/borisyankov/DefinitelyTyped // Documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/ /// -/// 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 { (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; dropDatabase(callback: MongoCallback): 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): void; - + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#executeDbAdminCommand executeDbAdminCommand(command: Object, callback: MongoCallback): void; executeDbAdminCommand(command: Object, options?: { readPreference?: ReadPreference | string, maxTimeMS?: number }): Promise; @@ -241,21 +240,21 @@ declare module "mongodb" { stats(options?: { scale?: number }): Promise;; stats(options: { scale?: number }, callback: MongoCallback): 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; } - + // Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html export class ReplSet extends EventEmitter { constructor(servers: Array, options?: ReplSetOptions); connections(): Array; } - + // Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html export class Mongos extends EventEmitter { constructor(servers: Array, 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): void //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#profilingInfo profilingInfo(): Promise; - profilingInfo(callback: MongoCallback): void + profilingInfo(callback: MongoCallback): void //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#profilingLevel profilingLevel(): Promise; profilingLevel(callback: MongoCallback): void @@ -375,7 +374,7 @@ declare module "mongodb" { validateCollection(collectionNme: string, options?: Object): Promise; validateCollection(collectionNme: string, options: Object, callback: MongoCallback): 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; indexInformation(options: { full: boolean }, callback: MongoCallback): 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): void insertMany(docs: Object[], options?: CollectionInsertManyOptions): Promise; @@ -692,7 +691,7 @@ declare module "mongodb" { updateOne(filter: Object, update: Object, options?: ReplaceOneOptions): Promise; updateOne(filter: Object, update: Object, options: ReplaceOneOptions, callback: MongoCallback): 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; 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 diff --git a/mssql/mssql.d.ts b/mssql/mssql.d.ts index 2b3db48075e2ed..0d7c1d4aae2bfd 100644 --- a/mssql/mssql.d.ts +++ b/mssql/mssql.d.ts @@ -4,7 +4,6 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped /// -/// declare module "mssql" { import events = require('events'); diff --git a/ngbootbox/ngbootbox.d.ts b/ngbootbox/ngbootbox.d.ts index e99e47979ba852..c81bee358ccee4 100644 --- a/ngbootbox/ngbootbox.d.ts +++ b/ngbootbox/ngbootbox.d.ts @@ -3,7 +3,6 @@ // Definitions by: Sam Saint-Pettersen // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// /// interface NgBootboxDialog { diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 77fb737ab48d28..84c9e4c7cfac4b 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -13,9 +13,9 @@ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.3.0.tgz" }, "bluebird": { - "version": "3.1.5", + "version": "3.2.2", "from": "bluebird@>=3.1.2 <4.0.0", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.1.5.tgz" + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.2.2.tgz" }, "brace-expansion": { "version": "1.1.2", @@ -38,8 +38,8 @@ "resolved": "https://registry.npmjs.org/definition-header/-/definition-header-0.3.0.tgz" }, "definition-tester": { - "version": "0.4.0", - "from": "definition-tester@0.4.0" + "version": "0.5.0", + "from": "definition-tester@0.5.0" }, "findup-sync": { "version": "0.3.0", @@ -89,9 +89,9 @@ "resolved": "https://registry.npmjs.org/isemail/-/isemail-2.1.0.tgz" }, "joi": { - "version": "7.2.2", + "version": "7.2.3", "from": "joi@>=7.2.2 <8.0.0", - "resolved": "https://registry.npmjs.org/joi/-/joi-7.2.2.tgz" + "resolved": "https://registry.npmjs.org/joi/-/joi-7.2.3.tgz" }, "joi-assert": { "version": "0.0.3", @@ -136,9 +136,9 @@ "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz" }, "moment": { - "version": "2.11.1", + "version": "2.11.2", "from": "moment@>=2.0.0 <3.0.0", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.11.1.tgz" + "resolved": "https://registry.npmjs.org/moment/-/moment-2.11.2.tgz" }, "once": { "version": "1.3.3", diff --git a/openpgp/openpgp.d.ts b/openpgp/openpgp.d.ts index 309aea153e8110..935fe9ec39f33a 100644 --- a/openpgp/openpgp.d.ts +++ b/openpgp/openpgp.d.ts @@ -3,8 +3,6 @@ // Definitions by: Guillaume Lacasa // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// - declare module openpgp { interface KeyPair { diff --git a/package.json b/package.json index fc13280e270bb3..40a1b3e8a3e512 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "dependencies": { }, "devDependencies": { - "definition-tester": "0.4.0", + "definition-tester": "0.5.0", "typescript": "1.7.5" } } diff --git a/promise/promise-tests.ts.tscparams b/promise/promise-tests.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/promise/promise-tests.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/promise/promise.d.ts.tscparams b/promise/promise.d.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/promise/promise.d.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/promises-a-plus/promises-a-plus-tests.ts b/promises-a-plus/promises-a-plus-tests.ts index 0d7f5261afc0db..2887700d9330ab 100644 --- a/promises-a-plus/promises-a-plus-tests.ts +++ b/promises-a-plus/promises-a-plus-tests.ts @@ -1,6 +1,5 @@ /// /// -/// /// /// @@ -46,8 +45,8 @@ function testCompatibleWithRxJS() { function testCompatibleWithES6Promises() { // define ES6 thenables - var es6ThenNum: Thenable; - var es6ThenStr: Thenable; + var es6ThenNum: PromiseLike; + var es6ThenStr: PromiseLike; // from ES6 to spec thenNum = es6ThenNum; diff --git a/pure-render-decorator/pure-render-decorator-tests.ts.tscparams b/pure-render-decorator/pure-render-decorator-tests.ts.tscparams deleted file mode 100644 index 105ac9ef6ecefe..00000000000000 --- a/pure-render-decorator/pure-render-decorator-tests.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ ---target es5 --noImplicitAny --experimentalDecorators --module commonjs diff --git a/react-datagrid/react-datagrid-tests.tsx b/react-datagrid/react-datagrid-tests.tsx index c0ca90a1a9df2a..ec8459c625a40f 100644 --- a/react-datagrid/react-datagrid-tests.tsx +++ b/react-datagrid/react-datagrid-tests.tsx @@ -1,4 +1,3 @@ -/// /// /// diff --git a/react-datagrid/react-datagrid.d.ts b/react-datagrid/react-datagrid.d.ts index 1dc5d83616170e..aca7d355e1290b 100644 --- a/react-datagrid/react-datagrid.d.ts +++ b/react-datagrid/react-datagrid.d.ts @@ -4,7 +4,6 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped /// -/// declare module "react-datagrid" { import DataGrid = ReactDataGrid.DataGrid; diff --git a/react-intl/react-intl-tests-1.2.0.tsx.tscparams b/react-intl/react-intl-tests-1.2.0.tsx.tscparams deleted file mode 100644 index 7cf88bb1b2dbd0..00000000000000 --- a/react-intl/react-intl-tests-1.2.0.tsx.tscparams +++ /dev/null @@ -1 +0,0 @@ ---target es5 --noImplicitAny --experimentalDecorators --jsx react --module commonjs diff --git a/react-mixin/react-mixin-tests.tsx.tscparams b/react-mixin/react-mixin-tests.tsx.tscparams deleted file mode 100644 index c90abf04fc88b6..00000000000000 --- a/react-mixin/react-mixin-tests.tsx.tscparams +++ /dev/null @@ -1 +0,0 @@ ---target es5 --noImplicitAny --experimentalDecorators --jsx react diff --git a/react-props-decorators/react-props-decorators-tests.ts.tscparams b/react-props-decorators/react-props-decorators-tests.ts.tscparams deleted file mode 100644 index 3f0863ac67cac7..00000000000000 --- a/react-props-decorators/react-props-decorators-tests.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ ---experimentalDecorators --noImplicitAny --target ES5 diff --git a/react-redux/react-redux-tests.tsx.tscparams b/react-redux/react-redux-tests.tsx.tscparams deleted file mode 100644 index c90abf04fc88b6..00000000000000 --- a/react-redux/react-redux-tests.tsx.tscparams +++ /dev/null @@ -1 +0,0 @@ ---target es5 --noImplicitAny --experimentalDecorators --jsx react diff --git a/redux-form/redux-form-tests.tsx.tscparams b/redux-form/redux-form-tests.tsx.tscparams deleted file mode 100644 index 14fce22a5cc13d..00000000000000 --- a/redux-form/redux-form-tests.tsx.tscparams +++ /dev/null @@ -1 +0,0 @@ ---target ES6 diff --git a/redux-form/redux-form.d.ts.tscparams b/redux-form/redux-form.d.ts.tscparams deleted file mode 100644 index 14fce22a5cc13d..00000000000000 --- a/redux-form/redux-form.d.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ ---target ES6 diff --git a/redux-saga/redux-saga.d.ts.tscparams b/redux-saga/redux-saga.d.ts.tscparams deleted file mode 100644 index 14fce22a5cc13d..00000000000000 --- a/redux-saga/redux-saga.d.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ ---target ES6 diff --git a/redux-thunk/redux-thunk-tests.ts b/redux-thunk/redux-thunk-tests.ts index df46fb92e09f0a..f5ed3ef6d4384c 100644 --- a/redux-thunk/redux-thunk-tests.ts +++ b/redux-thunk/redux-thunk-tests.ts @@ -1,12 +1,10 @@ /// /// -/// /// 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 { ); }; } - diff --git a/restful.js/restful.js.d.ts b/restful.js/restful.js.d.ts index 2d62f113cc1186..a52dfb5023a513 100644 --- a/restful.js/restful.js.d.ts +++ b/restful.js/restful.js.d.ts @@ -3,8 +3,6 @@ // Definitions by: Qubo // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// - 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; } - diff --git a/riot-api-nodejs/riot-api-nodejs.d.ts b/riot-api-nodejs/riot-api-nodejs.d.ts index 40e4fba13f596c..cb4c88766a865f 100644 --- a/riot-api-nodejs/riot-api-nodejs.d.ts +++ b/riot-api-nodejs/riot-api-nodejs.d.ts @@ -4,7 +4,6 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -/// /// declare module "riot-api-nodejs"{ diff --git a/scalike/scalike.d.ts b/scalike/scalike.d.ts index 1c14a1dc36716e..448755e39bfef6 100644 --- a/scalike/scalike.d.ts +++ b/scalike/scalike.d.ts @@ -3,8 +3,6 @@ // Definitions by: ryoppy // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// - declare module scalike { export interface Either { diff --git a/sequelize/sequelize.d.ts b/sequelize/sequelize.d.ts index ae1927ae2db1ef..8f803a8b64bb19 100644 --- a/sequelize/sequelize.d.ts +++ b/sequelize/sequelize.d.ts @@ -5,7 +5,7 @@ // Based on original work by: samuelneff -/// +/// /// /// diff --git a/should-promised/should-promised-tests.ts b/should-promised/should-promised-tests.ts index 50ea0b59a067e5..0f4abfd3c99c22 100644 --- a/should-promised/should-promised-tests.ts +++ b/should-promised/should-promised-tests.ts @@ -1,6 +1,5 @@ /// /// -/// var promise: Promise = new Promise(function (resolve, reject) {}); diff --git a/spotify-web-api-js/spotify-web-api-js.d.ts b/spotify-web-api-js/spotify-web-api-js.d.ts index bb980b26f5ac19..91671efc608ce3 100644 --- a/spotify-web-api-js/spotify-web-api-js.d.ts +++ b/spotify-web-api-js/spotify-web-api-js.d.ts @@ -4,7 +4,6 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -/// /** * 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) : Promise; + getMe(options?: Object, callback?: ResultsCallback) : Promise; /** * 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) : Promise; - + /** * 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:) * @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:) * @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:) * @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) : Promise; - + /** * 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:) * @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) : Promise; - + /** * 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:) * @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::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:) * @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:) * @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:) * @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::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:) * @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:) * @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) : Promise - + /** * 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:) * @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::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:) * @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:) * @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) : Promise; - + /** * 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:) * @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) : Promise; - + /** * 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:) * @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) : Promise; - + /** * 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::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:) * @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::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:) * @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) : Promise; - + /** * 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:) * @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) : Promise; - + /** * 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::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:) * @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) : Promise; - + /** * 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::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:) * @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 Playlist’s 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::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:) * @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::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:) * @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::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:) * @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:) * @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:) * @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) : Promise; - + /** * 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:) * @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:) * @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:) * @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:) * @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:) * @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:) * @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) : Promise; - + /** * 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:) * @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) : Promise; - + /** * 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) : Promise; - + /** * 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) : Promise; - + /** * 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) : Promise; - + /** * 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) : Promise; - + /** * 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) : Promise; - + /** * 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+ */ diff --git a/stacktrace-js/stacktrace-js.d.ts b/stacktrace-js/stacktrace-js.d.ts index d20645ae98747f..574e780e33bf00 100644 --- a/stacktrace-js/stacktrace-js.d.ts +++ b/stacktrace-js/stacktrace-js.d.ts @@ -3,8 +3,6 @@ // Definitions by: Exceptionless // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// - 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. * diff --git a/stampit/stampit.d.ts b/stampit/stampit.d.ts index 5b03237f2dbf43..b15eedbe798493 100644 --- a/stampit/stampit.d.ts +++ b/stampit/stampit.d.ts @@ -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; } /** @@ -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; /** * 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; /** * An object map containing the fixed prototypes. diff --git a/tween.js/tween.js.d.ts.tscparams b/tween.js/tween.js.d.ts.tscparams deleted file mode 100644 index d3f5a12faa9975..00000000000000 --- a/tween.js/tween.js.d.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ - diff --git a/undertaker/undertaker-tests.ts b/undertaker/undertaker-tests.ts index b40e19af10a5ad..13e4e766d76763 100644 --- a/undertaker/undertaker-tests.ts +++ b/undertaker/undertaker-tests.ts @@ -1,11 +1,9 @@ /// /// -/// 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(); })); - diff --git a/webmidi/webmidi-tests.ts b/webmidi/webmidi-tests.ts index a2878afd923196..8f6b0531af413e 100644 --- a/webmidi/webmidi-tests.ts +++ b/webmidi/webmidi-tests.ts @@ -1,5 +1,4 @@ /// -/// if (navigator.requestMIDIAccess !== undefined) { navigator.requestMIDIAccess().then(onSuccessCallback, onErrorCallback); diff --git a/webmidi/webmidi.d.ts b/webmidi/webmidi.d.ts index e5a614695e8264..1dc9cd532d5b13 100644 --- a/webmidi/webmidi.d.ts +++ b/webmidi/webmidi.d.ts @@ -3,8 +3,6 @@ // Definitions by: Toshiya Nakakura // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// - 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; } } - diff --git a/webrtc/MediaStream.d.ts b/webrtc/MediaStream.d.ts index c4a836d61e8fe7..06fc9f3b9f7476 100644 --- a/webrtc/MediaStream.d.ts +++ b/webrtc/MediaStream.d.ts @@ -6,8 +6,6 @@ // Taken from http://dev.w3.org/2011/webrtc/editor/getusermedia.html // version: W3C Editor's Draft 29 June 2015 -/// - interface ConstrainBooleanParameters { exact?: boolean; ideal?: boolean; diff --git a/webtorrent/webtorrent-tests.ts.tscparams b/webtorrent/webtorrent-tests.ts.tscparams deleted file mode 100644 index e4bcf140bd539c..00000000000000 --- a/webtorrent/webtorrent-tests.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ ---module commonjs diff --git a/webvr-api/webvr-api.d.ts b/webvr-api/webvr-api.d.ts index 16918cf3034046..f055cf8c5c00eb 100644 --- a/webvr-api/webvr-api.d.ts +++ b/webvr-api/webvr-api.d.ts @@ -4,7 +4,6 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped /// -/// declare type VREye = string; @@ -172,4 +171,3 @@ interface Navigator { */ getVRDevices(): Promise>; } - diff --git a/whatwg-fetch/whatwg-fetch-tests.ts b/whatwg-fetch/whatwg-fetch-tests.ts index 75fead12dffefa..32e5b73a6d6de3 100644 --- a/whatwg-fetch/whatwg-fetch-tests.ts +++ b/whatwg-fetch/whatwg-fetch-tests.ts @@ -1,5 +1,4 @@ /// -/// function test_fetchUrlWithOptions() { var headers = new Headers(); diff --git a/whatwg-fetch/whatwg-fetch.d.ts b/whatwg-fetch/whatwg-fetch.d.ts index a1d82c55f813ab..64dd90484cf59d 100644 --- a/whatwg-fetch/whatwg-fetch.d.ts +++ b/whatwg-fetch/whatwg-fetch.d.ts @@ -3,8 +3,6 @@ // Definitions by: Ryan Graham // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// - declare class Request extends Body { constructor(input: string|Request, init?:RequestInit); method: string; diff --git a/winjs/winjs.d.ts.tscparams b/winjs/winjs.d.ts.tscparams new file mode 100644 index 00000000000000..1f3d85fb3bafd2 --- /dev/null +++ b/winjs/winjs.d.ts.tscparams @@ -0,0 +1 @@ +--target es5 --noImplicitAny diff --git a/wu/wu.d.ts.tscparams b/wu/wu.d.ts.tscparams deleted file mode 100644 index 14fce22a5cc13d..00000000000000 --- a/wu/wu.d.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ ---target ES6 diff --git a/zone.js/zone.js.d.ts b/zone.js/zone.js.d.ts index a34e1f8f532b91..a868cb39971e01 100644 --- a/zone.js/zone.js.d.ts +++ b/zone.js/zone.js.d.ts @@ -3,8 +3,6 @@ // Definitions by: angular team // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// - declare class Zone { constructor(parentZone: Zone, data: any); @@ -18,4 +16,3 @@ declare class Zone { static longStackTraceZone: {[key: string]: any}; } -