From 7238786d4dc6ff44dc3b4d6c5dda414578a833a9 Mon Sep 17 00:00:00 2001 From: Dani H Date: Mon, 2 Mar 2015 23:04:29 +0100 Subject: [PATCH 01/71] Made all of the GraphNode values optional When passing data to a d3 structure the data can be very flexible. The current interface of the GraphNode requires many data attributes to be present, most of which aren't required to draw the visualization. In fact, d3 calculates some of them itself, so passing them to the GraphNode would be redundant. In this example http://bl.ocks.org/mbostock/4063269#flare.json, Mike Bostock uses the attribute className to identify name and packageName to identify color in the GraphNode. This means that he doesn't only ignore all of the attributes DefintelyTyped provides, but comes up with his own attributes. This means that the data passed in could in fact be a hashmap/js object type with arbitrary attributes. It's only when the data is used with d3 methods to identify what attribute represents size/color etc... that the type becomes relevant. So either the GraphNode should be less restrictive (or in fact an arbitrary hashmap) or I've misunderstood some core concept. You don't have to necessarily merge this pull request, if I'm right some parts will have to be rewritten (GraphNodes seem to be used everywhere), but hopefully it might spark some discussion. --- d3/d3.d.ts | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/d3/d3.d.ts b/d3/d3.d.ts index 6cc372f7f..d66407055 100644 --- a/d3/d3.d.ts +++ b/d3/d3.d.ts @@ -1236,24 +1236,24 @@ declare module D3 { } export interface GraphNode { - id: number; - index: number; - name: string; - px: number; - py: number; - size: number; - weight: number; - x: number; - y: number; - subindex: number; - startAngle: number; - endAngle: number; - value: number; - fixed: boolean; - children: GraphNode[]; - _children: GraphNode[]; - parent: GraphNode; - depth: number; + id?: number; + index?: number; + name?: string; + px?: number; + py?: number; + size?: number; + weight?: number; + x?: number; + y?: number; + subindex?: number; + startAngle?: number; + endAngle?: number; + value?: number; + fixed?: boolean; + children?: GraphNode[]; + _children?: GraphNode[]; + parent?: GraphNode; + depth?: number; } export interface GraphLink { From f8276d5a600b7f0eea8abfaa863c1ea7ae4b7405 Mon Sep 17 00:00:00 2001 From: "Michael J. Bennett" Date: Sun, 15 Mar 2015 21:31:24 -0400 Subject: [PATCH 02/71] Definitions for node module mariasql added https://github.com/mscdex/node-mariasql On branch mariasql new file: mariasql/mariasql-tests.ts new file: mariasql/mariasql.d.ts --- mariasql/mariasql-tests.ts | 198 +++++++++++++++++++++++++++++++++++++ mariasql/mariasql.d.ts | 97 ++++++++++++++++++ 2 files changed, 295 insertions(+) create mode 100644 mariasql/mariasql-tests.ts create mode 100644 mariasql/mariasql.d.ts diff --git a/mariasql/mariasql-tests.ts b/mariasql/mariasql-tests.ts new file mode 100644 index 000000000..554d3d4a7 --- /dev/null +++ b/mariasql/mariasql-tests.ts @@ -0,0 +1,198 @@ +// These are the examples from the node-mariasql README transposed to TypeScript +// https://github.com/mscdex/node-mariasql + +/// + +// Example 1 - SHOW DATABASES +import util = require('util'); +import Client = require('mariasql'); + +var c:Client = new Client(), + inspect = util.inspect; + +c.connect({ + host: '127.0.0.1', + user: 'foo', + password: 'bar' +}); + +c.on('connect', function () { + console.log('Client connected'); +}) + .on('error', function (err) { + console.log('Client error: ' + err); + }) + .on('close', function (hadError) { + console.log('Client closed'); + }); + +c.query('SHOW DATABASES') + .on('result', function (res) { + res.on('row', function (row) { + console.log('Result row: ' + inspect(row)); + }) + .on('error', function (err) { + console.log('Result error: ' + inspect(err)); + }) + .on('end', function (info) { + console.log('Result finished successfully'); + }); + }) + .on('end', function () { + console.log('Done with all results'); + }); + +c.end(); + + +// Example 2 - Query Placeholders +var c = new Client(); + +c.connect({ + host: '127.0.0.1', + user: 'foo', + password: 'bar', + db: 'mydb' +}); + +c.on('connect', function () { + console.log('Client connected'); +}) + .on('error', function (err) { + console.log('Client error: ' + err); + }) + .on('close', function (hadError) { + console.log('Client closed'); + }); + +c.query('SELECT * FROM users WHERE id = :id AND name = :name', + {id: 1337, name: 'Frylock'}) + .on('result', function (res) { + res.on('row', function (row) { + console.log('Result row: ' + inspect(row)); + }) + .on('error', function (err) { + console.log('Result error: ' + inspect(err)); + }) + .on('end', function (info) { + console.log('Result finished successfully'); + }); + }) + .on('end', function () { + console.log('Done with all results'); + }); + +c.query('SELECT * FROM users WHERE id = ? AND name = ?', + [1337, 'Frylock']) + .on('result', function (res) { + res.on('row', function (row) { + console.log('Result row: ' + inspect(row)); + }) + .on('error', function (err) { + console.log('Result error: ' + inspect(err)); + }) + .on('end', function (info) { + console.log('Result finished successfully'); + }); + }) + .on('end', function () { + console.log('Done with all results'); + }); + +c.end(); + + +// Example 3 prepared query +c = new Client(); + +c.connect({ + host: '127.0.0.1', + user: 'foo', + password: 'bar', + db: 'mydb' +}); + +c.on('connect', function () { + console.log('Client connected'); +}) + .on('error', function (err) { + console.log('Client error: ' + err); + }) + .on('close', function (hadError) { + console.log('Client closed'); + }); + +var pq = c.prepare('SELECT * FROM users WHERE id = :id AND name = :name'); + +c.query(pq({id: 1337, name: 'Frylock'})) + .on('result', function (res) { + res.on('row', function (row) { + console.log('Result row: ' + inspect(row)); + }) + .on('error', function (err) { + console.log('Result error: ' + inspect(err)); + }) + .on('end', function (info) { + console.log('Result finished successfully'); + }); + }) + .on('end', function () { + console.log('Done with all results'); + }); + +c.end(); + + +// Example 4 - Abort Query +c = new Client() +var qcnt:number = 0; + +c.connect({ + host: '127.0.0.1', + user: 'foo', + password: 'bar', + multiStatements: true +}); + +c.on('connect', function () { + console.log('Client connected'); +}) + .on('error', function (err) { + console.log('Client error: ' + err); + }) + .on('close', function (hadError) { + console.log('Client closed'); + }); + +c.query('SELECT "first query"; SELECT "second query"; SELECT "third query"', true) + .on('result', function (res) { + if (++qcnt === 2) + res.abort(); + res.on('row', function (row) { + console.log('Query #' + (qcnt) + ' row: ' + inspect(row)); + }) + .on('error', function (err) { + console.log('Query #' + (qcnt) + ' error: ' + inspect(err)); + }) + .on('abort', function () { + console.log('Query #' + (qcnt) + ' was aborted'); + }) + .on('end', function (info) { + console.log('Query #' + (qcnt) + ' finished successfully'); + }); + }) + .on('end', function () { + console.log('Done with all queries'); + }); + +c.end(); +/* output: + Client connected + Query #1 row: [ 'first query' ] + Query #1 finished successfully + Query #2 was aborted + Query #3 row: [ 'third query' ] + Query #3 finished successfully + Done with all queries + Client closed + */ \ No newline at end of file diff --git a/mariasql/mariasql.d.ts b/mariasql/mariasql.d.ts new file mode 100644 index 000000000..2c375a173 --- /dev/null +++ b/mariasql/mariasql.d.ts @@ -0,0 +1,97 @@ +// Type definitions for mariasql v0.1.22 +// Project: https://github.com/mscdex/node-mariasql +// Definitions by: MichaelBennett +// Definitions: https://github.com/borisyankov/DefinitelyTyped + + +/** + */ +interface MariaCallBackError { + (error:Error):void +} + +interface MariaCallBackResult { + (result:MariaResult):void +} + +interface MariaCallBackRow { + (result:Array):void +} + +interface MariaCallBackBoolean { + (result:boolean):void +} + +interface MariaCallBackObject { + (result:Object):void +} + +interface MariaCallBackVoid { + ():void +} + +interface Dictionary { + [index: string]: any; +} + +interface MariaPreparedQuery { + (values:Dictionary):string; + (values:Array):string; +} + +interface ClientConfig { + host: string; + user: string; + password: string; + db?: string; + port?: number; + unixSocket?: string; + keepQueries?: boolean; + multiStatements?: boolean; + connTimeout?: number; + pingInterval?: number; + secureAuth?: boolean; + compress?: boolean; + ssl?:any; + local_infile?: boolean; + read_default_group?: string; + charset?: string; +} + +declare class MariaResult { + on(signal:string, cb:MariaCallBackObject):MariaResult; // signal 'end' + on(signal:string, cb:MariaCallBackError):MariaResult; // signal 'error' + on(signal:string, cb:MariaCallBackRow):MariaResult; // signal 'row' + on(signal:string, cb:MariaCallBackVoid):MariaResult; // signal 'abort' + abort():void; +} + +declare class MariaQuery { + on(signal:string, cb:MariaCallBackResult):MariaQuery; // signal 'result' + on(signal:string, cb:MariaCallBackVoid):MariaQuery; // signal 'end' + on(signal:string, cb:MariaCallBackVoid):MariaQuery; // signal 'abort' + on(signal:string, cb:MariaCallBackError):MariaQuery; // signal 'error' + abort():void; +} + +declare class MariaClient { + connect(config:ClientConfig):void; + end():void; + destroy():void; + escape(query:string):string; + query(q:string, placeHolders?:Dictionary, useArray?:boolean):MariaQuery; + query(q:string, placeHolders?:Array, useArray?:boolean):MariaQuery; + query(q:string, useArray?:boolean):MariaQuery; + prepare(query:string): MariaPreparedQuery; + isMariaDB():boolean; + on(signal:string, cb:MariaCallBackError): MariaClient; // signal 'error' + on(signal:string, cb:MariaCallBackObject): MariaClient; // signal 'close' + on(signal:string, cb:MariaCallBackVoid): MariaClient; // signal 'connect' + connected: boolean; + threadId: string; +} + +declare module 'mariasql' { + export = MariaClient; +} + From 64628c14ec4d063e39e40da4c7f10065675cf84e Mon Sep 17 00:00:00 2001 From: ryan-codingintrigue Date: Tue, 17 Mar 2015 10:19:14 +0000 Subject: [PATCH 03/71] Add support for GitHub's Fetch API polyfill --- fetch/fetch-tests.ts | 24 ++++++++++++ fetch/fetch.d.ts | 89 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 113 insertions(+) create mode 100644 fetch/fetch-tests.ts create mode 100644 fetch/fetch.d.ts diff --git a/fetch/fetch-tests.ts b/fetch/fetch-tests.ts new file mode 100644 index 000000000..3d9f71e76 --- /dev/null +++ b/fetch/fetch-tests.ts @@ -0,0 +1,24 @@ +/// +/// + +function test_fetchUrlWithOptions() { + var headers = new Headers(); + headers.append("Content-Type", "application/json"); + var requestOptions: RequestInit = { + method: "POST", + headers: headers + }; + handlePromise(window.fetch("http://www.andlabs.net/html5/uCOR.php", requestOptions)); +} + +function test_fetchUrl() { + handlePromise(window.fetch("http://www.andlabs.net/html5/uCOR.php")); +} + +function handlePromise(promise: Promise) { + promise.then((response) => { + return response.text(); + }).then((text) => { + console.log(text); + }); +} \ No newline at end of file diff --git a/fetch/fetch.d.ts b/fetch/fetch.d.ts new file mode 100644 index 000000000..5d39d2a56 --- /dev/null +++ b/fetch/fetch.d.ts @@ -0,0 +1,89 @@ +// Type definitions for fetch API +// Project: https://github.com/github/fetch +// Definitions by: Ryan Graham +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// +/// + +declare class Request { + constructor(input: string|Request, init?:RequestInit); + method: string; + url: string; + headers: Headers; + context: RequestContext; + referrer: string; + mode: RequestMode; + credentials: RequestCredentials; + cache: RequestCache; +} + +interface RequestInit { + method?: string; + headers?: HeaderInit; + body?: BodyInit; + mode?: RequestMode; + credentials?: RequestCredentials; + cache?: RequestCache; +} + +declare enum RequestContext { + "audio", "beacon", "cspreport", "download", "embed", "eventsource", "favicon", "fetch", + "font", "form", "frame", "hyperlink", "iframe", "image", "imageset", "import", + "internal", "location", "manifest", "object", "ping", "plugin", "prefetch", "script", + "serviceworker", "sharedworker", "subresource", "style", "track", "video", "worker", + "xmlhttprequest", "xslt" +} +declare enum RequestMode { "same-origin", "no-cors", "cors" } +declare enum RequestCredentials { "omit", "same-origin", "include" } +declare enum RequestCache { "default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached" } + +declare class Headers implements TypeScript.Iterator { + append(name: string, value: string): void; + delete(name: string):void; + get(name: string): string; + getAll(name: string): Array; + has(name: string): boolean; + set(name: string, value: string): void; + + moveNext(): boolean; + + current(): string; +} + +declare class Body { + bodyUsed: boolean; + arrayBuffer(): Promise; + blob(): Promise; + formData(): Promise; + json(): Promise; + text(): Promise; +} +declare class Response extends Body { + constructor(body?: BodyInit, init?: ResponseInit); + error(): Response; + redirect(url: string, status: number): Response; + type: ResponseType; + url: string; + status: number; + ok: boolean; + statusText: string; + headers: Headers; + clone(): Response; +} + +declare enum ResponseType { "basic", "cors", "default", "error", "opaque" } + +declare class ResponseInit { + status: number; + statusText: string; + headers: HeaderInit; +} + +declare type HeaderInit = Headers|Array; +declare type BodyInit = Blob|FormData|string; +declare type RequestInfo = Request|string; + +interface Window { + fetch(url: string, init?: RequestInit): Promise; +} \ No newline at end of file From 7a3cda0271384cbff8ce7f3d804c865c72622037 Mon Sep 17 00:00:00 2001 From: ryan-codingintrigue Date: Tue, 17 Mar 2015 18:38:47 +0000 Subject: [PATCH 04/71] Fixed casing on typescriptServices import --- fetch/fetch.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch/fetch.d.ts b/fetch/fetch.d.ts index 5d39d2a56..18340110a 100644 --- a/fetch/fetch.d.ts +++ b/fetch/fetch.d.ts @@ -3,7 +3,7 @@ // Definitions by: Ryan Graham // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// +/// /// declare class Request { From 3fe4c86588e4e396f5a0b1976634f9adf66007b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Castre?= Date: Wed, 18 Mar 2015 14:23:56 +0100 Subject: [PATCH 05/71] Add missing optional index parameter --- d3/d3.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d3/d3.d.ts b/d3/d3.d.ts index be4032921..099b6e72b 100644 --- a/d3/d3.d.ts +++ b/d3/d3.d.ts @@ -1817,7 +1817,7 @@ declare module D3 { (): number; (value: number): Axis; } - tickFormat(formatter: (value: any) => string): Axis; + tickFormat(formatter: (value: any, index?: number) => string): Axis; nice(count?: number): Axis; } From 20a7a9419ac98fd782e2ad6abb763f6ac6ba0aa9 Mon Sep 17 00:00:00 2001 From: ColsaCorp Date: Wed, 18 Mar 2015 22:56:48 -0500 Subject: [PATCH 06/71] Create mssql.d.ts Initial creation of MSSQL database connector for Node.js defintion --- mssql/mssql.d.ts | 96 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 mssql/mssql.d.ts diff --git a/mssql/mssql.d.ts b/mssql/mssql.d.ts new file mode 100644 index 000000000..dcdd0f700 --- /dev/null +++ b/mssql/mssql.d.ts @@ -0,0 +1,96 @@ +// Type definitions for mssql +// Project: https://www.npmjs.com/package/mssql +// Definitions by: COLSA Corporation +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module "mssql" { + + export var DateTime: any; + export var NVarChar: any; + export var Int: any; + export var Bit: any; + export var VarBinary: any; + export var TVP: any; + + export interface options { + encrypt: boolean; + } + + export interface pool { + min: number; + max: number; + idleTimeoutMillis: number; + } + + export interface config { + driver?: string; + user?: string; + password?: string; + server: string; + port?: number; + domain?: string; + database: string; + connectionTimeout?: number; + requestTimeout?: number; + stream?: boolean; + options?: options; + pool?: pool; + + } + + export class Connection { + + public constructor(config: config, callback?: (err?: any) => void); + + public connect(callback?: (err?: any) => void); + + public close(); + } + + class columns { + public add(name: string, type: any, options: any); + } + + class rows { + public add(any); + } + + export class Table { + public create: boolean; + public columns: columns; + public rows: rows; + public constructor(tableName: string); + + } + + export class Request { + public constructor(connection?: Connection); + public execute(procedure: string, callback?: (err?: any, recordsets?: any, returnValue?: any) => void); + public input(name: string, value: any); + public input(name: string, type: any, value: any); + public output(name: string, type: any, value?: any); + public pipe(stream: any); + public query(command: string, callback?: (err?: any, recordset?: any) => void); + public batch(batch: string, callback?: (err?: any, recordset?: any) => void); + public bulk(table: Table, callback?: (err?: any, rowCount?: any) => void); + public cancel(); + public parameters: any; + } + + export class Transaction { + public constructor(connection?: Connection); + public begin(isolationLevel?: any, callback?: (err?: any) => void); + public begin(callback?: (err?: any) => void); + public commit(callback?: (err?: any) => void); + public rollback(callback?: (err?: any) => void); + } + + export class PreparedStatement { + public constructor(connection?: Connection); + public input(name: string, type: any); + public output(name: string, type: any); + public prepare(statement: string, callback?: (err?: any) => void); + public execute(values: any, callback?: (err?: any) => void); + public unprepare(callback?: (err?: any) => void); + } +} From d0087d3ab84b49c80cc4770117526774403b889c Mon Sep 17 00:00:00 2001 From: ColsaCorp Date: Wed, 18 Mar 2015 22:57:36 -0500 Subject: [PATCH 07/71] Create mssql-tests.ts Tests for MSSQL database connector for Node.js --- mssql/mssql-tests.ts | 70 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 mssql/mssql-tests.ts diff --git a/mssql/mssql-tests.ts b/mssql/mssql-tests.ts new file mode 100644 index 000000000..5a7e3e305 --- /dev/null +++ b/mssql/mssql-tests.ts @@ -0,0 +1,70 @@ +/// +/// + +import sql = require('mssql'); + +var config: sql.config = { + user: 'user', + password: 'password', + server: 'ip', + database: 'database', + connectionTimeout: 10000, + options: { + encrypt: true + } +} + +var connection: sql.Connection = new sql.Connection(config, function (err: any) { + if (err != null) { + console.warn("Issue with connecting to SQL Server!"); + } + else { + var requestQuery = new sql.Request(connection); + + var getArticlesQuery = "SELECT * FROM TABLE"; + + requestQuery.query(getArticlesQuery, function (err, recordSet) { + if (err) { + console.error('Error happened calling Query: ' + err.name + " " + err.message); + + } + // checking to see if the articles returned as at least one. + else if (recordSet.length > 0) { + } + }); + + var requestStoredProcedure = new sql.Request(connection); + var testId: number = 0; + var testString: string = 'test'; + + requestStoredProcedure.input('pId', testId); + requestStoredProcedure.input('pString', testString); + + + requestStoredProcedure.execute('StoredProcedureName', function (err, recordsets, returnValue) { + if (err != null) { + console.error('Error happened calling Query: ' + err.name + " " + err.message); + } + else { + console.info(returnValue); + } + }); + + var requestStoredProcedureWithOutput = new sql.Request(connection); + var testId: number = 0; + var testString: string = 'test'; + + requestStoredProcedure.input('pId', testId); + requestStoredProcedure.input('pString', testString); + requestStoredProcedure.output('output', sql.Int); + + requestStoredProcedure.execute('StoredProcedureName', function (err, recordsets, returnValue) { + if (err != null) { + console.error('Error happened calling Query: ' + err.name + " " + err.message); + } + else { + console.info(requestStoredProcedureWithOutput.parameters.output.value); + } + }); + } +}); From 1276cc4c1b6fee7ca3b11e960c5eccaff9f0d424 Mon Sep 17 00:00:00 2001 From: ColsaCorp Date: Wed, 18 Mar 2015 22:59:17 -0500 Subject: [PATCH 08/71] Create s3-uploader.d.ts Very simple definition of s3-uploader. --- s3-uploader.d.ts | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 s3-uploader.d.ts diff --git a/s3-uploader.d.ts b/s3-uploader.d.ts new file mode 100644 index 000000000..215cb7df6 --- /dev/null +++ b/s3-uploader.d.ts @@ -0,0 +1,39 @@ +// Type definitions for s3-uploader +// Project: https://www.npmjs.com/package/s3-uploader +// Definitions by: COLSA Corporation +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +//NOTE: Does require GM (https://github.com/aheckmann/gm) thus requires GraphicsMagick (http://www.graphicsmagick.org/) or ImageMagick (http://www.imagemagick.org/) + +declare module "s3-uploader" { + export = Upload; +} +interface S3UploaderVersion { + original?: boolean; + suffix?: string; + quality?: number; + maxWidth?: number; + maxHeight?: number; +} + +interface S3UploaderOptions { + awsAccessKeyId?: string; + awsSecretAccessKey?: string; + awsBucketRegion?: string; + awsBucketPath?: string; + awsBucketAcl?: string; + awsMaxRetries?: number; + awsHttpTimeout?: number; + resizeQuality?: number; + returnExif?: boolean; + tmpDir?: string; + workers?: number; + url?: string; + versions?: S3UploaderVersion; +} + +declare class Upload { + public constructor(awsBucketName: string, opts: S3UploaderOptions); + + public upload(src: string, opts?: S3UploaderOptions, cb?: (err, images, meta) => void); +} From 69f007ab58e73567b00a7062a57a404d1dac94f7 Mon Sep 17 00:00:00 2001 From: ColsaCorp Date: Wed, 18 Mar 2015 22:59:53 -0500 Subject: [PATCH 09/71] Create s3-uploader-tests.ts Tests for s3-uploader --- s3-uploader/s3-uploader-tests.ts | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 s3-uploader/s3-uploader-tests.ts diff --git a/s3-uploader/s3-uploader-tests.ts b/s3-uploader/s3-uploader-tests.ts new file mode 100644 index 000000000..6fa065866 --- /dev/null +++ b/s3-uploader/s3-uploader-tests.ts @@ -0,0 +1,44 @@ +/// +/// + +//NOTE: Does require GM (https://github.com/aheckmann/gm) thus requires GraphicsMagick (http://www.graphicsmagick.org/) or ImageMagick (http://www.imagemagick.org/) + +import Upload = require('s3-uploader'); + +var s3VersionOriginal: S3UploaderVersion = { + original: true +}; + +var s3VersionHeader: S3UploaderVersion = { + suffix: '-header', + quality: 100, + maxHeight: 300, + maxWidth: 600 +} + +var s3Config: S3UploaderOptions = { + awsAccessKeyId: 'awsKeyId', + awsSecretAccessKey: 'awsSecretAccessKey', + awsBucketPath: '', + awsBucketRegion: 'us-east-1' /*Whatever region s3 is located*/, + awsBucketAcl: 'public-read', + awsHttpTimeout: 60000, + versions: [s3VersionOriginal, s3VersionHeader] +} + +var client = new Upload('bucketName', s3Config); + +client.upload('/images/File.png', s3Config, function (err, images, meta) { + var returnVal: boolean = false; + if (err) { + console.log(err); + } + else { + if (images.length >= 2) { + var originalImageUrl = images[0].url; + var headerImageUrl = images[1].url; + + console.log('Original: ' + originalImageUrl + ' headerImageUrl: ' + headerImageUrl); + } + } +}); From 048feee7490233d846f6c6fb6f6d3ad235fae8fb Mon Sep 17 00:00:00 2001 From: ColsaCorp Date: Thu, 19 Mar 2015 08:37:02 -0500 Subject: [PATCH 10/71] Create s3-uploader --- s3-uploader/s3-uploader | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 s3-uploader/s3-uploader diff --git a/s3-uploader/s3-uploader b/s3-uploader/s3-uploader new file mode 100644 index 000000000..215cb7df6 --- /dev/null +++ b/s3-uploader/s3-uploader @@ -0,0 +1,39 @@ +// Type definitions for s3-uploader +// Project: https://www.npmjs.com/package/s3-uploader +// Definitions by: COLSA Corporation +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +//NOTE: Does require GM (https://github.com/aheckmann/gm) thus requires GraphicsMagick (http://www.graphicsmagick.org/) or ImageMagick (http://www.imagemagick.org/) + +declare module "s3-uploader" { + export = Upload; +} +interface S3UploaderVersion { + original?: boolean; + suffix?: string; + quality?: number; + maxWidth?: number; + maxHeight?: number; +} + +interface S3UploaderOptions { + awsAccessKeyId?: string; + awsSecretAccessKey?: string; + awsBucketRegion?: string; + awsBucketPath?: string; + awsBucketAcl?: string; + awsMaxRetries?: number; + awsHttpTimeout?: number; + resizeQuality?: number; + returnExif?: boolean; + tmpDir?: string; + workers?: number; + url?: string; + versions?: S3UploaderVersion; +} + +declare class Upload { + public constructor(awsBucketName: string, opts: S3UploaderOptions); + + public upload(src: string, opts?: S3UploaderOptions, cb?: (err, images, meta) => void); +} From 0df80e23991a9891239f4c7b6e6879cbc7241e91 Mon Sep 17 00:00:00 2001 From: ColsaCorp Date: Thu, 19 Mar 2015 08:37:59 -0500 Subject: [PATCH 11/71] Rename s3-uploader to s3-uploader.d.ts --- s3-uploader/{s3-uploader => s3-uploader.d.ts} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename s3-uploader/{s3-uploader => s3-uploader.d.ts} (100%) diff --git a/s3-uploader/s3-uploader b/s3-uploader/s3-uploader.d.ts similarity index 100% rename from s3-uploader/s3-uploader rename to s3-uploader/s3-uploader.d.ts From 8f8c018e24000f582570e8d61cdd0b26d9a670ec Mon Sep 17 00:00:00 2001 From: ColsaCorp Date: Thu, 19 Mar 2015 22:07:38 -0500 Subject: [PATCH 12/71] Delete s3-uploader.d.ts --- s3-uploader.d.ts | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 s3-uploader.d.ts diff --git a/s3-uploader.d.ts b/s3-uploader.d.ts deleted file mode 100644 index 215cb7df6..000000000 --- a/s3-uploader.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -// Type definitions for s3-uploader -// Project: https://www.npmjs.com/package/s3-uploader -// Definitions by: COLSA Corporation -// Definitions: https://github.com/borisyankov/DefinitelyTyped - -//NOTE: Does require GM (https://github.com/aheckmann/gm) thus requires GraphicsMagick (http://www.graphicsmagick.org/) or ImageMagick (http://www.imagemagick.org/) - -declare module "s3-uploader" { - export = Upload; -} -interface S3UploaderVersion { - original?: boolean; - suffix?: string; - quality?: number; - maxWidth?: number; - maxHeight?: number; -} - -interface S3UploaderOptions { - awsAccessKeyId?: string; - awsSecretAccessKey?: string; - awsBucketRegion?: string; - awsBucketPath?: string; - awsBucketAcl?: string; - awsMaxRetries?: number; - awsHttpTimeout?: number; - resizeQuality?: number; - returnExif?: boolean; - tmpDir?: string; - workers?: number; - url?: string; - versions?: S3UploaderVersion; -} - -declare class Upload { - public constructor(awsBucketName: string, opts: S3UploaderOptions); - - public upload(src: string, opts?: S3UploaderOptions, cb?: (err, images, meta) => void); -} From effae55ed2b63302299898daad807abaad54d162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Morch=C3=B3n=20Poveda?= Date: Fri, 20 Mar 2015 13:19:28 +0100 Subject: [PATCH 13/71] Knockout 3.3 - Components Added $component and $componentTemplateNodes binding context properties (see http://knockoutjs.com/documentation/binding-context.html). Added ComponentInfo.templateNodes. --- knockout/knockout.d.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/knockout/knockout.d.ts b/knockout/knockout.d.ts index db8ab16ab..eaae8bee1 100644 --- a/knockout/knockout.d.ts +++ b/knockout/knockout.d.ts @@ -121,6 +121,8 @@ interface KnockoutBindingContext { $rawData: any | KnockoutObservable; $index?: KnockoutObservable; $parentContext?: KnockoutBindingContext; + $component: any; + $componentTemplateNodes: Node[]; extend(properties: any): any; createChildContext(dataItemOrAccessor: any, dataItemAlias?: any, extendCallback?: Function): any; @@ -603,7 +605,8 @@ declare module KnockoutComponentTypes { } interface ComponentInfo { - element: any; + element: Node; + templateNodes: Node[]; } interface TemplateElement { @@ -641,4 +644,4 @@ declare var ko: KnockoutStatic; declare module "knockout" { export = ko; -} \ No newline at end of file +} From 8252b3e6a648e51c5184e4c7211971f325d8d4dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Morch=C3=B3n=20Poveda?= Date: Fri, 20 Mar 2015 13:24:34 +0100 Subject: [PATCH 14/71] Update KnockoutBindingHandler ``` init ``` & ``` update ``` with optional arguments. This makes sense if you want to call a binding from your code without passing all the parameters, when it is really optional. --- knockout/knockout.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/knockout/knockout.d.ts b/knockout/knockout.d.ts index db8ab16ab..26c282168 100644 --- a/knockout/knockout.d.ts +++ b/knockout/knockout.d.ts @@ -133,8 +133,8 @@ interface KnockoutAllBindingsAccessor { } interface KnockoutBindingHandler { - init?: (element: any, valueAccessor: () => any, allBindingsAccessor: KnockoutAllBindingsAccessor, viewModel: any, bindingContext: KnockoutBindingContext) => void | { controlsDescendantBindings: boolean; }; - update?: (element: any, valueAccessor: () => any, allBindingsAccessor: KnockoutAllBindingsAccessor, viewModel: any, bindingContext: KnockoutBindingContext) => void; + init?: (element: any, valueAccessor: () => any, allBindingsAccessor?: KnockoutAllBindingsAccessor, viewModel?: any, bindingContext?: KnockoutBindingContext) => void | { controlsDescendantBindings: boolean; }; + update?: (element: any, valueAccessor: () => any, allBindingsAccessor?: KnockoutAllBindingsAccessor, viewModel?: any, bindingContext?: KnockoutBindingContext) => void; options?: any; preprocess?: (value: string, name: string, addBindingCallback?: (name: string, value: string) => void) => string; } @@ -641,4 +641,4 @@ declare var ko: KnockoutStatic; declare module "knockout" { export = ko; -} \ No newline at end of file +} From 4acd5f8775c27137d54bf925c19c009c79c16472 Mon Sep 17 00:00:00 2001 From: Andrew Audibert Date: Fri, 20 Mar 2015 14:20:19 -0700 Subject: [PATCH 15/71] Add typings for dealing with modes in codemirror --- codemirror/codemirror.d.ts | 87 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/codemirror/codemirror.d.ts b/codemirror/codemirror.d.ts index a187d8ec1..65692cf1c 100644 --- a/codemirror/codemirror.d.ts +++ b/codemirror/codemirror.d.ts @@ -919,4 +919,91 @@ declare module CodeMirror { */ current(): string; } + + /** + * A Mode is, in the simplest case, a lexer (tokenizer) for your language — a function that takes a character stream as input, + * advances it past a token, and returns a style for that token. More advanced modes can also handle indentation for the language. + */ + interface Mode { + /** + * This function should read one token from the stream it is given as an argument, optionally update its state, + * and return a style string, or null for tokens that do not have to be styled. Multiple styles can be returned, separated by spaces. + */ + token(stream: StringStream, state: T): string; + + /** + * A function that produces a state object to be used at the start of a document. + */ + startState?: () => T; + /** + * For languages that have significant blank lines, you can define a blankLine(state) method on your mode that will get called + * whenever a blank line is passed over, so that it can update the parser state. + */ + blankLine?: (state: T) => void; + /** + * Given a state returns a safe copy of that state. + */ + copyState?: (state: T) => T; + + /** + * The indentation method should inspect the given state object, and optionally the textAfter string, which contains the text on + * the line that is being indented, and return an integer, the amount of spaces to indent. + */ + indent?: (state: T, textAfter: string) => number; + + /** The four below strings are used for working with the commenting addon. */ + /** + * String that starts a line comment. + */ + lineComment?: string; + /** + * String that starts a block comment. + */ + blockCommentStart?: string; + /** + * String that ends a block comment. + */ + blockCommentEnd?: string; + /** + * String to put at the start of continued lines in a block comment. + */ + blockCommentLead?: string; + + /** + * Trigger a reindent whenever one of the characters in the string is typed. + */ + electricChars?: string + /** + * Trigger a reindent whenever the regex matches the part of the line before the cursor. + */ + electricinput?: RegExp + } + + /** + * A function that, given a CodeMirror configuration object and an optional mode configuration object, returns a mode object. + */ + interface ModeFactory { + (config: CodeMirror.EditorConfiguration, modeOptions?: any): Mode + } + + /** + * id will be the id for the defined mode. Typically, you should use this second argument to defineMode as your module scope function + * (modes should not leak anything into the global scope!), i.e. write your whole mode inside this function. + */ + function defineMode(id: string, modefactory: ModeFactory): void; + + /** + * The first argument is a configuration object as passed to the mode constructor function, and the second argument + * is a mode specification as in the EditorConfiguration mode option. + */ + function getMode(config: CodeMirror.EditorConfiguration, mode: any): Mode; + + /** + * Utility function from the overlay.js addon that allows modes to be combined. The mode given as the base argument takes care of + * most of the normal mode functionality, but a second (typically simple) mode is used, which can override the style of text. + * Both modes get to parse all of the text, but when both assign a non-null style to a piece of code, the overlay wins, unless + * the combine argument was true and not overridden, or state.overlay.combineTokens was true, in which case the styles are combined. + */ + function overlayMode(base: Mode, overlay: Mode, combine?: boolean): Mode + } From 45979048d52f62f1f54195b33b36b01d759c20b1 Mon Sep 17 00:00:00 2001 From: ryan-codingintrigue Date: Sat, 21 Mar 2015 06:56:38 +0000 Subject: [PATCH 16/71] Renamed to whatwg-fetch --- fetch/fetch-tests.ts => whatwg-fetch/whatwg-fetch-tests.ts | 2 +- fetch/fetch.d.ts => whatwg-fetch/whatwg-fetch.d.ts | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename fetch/fetch-tests.ts => whatwg-fetch/whatwg-fetch-tests.ts (92%) rename fetch/fetch.d.ts => whatwg-fetch/whatwg-fetch.d.ts (100%) diff --git a/fetch/fetch-tests.ts b/whatwg-fetch/whatwg-fetch-tests.ts similarity index 92% rename from fetch/fetch-tests.ts rename to whatwg-fetch/whatwg-fetch-tests.ts index 3d9f71e76..cc3e6320a 100644 --- a/fetch/fetch-tests.ts +++ b/whatwg-fetch/whatwg-fetch-tests.ts @@ -1,4 +1,4 @@ -/// +/// /// function test_fetchUrlWithOptions() { diff --git a/fetch/fetch.d.ts b/whatwg-fetch/whatwg-fetch.d.ts similarity index 100% rename from fetch/fetch.d.ts rename to whatwg-fetch/whatwg-fetch.d.ts From 1644f6244bac3f8a30267c551c23b3241fdae24f Mon Sep 17 00:00:00 2001 From: Han Lin Yap Date: Sat, 21 Mar 2015 16:18:45 +0100 Subject: [PATCH 17/71] Update Ractive definition --- ractive/ractive-tests.ts | 8 ++- ractive/ractive.d.ts | 152 ++++++++++++++++++++++++++++----------- 2 files changed, 117 insertions(+), 43 deletions(-) diff --git a/ractive/ractive-tests.ts b/ractive/ractive-tests.ts index e206d2e26..df97190c9 100644 --- a/ractive/ractive-tests.ts +++ b/ractive/ractive-tests.ts @@ -8,13 +8,19 @@ function test_transition() { Ractive.transitions['myTransition'] = plugin; } +var adaptor: Ractive.AdaptorPlugin; + + Ractive.defaults = { template: '', - debug: true } var options: Ractive.NewOptions = { + adapt: ['myAdaptor', adaptor], template: '', + data: { + someThing: 'value', + } }; var r: Ractive.Ractive = new Ractive(options); diff --git a/ractive/ractive.d.ts b/ractive/ractive.d.ts index 97ceda993..4c2b1ef14 100644 --- a/ractive/ractive.d.ts +++ b/ractive/ractive.d.ts @@ -1,8 +1,10 @@ -// Type definitions for Ractive 0.7.0 edge f22ab8ad0a640591b1c263f57e21d1565cb26bf5 +// Type definitions for Ractive 0.7.1 // Project: http://ractivejs.org // Definitions by: Han Lin Yap // Definitions: https://github.com/codler/Ractive-TypeScript-Definition -// Version: 0.7.0-1+2015-02-05 +// Version: 0.7.1-1+2015-03-21 + +declare type _RactiveEvent = Event; declare module Ractive { export interface Node extends HTMLElement { @@ -64,13 +66,22 @@ declare module Ractive { export interface Event { context: any; - // TODO: unclear in documantation - index: Object; + component?: Ractive; + index: { [key: string]: number }; keypath: string; + // Since 0.6.0 + name: string; node: HTMLElement; - original: Event; + original: _RactiveEvent; } + // Since 0.7.1 + export interface NodeInfo { + ractive: Ractive; + keypath: string; + index: { [key: string]: number }; + } + // Return value in ractive.observe and ractive.on export interface Observe { cancel(): void; @@ -113,13 +124,17 @@ declare module Ractive { complate?: (t: number, value: number) => void; // TODO: void? } - export interface ObserveOptions { + export interface ObserveOptions extends ObserveOnceOptions { + // Default true + init?: boolean; + } + + // Since 0.7.1 + export interface ObserveOnceOptions { // Default Ractive context?: any; // Default false defer?: boolean; - // Default true - init?: boolean; } // Used in Ractive.parse options @@ -139,7 +154,7 @@ declare module Ractive { /* * @type List of mixed string or Adaptor */ - adapt?: any[]; + adapt?: (string | AdaptorPlugin)[]; adaptors?: AdaptorPlugins; @@ -147,22 +162,20 @@ declare module Ractive { * Default false * @type boolean or any type that option `el` accepts (HTMLElement or String or jQuery-like collection) */ - append?: any; + append?: boolean | any; complete?: Function; components?: ComponentPlugins; computed?: Object; // Since 0.5.5 - // TODO: unclear in documantation + // TODO: unclear in documantation, should this be in ExtendOptions instead? css?: string; /** - * TODO: Question - When is data Array or String? - * - * @type Object, Array, String or Function + * @type Object or Function */ // TODO: undocumented type Function - data?: any; + data?: Object | Function; decorators?: DecoratorPlugins; /** @@ -170,27 +183,53 @@ declare module Ractive { */ delimiters?: string[]; + // TODO: unsure easing?: string | Function; /** * @type HTMLElement or String or jQuery-like collection */ - el?: any; + el?: string | HTMLElement | any; // TODO: undocumented in Initialisation options page events?: EventPlugins; - - // TODO: In next release - // TODO: undocumented GH-429 - // interpolate - + // Since 0.5.5 // TODO: unclear in documantation interpolators?: { [key: string]: any; }; // Since 0.6.0 - onconstruct?: (options: NewOptions) => void; // TODO: void? - // Since 0.6.0 + // TODO: undocumented arguments onchange?: (options: NewOptions) => void; // TODO: void? + // Since 0.6.0 + // TODO: undocumented arguments + oncomplete?: () => void; // TODO: void? + // Since 0.6.0 + // TODO: undocumented arguments + onconfig?: () => void; // TODO: void? + // Since 0.6.0 + // TODO: undocumented arguments + onconstruct?: (options: NewOptions) => void; // TODO: void? + // Since 0.6.0 + // TODO: undocumented arguments + ondetach?: () => void; // TODO: void? + // Since 0.6.0 + // TODO: undocumented arguments + oninit?: () => void; // TODO: void? + // Since 0.6.0 + // TODO: undocumented arguments + oninsert?: () => void; // TODO: void? + // Since 0.6.0 + // TODO: undocumented arguments + onrender?: () => void; // TODO: void? + // Since 0.6.0 + // TODO: undocumented arguments + onunrender?: () => void; // TODO: void? + // Since 0.6.0 + // TODO: undocumented arguments + onupdate?: () => void; // TODO: void? + // Since 0.6.0 + // TODO: undocumented arguments + onteardown?: () => void; // TODO: void? /** * any is same type as template @@ -198,9 +237,8 @@ declare module Ractive { partials?: { [key: string]: any; }; /** * Default false - * @type Boolean or RactiveSanitizeOptions */ - sanitize?: any; + sanitize?: boolean | SanitizeOptions; /** * Default ['[[', ']]'] * @type [open, close] @@ -238,6 +276,9 @@ declare module Ractive { // Since 0.5.5 // Default true stripComments?: boolean; + // Since 0.7.1 + // Default true + transitionsEnabled?: boolean; // Default true twoway?: boolean; @@ -252,17 +293,16 @@ declare module Ractive { * @deprecated */ init?: (options: ExtendOptions) => void; - - // TODO: undocumented arguments - onconstruct?: (options: ExtendOptions) => void; // TODO: void? - onrender?: () => void; // TODO: void? + // Default false, inherit from Ractive.defaults isolated?: boolean; } // See ractive change log "All configuration options, except plugin registries, can be specified on Ractive.defaults and Component.defaults" export interface DefaultsOptions extends ExtendOptions { - // TODO: not correctly documented + /** + * @deprecated since 0.7.1 + */ // Default false debug?: boolean; } @@ -275,6 +315,9 @@ declare module Ractive { extend(options: ExtendOptions): Static; + // Since 0.7.1 + getNodeInfo(node: HTMLElement): NodeInfo; + parse(template: string, options?: ParseOptions): any; // TODO: undocumented @@ -283,6 +326,9 @@ declare module Ractive { // TODO: undocumented components: ComponentPlugins; + // Since 0.7.1 + DEBUG: boolean; + defaults: DefaultsOptions; // TODO: undocumented @@ -327,13 +373,19 @@ declare module Ractive { findComponent(name?: string): Ractive; + // Since 0.7.1 + findContainer(name: string): Ractive; // TODO: Ractive? + + // Since 0.7.1 + findParent(name: string): Ractive; // TODO: Ractive? + fire(eventName: string, ...args: any[]): void; // TODO: void? get(keypath: string): any; - get(): Object; // TODO: undocumented. or do it return function if ractive.data defined as function? + get(): Object; // TODO: Object? - // TODO: target - Node or String or jQuery (see Valid selectors) - // TODO: anchor - Node or String or jQuery + // target - Node or String or jQuery (see Valid selectors) + // anchor - Node or String or jQuery insert(target: any, anchor?: any): void; // TODO: void? merge(keypath: string, value: any[], options?: { compare: boolean | string | Function }): Promise; @@ -342,13 +394,15 @@ declare module Ractive { observe(keypath: string, callback: (newValue: any, oldValue: any, keypath: string) => void, options?: ObserveOptions): Observe; observe(map: Object, options?: ObserveOptions): Observe; - // TODO: check handler type - off(eventName?: string, handler?: () => void): Ractive; - + // Since 0.7.1 + observeOnce(keypath: string, callback: (newValue: any, oldValue: any, keypath: string) => void, options?: ObserveOnceOptions): Observe; + // handler context Ractive - on(eventName: string, handler: (event?: Event, ...args: any[]) => void): Observe; - // TODO: undocumented - on(map: { [eventName: string]: (event?: Event, ...args: any[]) => void }): Observe; + off(eventName?: string, handler?: (event?: Ractive.Event | any, ...args: any[]) => any): Ractive; + on(eventName: string, handler: (event?: Ractive.Event | any, ...args: any[]) => any): Observe; + on(map: { [eventName: string]: (event?: Ractive.Event | any, ...args: any[]) => any }): Observe; + // Since 0.7.1 + once(eventName: string, handler: (event?: Ractive.Event | any, ...args: any[]) => any): Observe; // Since 0.5.5 pop(keypath: string): Promise; @@ -356,13 +410,18 @@ declare module Ractive { // Since 0.5.5 push(keypath: string, value: any): Promise; - // TODO: target - Node or String or jQuery (see Valid selectors) + // target - Node or String or jQuery (see Valid selectors) render(target: any): void; // TODO: void? + // Default {} reset(data?: Object): Promise; + // Since 0.7.1 + resetPartial(name: string, partial: any): Promise; + // Since 0.5.5 // TODO: undocumented, mentioned in ractive change log + // https://github.com/ractivejs/docs.ractivejs.org/issues/188 resetTemplate(): void; // TODO: void? set(keypath: string, value: any): Promise; @@ -382,6 +441,9 @@ declare module Ractive { toHTML(): string; + // Since 0.6.0 + unrender(): void; // TODO: void? + // Since 0.5.5 unshift(keypath: string, value: any): Promise; @@ -395,13 +457,19 @@ declare module Ractive { updateModel(keypath?: string, cascade?: boolean): Promise; // Properties - + // Since 0.7.1 + container: Ractive; // TODO: Ractive? nodes: Object; partials: Object; - transitions: Object; + // Since 0.7.1 + parent: Ractive; // TODO: Ractive? + // Since 0.7.1 + root: Ractive; // TODO: Ractive? + transitions: Object; } } +// used for require() declare module "ractive" { export = Ractive; } From 3db71ab302b03add98a80767e8b61f58759fd56c Mon Sep 17 00:00:00 2001 From: Nyamazing Date: Tue, 17 Mar 2015 16:24:12 +0900 Subject: [PATCH 18/71] add backbone.paginator.d.ts fix methods fix interface fix module output writing test include test in module change test name --- .../backbone.paginator-tests.ts | 305 ++++++++++++++++++ backbone.paginator/backbone.paginator.d.ts | 120 +++++++ 2 files changed, 425 insertions(+) create mode 100644 backbone.paginator/backbone.paginator-tests.ts create mode 100644 backbone.paginator/backbone.paginator.d.ts diff --git a/backbone.paginator/backbone.paginator-tests.ts b/backbone.paginator/backbone.paginator-tests.ts new file mode 100644 index 000000000..413c4c373 --- /dev/null +++ b/backbone.paginator/backbone.paginator-tests.ts @@ -0,0 +1,305 @@ +/// +/// +/// + +module BackbonePaginatorTests { + + class TestModel extends Backbone.Model{}; + + var makeFetchOptions = >() => { + return { + reset: true, + url: 'example.com', + beforeSend: (jqxhr: JQueryXHR) => {}, + success: (model: TestModel, response: any, options: any) => {}, + error: (collection: TCol, jqxhr: JQueryXHR, options: any) => {}, + parse: '', + }; + }; + + + module InitializingWithNoOption { + + class TestCollection extends Backbone.PageableCollection { + constructor(){ + super(); + } + } + + var testCollection = new TestCollection(); + + } + + + + module InitializingWithOptions { + + class TestCollection extends Backbone.PageableCollection { + + constructor(models?: TestModel[], + options?: Backbone.PageableInitialOptions){ + super(); + } + + } + + var testCollection1 = new TestCollection(); + + var testCollection2 = new TestCollection([ + new TestModel(), + new TestModel() + ]); + + var testCollection3 = new TestCollection([], {}); + + var testCollection4 = new TestCollection([],{ + comparator: ()=>1, + full: true, + state: {}, + queryParam: {}, + }); + + var testCollection5 = new TestCollection([],{ + state: { + firstPage: 0, + lastPage: 0, + currentPage: 0, + pageSize: 1, + totalPages: 1, + totalRecords: 1, + sortKey: 'id', + order: 1, + }, + queryParam: { + currentPage: 'current_page', + pageSize: 'page_size', + totalPages: 'total_pages', + totalRecords: 'total_records', + sortKey: 'sort_key', + order: 'order', + directions: '', + }, + }); + + var testCollection6 = new TestCollection([ + {}, + {}, + ]); + + } + + + + module Fetching { + + class TestCollection extends Backbone.PageableCollection { + constructor(models?: TestModel[], + options?: Backbone.PageableInitialOptions){ + super(); + } + } + + + var testCollection = new TestCollection(); + + var result:JQueryXHR = testCollection.fetch(); + + testCollection.fetch({}); + + testCollection.fetch(makeFetchOptions()); + + } + + + + module Paging { + + class TestCollection extends Backbone.PageableCollection { + constructor(models?: TestModel[], + options?: Backbone.PageableInitialOptions){ + super(); + } + } + + var options = makeFetchOptions(); + + var testCollection = new TestCollection(); + + + var result:JQueryXHR|TestCollection = testCollection.getFirstPage(); + + testCollection.getFirstPage(options); + + // 'silent's type is boolean. (structural subtyping) + testCollection.getFirstPage({silent: 'aa'}); + // 'url's type is string. (structural subtyping) + testCollection.getFirstPage({url: true}); + + + result = testCollection.getLastPage(); + + testCollection.getLastPage(options); + + // 'silent's type is boolean. (structural subtyping) + testCollection.getLastPage({silent: 'aa'}); + // 'url's type is string. (structural subtyping) + testCollection.getLastPage({url: true}); + + + result = testCollection.getNextPage(); + + testCollection.getNextPage(options); + + // 'silent's type is boolean. (structural subtyping) + testCollection.getNextPage({silent: 'aa'}); + // 'url's type is string. (structural subtyping) + testCollection.getNextPage({url: true}); + + + result = testCollection.getPage(1); + + testCollection.getPage("1", options); + + // 'silent's type is boolean. (structural subtyping) + testCollection.getPage(1, {silent: 'aa'}); + // 'url's type is string. (structural subtyping) + testCollection.getPage(1, {url: true}); + + + result = testCollection.getPageByOffset(1); + + testCollection.getPageByOffset(1, options); + + // 'silent's type is boolean. (structural subtyping) + testCollection.getPageByOffset(1, {silent: 'aa'}); + // 'url's type is string. (structural subtyping) + testCollection.getPageByOffset(1, {url: true}); + + + result = testCollection.getPreviousPage(); + + testCollection.getPreviousPage(options); + + // 'silent's type is boolean. (structural subtyping) + testCollection.getPreviousPage({silent: 'aa'}); + // 'url's type is string. (structural subtyping) + testCollection.getPreviousPage({url: true}); + + + var hasPage:boolean = testCollection.hasNextPage(); + + hasPage = testCollection.hasPreviousPage(); + + } + + + + + module Parse { + + class TestCollection extends Backbone.PageableCollection { + constructor(models?: TestModel[], + options?: Backbone.PageableInitialOptions){ + super(); + } + } + + var testCollection = new TestCollection(); + + var result:any[] = testCollection.parse({}, {}); + + + var resultLinks:any = testCollection.parseLinks({}, {}); + + resultLinks = testCollection.parseLinks({}, { xhr: $.ajax({}) } ); + + + result = testCollection.parseRecords({}, {}); + + + var resultState: Backbone.PageableState = testCollection.parseState( + {}, + { + currentPage: 'current_page', + pageSize: 'page_size', + totalPages: 'total_pages', + totalRecords: 'total_records', + sortKey: 'sort_key', + order: 'order', + directions: '', + }, + { + firstPage: 0, + lastPage: 0, + currentPage: 0, + pageSize: 1, + totalPages: 1, + totalRecords: 1, + sortKey: 'id', + order: 1, + }, + {}); + + } + + + + module Setting { + + class TestCollection extends Backbone.PageableCollection { + constructor(models?: TestModel[], + options?: Backbone.PageableInitialOptions){ + super(); + } + } + + var testCollection = new TestCollection(); + + var options = makeFetchOptions(); + + + var result1:JQueryXHR|TestCollection + = testCollection.setPageSize(1, options); + + + var result2:TestCollection + = testCollection.setSorting('id', 1, options); + + + result1 = testCollection.switchMode( + 'server', + {fetch: true, resetState: true} + ); + + } + + + + module Syncing { + + class TestCollection extends Backbone.PageableCollection { + constructor(models?: TestModel[], + options?: Backbone.PageableInitialOptions){ + super(); + } + } + + var testCollection = new TestCollection(); + + + var result:JQueryXHR = testCollection.sync('server', new TestModel(), {}); + + result = testCollection.sync('server', testCollection, {}); + + } + + + + module Confllict { + + var result:typeof Backbone.PageableCollection + = Backbone.PageableCollection.noConflict(); + + } + +} diff --git a/backbone.paginator/backbone.paginator.d.ts b/backbone.paginator/backbone.paginator.d.ts new file mode 100644 index 000000000..3a1e00d51 --- /dev/null +++ b/backbone.paginator/backbone.paginator.d.ts @@ -0,0 +1,120 @@ +// Type definitions for backbone.paginator 2.0.2 +// Project: https://github.com/backbone-paginator/backbone.paginator +// Definitions by: Nyamazing +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +declare module Backbone { + + interface PageableState { + firstPage?: number; + lastPage?: number; + currentPage?: number; + pageSize?: number; + totalPages?: number; + totalRecords?: number; + sortKey?: string; + order?: number; + } + + interface PageableQueryParams { + currentPage?: string; + pageSize?: string; + totalPages?: string; + totalRecords?: string; + sortKey?: string; + order?: string; + directions?: any; + } + + interface PageableInitialOptions { + comparator?: (...options: any[]) => number; + full?: boolean; + state?: PageableState; + queryParam?: PageableQueryParams; + } + + interface PageableParseLinksOptions { + xhr?: JQueryXHR; + } + + interface PageableSetSortingOptions { + side?: string; + full?: boolean; + sortValue?: (model: TModel, sortKey: string) => any | string; + } + + interface PageableSwitchModeOptions { + fetch?: boolean; + resetState?: boolean; + } + + type PageableGetPageOptions = CollectionFetchOptions|Silenceable; + + class PageableCollection extends Collection{ + + fullCollection: Collection; + mode: string; + queryParams: PageableQueryParams; + state: PageableState; + + constructor(models?: TModel[], options?: PageableInitialOptions); + + fetch(options?: CollectionFetchOptions): JQueryXHR; + + getFirstPage(options?: PageableGetPageOptions): + JQueryXHR|PageableCollection; + + getLastPage(options?: PageableGetPageOptions): + JQueryXHR|PageableCollection; + + getNextPage(options?: PageableGetPageOptions): + JQueryXHR|PageableCollection; + + getPage(index: number|string, options?: PageableGetPageOptions): + JQueryXHR|PageableCollection; + + getPageByOffset(offset: number, options?: PageableGetPageOptions): + JQueryXHR|PageableCollection; + + getPreviousPage(options?: PageableGetPageOptions): + JQueryXHR|PageableCollection; + + hasNextPage(): boolean; + + hasPreviousPage(): boolean; + + parse(resp: any, options?: any): any[]; + + parseLinks(resp: any, options?: PageableParseLinksOptions): any; + + parseRecords(resp: any, options?: any): any[]; + + parseState(resp: any, queryParams: PageableQueryParams, + state: PageableState, options?: any): PageableState; + + setPageSize(pageSize: number, + options?: CollectionFetchOptions): + JQueryXHR|PageableCollection; + + setSorting(sortKey: string, order?: number, + options?: PageableSetSortingOptions): + PageableCollection; + + switchMode(mode?: string, options?: PageableSwitchModeOptions): + JQueryXHR|PageableCollection; + + sync(method: string, + model: TModel|Collection, + options?: any): JQueryXHR; + + static noConflict(): typeof PageableCollection; + + } +} + +declare module 'backbone.marionette' { + import Backbone = require('backbone'); +} + From 9d8c71db987f1ed82fe7bccdcc4bf2fe8cb884ee Mon Sep 17 00:00:00 2001 From: Nyamazing Date: Sun, 22 Mar 2015 18:53:07 +0900 Subject: [PATCH 19/71] remove needless lines --- backbone.paginator/backbone.paginator.d.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/backbone.paginator/backbone.paginator.d.ts b/backbone.paginator/backbone.paginator.d.ts index 3a1e00d51..6eb560cc8 100644 --- a/backbone.paginator/backbone.paginator.d.ts +++ b/backbone.paginator/backbone.paginator.d.ts @@ -114,7 +114,3 @@ declare module Backbone { } } -declare module 'backbone.marionette' { - import Backbone = require('backbone'); -} - From 09e19b77493a4742eb3e29966cddfe3d59264329 Mon Sep 17 00:00:00 2001 From: Jake Aitchison Date: Sun, 22 Mar 2015 13:23:49 +0000 Subject: [PATCH 20/71] Add support for jasmine 2.2 Asynch timeout syntax --- jasmine/jasmine-tests.ts | 17 +++++++++++++++++ jasmine/jasmine.d.ts | 28 ++++++++++++++-------------- 2 files changed, 31 insertions(+), 14 deletions(-) diff --git a/jasmine/jasmine-tests.ts b/jasmine/jasmine-tests.ts index cbac45d16..ef0572303 100644 --- a/jasmine/jasmine-tests.ts +++ b/jasmine/jasmine-tests.ts @@ -712,6 +712,23 @@ describe("Asynchronous specs", function () { expect(value).toBeGreaterThan(0); done(); }); + + describe("long asynchronous specs", function() { + beforeEach(function(done) { + done(); + }, 1000); + + it("takes a long time", function(done) { + setTimeout(function() { + done(); + }, 9000); + }, 10000); + + afterEach(function(done) { + done(); + }, 1000); + }); + }); describe("Fail", function () { diff --git a/jasmine/jasmine.d.ts b/jasmine/jasmine.d.ts index efa0a62ae..3727f8839 100644 --- a/jasmine/jasmine.d.ts +++ b/jasmine/jasmine.d.ts @@ -10,25 +10,25 @@ declare function describe(description: string, specDefinitions: () => void): voi declare function fdescribe(description: string, specDefinitions: () => void): void; declare function xdescribe(description: string, specDefinitions: () => void): void; -declare function it(expectation: string, assertion?: () => void): void; -declare function it(expectation: string, assertion?: (done: () => void) => void): void; -declare function fit(expectation: string, assertion?: () => void): void; -declare function fit(expectation: string, assertion?: (done: () => void) => void): void; -declare function xit(expectation: string, assertion?: () => void): void; -declare function xit(expectation: string, assertion?: (done: () => void) => void): void; +declare function it(expectation: string, assertion?: () => void, timeout?: number): void; +declare function it(expectation: string, assertion?: (done: () => void) => void, timeout?: number): void; +declare function fit(expectation: string, assertion?: () => void, timeout?: number): void; +declare function fit(expectation: string, assertion?: (done: () => void) => void, timeout?: number): void; +declare function xit(expectation: string, assertion?: () => void, timeout?: number): void; +declare function xit(expectation: string, assertion?: (done: () => void) => void, timeout?: number): void; /** If you call the function pending anywhere in the spec body, no matter the expectations, the spec will be marked pending. */ declare function pending(): void; -declare function beforeEach(action: () => void): void; -declare function beforeEach(action: (done: () => void) => void): void; -declare function afterEach(action: () => void): void; -declare function afterEach(action: (done: () => void) => void): void; +declare function beforeEach(action: () => void, timeout?: number): void; +declare function beforeEach(action: (done: () => void) => void, timeout?: number): void; +declare function afterEach(action: () => void, timeout?: number): void; +declare function afterEach(action: (done: () => void) => void, timeout?: number): void; -declare function beforeAll(action: () => void): void; -declare function beforeAll(action: (done: () => void) => void): void; -declare function afterAll(action: () => void): void; -declare function afterAll(action: (done: () => void) => void): void; +declare function beforeAll(action: () => void, timeout?: number): void; +declare function beforeAll(action: (done: () => void) => void, timeout?: number): void; +declare function afterAll(action: () => void, timeout?: number): void; +declare function afterAll(action: (done: () => void) => void, timeout?: number): void; declare function expect(spy: Function): jasmine.Matchers; declare function expect(actual: any): jasmine.Matchers; From f0c934f8c40459756ba9c96e3ec1163064975304 Mon Sep 17 00:00:00 2001 From: Michael Zabka Date: Sun, 22 Mar 2015 18:09:35 +0100 Subject: [PATCH 21/71] Add npm library fs-finder --- fs-finder/fs-finder-tests.ts | 87 ++++++++++++++++++++++++++++++++++++ fs-finder/fs-finder.d.ts | 55 +++++++++++++++++++++++ 2 files changed, 142 insertions(+) create mode 100644 fs-finder/fs-finder-tests.ts create mode 100644 fs-finder/fs-finder.d.ts diff --git a/fs-finder/fs-finder-tests.ts b/fs-finder/fs-finder-tests.ts new file mode 100644 index 000000000..3f6a82d6c --- /dev/null +++ b/fs-finder/fs-finder-tests.ts @@ -0,0 +1,87 @@ +/// + +import finder = require('fs-finder'); + + +// static +var a: FsFinder.Finder = finder.in('./*'); + +var b: FsFinder.Finder = finder.from('./*'); + +var c: FsFinder.Finder = finder.find('./*'); +finder.find('./*', (paths: string[]) => {}); + +var d: FsFinder.Finder = finder.findFiles('./*'); +finder.findFiles('./*', (paths: string[]) => {}); + +var e: FsFinder.Finder = finder.findDirectories('./*'); +finder.findDirectories('./*', (paths: string[]) => {}); + +var f: FsFinder.Finder = finder.findFile('./*'); +finder.findFile('./*', (paths: string[]) => {}); + +var g: FsFinder.Finder = finder.findDirectory('./*'); +finder.findDirectory('./*', (paths: string[]) => {}); + + +// instance +var instance = finder.in('./any*'); + +var j: string[] = instance.find('./*'); +instance.find('./*', (paths: string[]) => {}); + +var k: string[] = instance.findFiles('./*'); +instance.findFiles('./*', (paths: string[]) => {}); + +var l: string[] = instance.findDirectories('./*'); +instance.findDirectories('./*', (paths: string[]) => {}); + +var m: string[] = instance.findFile('./*'); +instance.findFile('./*', (paths: string[]) => {}); + +var n: string[] = instance.findDirectory('./*'); +instance.findDirectory('./*', (paths: string[]) => {}); + +var paths: string[]; +paths = instance.find(); +paths = instance.findFiles(); +paths = instance.findDirectories(); +paths = instance.findFile(); +paths = instance.findDirectory(); + + +// Base +instance = instance.recursively(); +instance = instance.recursively(false); +instance = instance.exclude('b'); +instance = instance.exclude(['b']); +instance = instance.exclude('a', true); +instance = instance.showSystemFiles(); +instance = instance.showSystemFiles(false); +instance = instance.lookUp(); +instance = instance.lookUp(false); +instance = instance.findFirst(); +instance = instance.findFirst(true); +instance = instance.filter((path: string) => { + return false; +}); + +paths = instance.getPathsSync('all', './*', './dir'); +instance.getPathsAsync((paths: string[]) => {}, 'all', './*', './dir'); +paths = instance.getPathsSync('directories', './*', './dir'); +instance.getPathsAsync((paths: string[]) => {}, 'directories', './*', './dir'); +paths = instance.getPathsSync('files', './*', './dir'); +instance.getPathsAsync((paths: string[]) => {}, 'files', './*', './dir'); + +var is: boolean; +is = instance.checkExcludes('a'); +is = instance.checkSystemFiles('b'); +is = instance.checkFilters('c', {}); + +var numeric: number; +numeric = instance.checkFile('d', {}, './*.ts', 'all'); +numeric = instance.checkFile('d', {}, './*.ts', 'directories'); +numeric = instance.checkFile('d', {}, './*.ts', 'files'); + +paths = instance.getPathsFromParentsSync('a', 'all'); +instance.getPathsFromParentsAsync((paths: string[]) => {}, '*.ts', 'all'); diff --git a/fs-finder/fs-finder.d.ts b/fs-finder/fs-finder.d.ts new file mode 100644 index 000000000..a04ed8799 --- /dev/null +++ b/fs-finder/fs-finder.d.ts @@ -0,0 +1,55 @@ +// Type definitions for fs-finder v1.8.0 +// Project: https://github.com/sakren/node-fs-finder +// Definitions by: Michael Zabka +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module FsFinder { + + type AsyncFunction = (paths: string|string[]) => void; + type Type = string; // 'all'|'directories'|'files' + type Mask = string; + type Directory = string; + + export class Finder extends Base { + static TIME_FORMAT: string; + static in(path: string): Finder; + static from(path: string): Finder; + static find(path: string, fn?: AsyncFunction, type?: Type): Finder; + static findFiles(path?: string, fn?: AsyncFunction): Finder; + static findDirectories(path?: string, fn?: AsyncFunction): Finder; + static findFile(path?: string, fn?: AsyncFunction): Finder; + static findDirectory(path?: string, fn?: AsyncFunction): Finder; + find(mask?: Mask, fn?: AsyncFunction, type?: Type): string[]; + findFiles(mask?: Mask, fn?: AsyncFunction): string[]; + findDirectories(mask?: Mask, fn?: AsyncFunction): string[]; + findFile(mask?: Mask, fn?: AsyncFunction): string[]; + findDirectory(mask?: Mask, fn?: AsyncFunction): string[]; + size(operation?: any, value?: any): Finder; + date(operation?: any, value?: any): Finder; + } + + export class Base { + recursively(recursive?: boolean): Finder; + exclude(excludes: string|string[], exactly?: boolean): Finder; + showSystemFiles(systemFiles?: boolean): Finder; + lookUp(up?: boolean): Finder; + findFirst(findFirst?: boolean): Finder; + filter(fn: Function): Finder; + + getPathsSync(type?: Type, mask?: Mask, dir?: Directory): string[]; + getPathsAsync(fn: AsyncFunction, type?: Type, mask?: Mask, dir?: Directory): void; + + checkExcludes(path: string): boolean; + checkSystemFiles(path: string): boolean; + checkFilters(path: string, stats: any): boolean; + checkFile(path: string, stats: any, mask: Mask, type: Type): number; + + getPathsFromParentsSync(mask?: Mask, type?: Type): string[]; + getPathsFromParentsAsync(fn: AsyncFunction, mask?: Mask, type?: Type): void; + } +} + +declare module "fs-finder" { + import Finder = FsFinder.Finder; + export = Finder; +} From 0fe94d00f62c380037c686c828a9fad15c87ee46 Mon Sep 17 00:00:00 2001 From: Matt Brennan Date: Sun, 22 Mar 2015 17:22:37 +0000 Subject: [PATCH 22/71] eventemitter2: listener arg to offAny is optional --- eventemitter2/eventemitter2.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eventemitter2/eventemitter2.d.ts b/eventemitter2/eventemitter2.d.ts index abaa0756e..dc9bb260b 100644 --- a/eventemitter2/eventemitter2.d.ts +++ b/eventemitter2/eventemitter2.d.ts @@ -55,7 +55,7 @@ declare class EventEmitter2 { * Removes the listener that will be fired when any event is emitted. * @param listener */ - offAny(listener: Function): EventEmitter2; + offAny(listener?: Function): EventEmitter2; /** * Adds a one time listener for the event. From 4d64698eff1569cd199831301cb694eccc55b87e Mon Sep 17 00:00:00 2001 From: Michael Zabka Date: Sun, 22 Mar 2015 18:58:43 +0100 Subject: [PATCH 23/71] Add npm library object-hash --- object-hash/object-hash-tests.ts | 48 +++++++++++++++++++++++++++++ object-hash/object-hash.d.ts | 52 ++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 object-hash/object-hash-tests.ts create mode 100644 object-hash/object-hash.d.ts diff --git a/object-hash/object-hash-tests.ts b/object-hash/object-hash-tests.ts new file mode 100644 index 000000000..e72c9e489 --- /dev/null +++ b/object-hash/object-hash-tests.ts @@ -0,0 +1,48 @@ +/// + +import hash = require('object-hash'); + +var hashed: string; + +var obj = { any: true }; + +// hash object +hashed = hash(obj); + +hashed = hash.sha1(obj); +hashed = hash.keys(obj); +hashed = hash.MD5(obj); +hashed = hash.keysMD5(obj); + +var options = { + algorithm: 'md5', + encoding: 'utf8', + excludeValues: true +}; + +hashed = hash(obj, options); + +// HashTable +var table: ObjectHash.HashTable; +table = hash.HashTable(); +table = hash.HashTable(options); + +table = table.add(obj); +table = table.add(obj, obj); +table = table.remove(obj); +table = table.remove(obj, obj); + +var has: boolean = table.hasKey('whatEver'); +var value: any = table.getValue('whatEver'); +var count: number = table.getCount('whatEver'); + +var tableObject = table.table(); +tableObject['whatEver'].value; +tableObject['whatEver'].count; + +var tableArray = table.toArray(); +tableArray.shift().value; +tableArray.pop().count; +tableArray[2].hash; + +table = table.reset(); diff --git a/object-hash/object-hash.d.ts b/object-hash/object-hash.d.ts new file mode 100644 index 000000000..8faf058da --- /dev/null +++ b/object-hash/object-hash.d.ts @@ -0,0 +1,52 @@ +// Type definitions for object-hash v0.5.0 +// Project: https://github.com/puleos/object-hash +// Definitions by: Michael Zabka +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module ObjectHash { + export interface IOptions { + algorithm?: string; + encoding?: string; + excludeValues?: boolean; + } + + interface HashTableItem { + value: any; + count: number; + } + + interface HashTableItemWithKey extends HashTableItem { + hash: string; + } + + export interface HashTable { + add(...values: any[]): HashTable; + remove(...values: any[]): HashTable; + hasKey(key: string): boolean; + getValue(key: string): any; + getCount(key: string): number; + table(): { [key: string]: HashTableItem }; + toArray(): HashTableItemWithKey[]; + reset(): HashTable; + } + + export interface HashTableStatic { + (options?: IOptions): HashTable; + } + + export interface Hash { + (object: any, options?: IOptions): string; + sha1(object: any): string; + keys(object: any): string; + MD5(object: any): string; + keysMD5(object: any): string; + HashTable: HashTableStatic; + } + + export var HashStatic: Hash; +} + +declare module 'object-hash' { + import HashStatic = ObjectHash.HashStatic; + export = HashStatic; +} From 2d74d784bda137f653415444b549bdb7a4827994 Mon Sep 17 00:00:00 2001 From: Honza Dvorsky Date: Sun, 22 Mar 2015 20:37:17 +0000 Subject: [PATCH 24/71] auth_pass is a string (password), not a boolean. --- redis/redis.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/redis.d.ts b/redis/redis.d.ts index a3bd49e91..902cb770d 100644 --- a/redis/redis.d.ts +++ b/redis/redis.d.ts @@ -42,7 +42,7 @@ declare module "redis" { retry_max_delay?: number; connect_timeout?: number; max_attempts?: number; - auth_pass?: boolean; + auth_pass?: string; } interface RedisClient extends NodeJS.EventEmitter { From 6e9cfe92bbf78f28dc9ea01102415a431fc21a5f Mon Sep 17 00:00:00 2001 From: Honza Dvorsky Date: Sun, 22 Mar 2015 20:39:45 +0000 Subject: [PATCH 25/71] make parser optional --- redis/redis.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/redis.d.ts b/redis/redis.d.ts index 902cb770d..8e9c97856 100644 --- a/redis/redis.d.ts +++ b/redis/redis.d.ts @@ -33,7 +33,7 @@ declare module "redis" { } interface ClientOpts { - parser: string; + parser?: string; return_buffers?: boolean; detect_buffers?: boolean; socket_nodelay?: boolean; From c62ba500455c0b76ad6c6edc4e39ec59ef126dfe Mon Sep 17 00:00:00 2001 From: David Li Date: Sun, 22 Mar 2015 16:52:07 -0400 Subject: [PATCH 26/71] threejs: Add missing methods in trackballcontrols Signed-off-by: David Li --- threejs/three-trackballcontrols.d.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/threejs/three-trackballcontrols.d.ts b/threejs/three-trackballcontrols.d.ts index 21d096812..e969bcb5e 100644 --- a/threejs/three-trackballcontrols.d.ts +++ b/threejs/three-trackballcontrols.d.ts @@ -29,5 +29,13 @@ declare module THREE { keys:number[]; update():void; + reset():void; + checkDistances():void; + zoomCamera():void; + panCamera():void; + rotateCamera():void; + + handleResize():void; + handleEvent(event: any):void; } -} \ No newline at end of file +} From dc067ac82c686e0cd11bdcf5190510ef14bf97b2 Mon Sep 17 00:00:00 2001 From: Bobdina Date: Mon, 23 Mar 2015 11:15:22 +0100 Subject: [PATCH 27/71] Update jquery.d.ts - deferred.fail() always returns the deferred object, ergo the failfilter can return anything - taking in the value parameter for a donefilter is optional - if a donefilter does not return anything, then the 'then' function continues with a void promise --- jquery/jquery.d.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/jquery/jquery.d.ts b/jquery/jquery.d.ts index 2452ec377..61fd62442 100644 --- a/jquery/jquery.d.ts +++ b/jquery/jquery.d.ts @@ -276,7 +276,15 @@ interface JQueryGenericPromise { * @param doneFilter A function that is called when the Deferred is resolved. * @param failFilter An optional function that is called when the Deferred is rejected. */ - then(doneFilter: (value: T, ...values: any[]) => U|JQueryPromise, failFilter?: (...reasons: any[]) => U|JQueryPromise, progressFilter?: (...progression: any[]) => any): JQueryPromise; + then(doneFilter: (value?: T, ...values: any[]) => U|JQueryPromise, failFilter?: (...reasons: any[]) => any, progressFilter?: (...progression: any[]) => any): JQueryPromise; + + /** + * Add handlers to be called when the Deferred object is resolved, rejected, or still in progress. + * + * @param doneFilter A function that is called when the Deferred is resolved. + * @param failFilter An optional function that is called when the Deferred is rejected. + */ + then(doneFilter: (value?: T, ...values: any[]) => void, failFilter?: (...reasons: any[]) => any, progressFilter?: (...progression: any[]) => any): JQueryPromise; } /** From d2d2a6586b2e9b8515287955f09c3a7f6e924bd7 Mon Sep 17 00:00:00 2001 From: Chris Barr Date: Mon, 23 Mar 2015 12:30:51 -0400 Subject: [PATCH 28/71] Adding params for Angular JS animation options According to [The ngAnimate Documentation](https://docs.angularjs.org/api/ngAnimate/#applying-directive-specific-styles-to-an-animation it), it's possible to optionally specify animation `to` and `from` prameters in an object that can optionally be passed in to `animate` `enter` `leave` `addClass` `removeClass` and `setClass` --- angularjs/angular-animate.d.ts | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/angularjs/angular-animate.d.ts b/angularjs/angular-animate.d.ts index 2af591b7a..e78b85c3e 100644 --- a/angularjs/angular-animate.d.ts +++ b/angularjs/angular-animate.d.ts @@ -36,9 +36,10 @@ declare module angular.animate { * @param from a collection of CSS styles that will be applied to the element at the start of the animation * @param to a collection of CSS styles that the element will animate towards * @param className an optional CSS class that will be added to the element for the duration of the animation (the default class is 'ng-inline-animate') + * @param options an optional collection of styles that will be picked up by the CSS transition/animation * @returns the animation callback promise */ - animate(element: JQuery, from: any, to: any, className?: string): ng.IPromise; + animate(element: JQuery, from: any, to: any, className?: string, options?: IAnimationOptions): ng.IPromise; /** * Appends the element to the parentElement element that resides in the document and then runs the enter animation. @@ -46,17 +47,19 @@ declare module angular.animate { * @param element the element that will be the focus of the enter animation * @param parentElement the parent element of the element that will be the focus of the enter animation * @param afterElement the sibling element (which is the previous element) of the element that will be the focus of the enter animation + * @param options an optional collection of styles that will be picked up by the CSS transition/animation * @returns the animation callback promise */ - enter(element: JQuery, parentElement: JQuery, afterElement?: JQuery): ng.IPromise; + enter(element: JQuery, parentElement: JQuery, afterElement?: JQuery, options?: IAnimationOptions): ng.IPromise; /** * Runs the leave animation operation and, upon completion, removes the element from the DOM. * * @param element the element that will be the focus of the leave animation + * @param options an optional collection of styles that will be picked up by the CSS transition/animation * @returns the animation callback promise */ - leave(element: JQuery): ng.IPromise; + leave(element: JQuery, options?: IAnimationOptions): ng.IPromise; /** * Fires the move DOM operation. Just before the animation starts, the animate service will either append @@ -76,9 +79,10 @@ declare module angular.animate { * * @param element the element that will be animated * @param className the CSS class that will be added to the element and then animated + * @param options an optional collection of styles that will be picked up by the CSS transition/animation * @returns the animation callback promise */ - addClass(element: JQuery, className: string): ng.IPromise; + addClass(element: JQuery, className: string, options?: IAnimationOptions): ng.IPromise; /** * Triggers a custom animation event based off the className variable and then removes the CSS class @@ -86,9 +90,10 @@ declare module angular.animate { * * @param element the element that will be animated * @param className the CSS class that will be animated and then removed from the element + * @param options an optional collection of styles that will be picked up by the CSS transition/animation * @returns the animation callback promise */ - removeClass(element: JQuery, className: string): ng.IPromise; + removeClass(element: JQuery, className: string, options?: IAnimationOptions): ng.IPromise; /** * Adds and/or removes the given CSS classes to and from the element. Once complete, the done() callback @@ -97,9 +102,10 @@ declare module angular.animate { * @param element the element which will have its CSS classes changed removed from it * @param add the CSS classes which will be added to the element * @param remove the CSS class which will be removed from the element CSS classes have been set on the element + * @param options an optional collection of styles that will be picked up by the CSS transition/animation * @returns the animation callback promise */ - setClass(element: JQuery, add: string, remove: string): ng.IPromise; + setClass(element: JQuery, add: string, remove: string, options?: IAnimationOptions): ng.IPromise; /** * Cancels the provided animation. @@ -128,4 +134,13 @@ declare module angular.animate { */ classNameFilter(expression?: RegExp): RegExp; } + + /////////////////////////////////////////////////////////////////////////// + // Angular Animation Options + // see https://docs.angularjs.org/api/ngAnimate/#applying-directive-specific-styles-to-an-animation + /////////////////////////////////////////////////////////////////////////// + interface IAnimationOptions { + to?: Object; + from?: Object; + } } From f78ab44b56060b36f7a3a0efbe9a8f4b30ea4066 Mon Sep 17 00:00:00 2001 From: cuziacmihai Date: Mon, 23 Mar 2015 18:36:19 +0200 Subject: [PATCH 29/71] Update jquery.fancytree.d.ts Added Fancytree.rootNode & FancyTree.$div --- jquery.fancytree/jquery.fancytree.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jquery.fancytree/jquery.fancytree.d.ts b/jquery.fancytree/jquery.fancytree.d.ts index feb5135b8..34a9f1422 100644 --- a/jquery.fancytree/jquery.fancytree.d.ts +++ b/jquery.fancytree/jquery.fancytree.d.ts @@ -20,6 +20,10 @@ interface JQuery { declare module Fancytree { interface Fancytree { + $div: JQuery; + + rootNode: FancytreeNode; + /** Activate node with a given key and fire focus and * activate events. A prevously activated node will be * deactivated. If activeVisible option is set, all parents From c6ec8b91dd2131c835d5d9ca71d411d217d19ba6 Mon Sep 17 00:00:00 2001 From: Maksim Kozhukh Date: Mon, 23 Mar 2015 19:55:35 +0300 Subject: [PATCH 30/71] Webix UI 2.3.0 --- webix/webix-tests.ts | 66 + webix/webix.d.ts | 7533 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 7599 insertions(+) create mode 100644 webix/webix-tests.ts create mode 100644 webix/webix.d.ts diff --git a/webix/webix-tests.ts b/webix/webix-tests.ts new file mode 100644 index 000000000..128bc666c --- /dev/null +++ b/webix/webix-tests.ts @@ -0,0 +1,66 @@ +/// + +//ajax operations +webix.ready(function(){ + webix.ajax().get("te").then(function(){ + webix.message( webix.env.isFF ? "FireFox" : "Other" ); + }); +}); + +//webix helpers +webix.html.addCss(document.body, "text"); +webix.storage.local.get("mydata"); + +var proxy = webix.proxy("meteor", "books"); + +//webix ui helpers +webix.ui.zIndexBase = 101; +webix.ui.zIndex(); +webix.ui.resize(); + +//webix ui constructor +//basic view +var ui = webix.ui({ + view:"list", id:"l1" +}); +ui.adjust(); +$$("l1").adjust(); + +var l1 = {}; +var l2 = {}; + +//specific view types +var ui2 = webix.ui({ + view:"list", id:"21" +}); +ui2.add({ value:"100" }); + +//specific types by id +var list = $$("l1"); +list.add({ value:"100" }); +list.config.height = 100; + + + + +//config typing +var table:webix.ui.datatableConfig = {}; +table.columns = []; +table.autowidth = true; + +webix.ui({ rows:[ table ] }); + +//events +list.attachEvent("onItemClick", function(id:string, e:Event){ + var item = (this).getItem(id); + var self = webix.$$(e); + return true; +}); + +//data collections +var data = new webix.DataCollection(); +data.config["test"]= 123; + +//mixins +var t = webix.DataDriver.json; + diff --git a/webix/webix.d.ts b/webix/webix.d.ts new file mode 100644 index 000000000..a1761c63b --- /dev/null +++ b/webix/webix.d.ts @@ -0,0 +1,7533 @@ +// Type definitions for Webix UI v2.3.0 +// Project: http://webix.com +// Definitions by: Maksim Kozhukh +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module webix { + +type WebixTemplate = (...args: any[])=>string; +type WebixCallback = (...args: any[])=>any; +interface PromisedData { + then(handler:(data:any)=>any):PromisedData; +} + +function ajax():webix._ajax; +function $$(id: string|Event|HTMLElement):webix.ui.view; + + +interface _ajax{ + bind(master:any):webix._ajax; + del(url:string, params?:any, callback?:WebixCallback):PromisedData; + get(url:string, params?:any, callback?:WebixCallback):PromisedData; + getXHR():any; + headers(values:any):webix._ajax; + post(url:string, params?:any, callback?:WebixCallback):PromisedData; + put(url:string, params?:any, callback?:WebixCallback):PromisedData; + response(type:string):void; + stringify():void; + sync():webix._ajax; + master: any; +} +interface clipbuffer{ + destructor():void; + focus():void; + init():void; + set(text:string):void; +} +interface color{ + hexToDec(hex:string):number; + hsvToRgb(h:number, s:number, v:number):any[]; + rgbToHsv(r:number, g:number, b:number):any[]; + toHex(number:number, length?:number):string; + toRgb(rgb:string):any[]; +} +interface csv{ + parse(text:string, delimiter?:any):any[]; + stringify(data:any[], delimiter?:any):string; + delimiter: any; + escape: boolean; +} +interface editors{ + $popup: any; + checkbox: string; + color: string; + combo: string; + date: string; + "inline-checkbox": any; + "inline-text": any; + multiselect: string; + password: string; + popup: string; + richselect: string; + select: string; + text: string; +} +interface env{ + cssPrefix: string; + isFF: boolean; + isIE: boolean; + isSafari: boolean; + isWebKit: boolean; + jsPrefix: string; + mouse: any; + strict: boolean; + svg: boolean; + transform: boolean; + transition: boolean; + transitionDuration: string; + transitionEnd: string; + translate: string; +} +interface history{ + push(view:string, url:string, value:any):void; + track(view:string, url:string):void; +} +interface html{ + addCss(node:HTMLElement, name:string):void; + addMeta(name:string, value:string):void; + addStyle(css:string):void; + allowSelect():void; + create(name:string, attrs:any, html?:string):HTMLElement; + createCss(data:any):string; + denySelect():void; + getValue(node:HTMLElement):string; + index(node:HTMLElement):number; + insertBefore(node:HTMLElement, before:HTMLElement, rescue?:HTMLElement):void; + locate(ev:Event|HTMLElement, name:string):string; + offset(node:HTMLElement):any; + pos(ev:Event):any; + posRelative(ev:Event):any; + preventEvent(ev:Event):boolean; + remove(node:HTMLElement|HTMLElement[]):void; + removeCss(node:HTMLElement, name:string):void; + stopEvent(ev:Event):boolean; +} +interface i18n{ + dateFormatDate(date:string):any; + dateFormatStr(date:any):string; + fullDateFormatDate(date:string):any; + fullDateFormatStr(date:Date):string; + intFormat(num:number):string; + longDateFormatDate(date:string):any; + longDateFormatStr(date:any):string; + numberFormat(number:number):string; + parseFormatDate(date:string):any; + parseFormatStr(date:any):string; + parseTimeFormatDate(date:string):void; + parseTimeFormatStr(date:any):void; + priceFormat(number:number):string; + setLocale(name:string):void; + timeFormatDate(time:string):any; + timeFormatStr(date:any):string; + calendar: any; + controls: any; + dateFormat: string; + decimalDelimiter: string; + decimalSize: number; + fileSize: any[]; + fullDateFormat: string; + groupDelimiter: string; + groupSize: number; + locales: any; + longDateFormat: string; + parseFormat: string; + parseTimeFormat: string; + price: string; + priceSettings: any; + timeFormat: string; +} +interface locale{ + pager: any; +} +interface markup{ + init(node:string, target:string):webix.ui.baseview; + parse(data:any, datatype:string):void; + attribute: any; + dataTag: any; + namespace: any; +} +interface promise{ + all(promise:PromisedData, morepromises?:PromisedData):void; + defer():PromisedData; + fcall():PromisedData; + nfcall():PromisedData; +} +interface rules{ + isEmail():void; + isNotEmpty():void; + isNumber():void; +} +interface cookie{ + clear():void; + get(name:string):any; + put(name:string, value:any):void; + remove(name:string):void; +} +interface local{ + clear():void; + get(name:string):any; + put(name:string, value:any):void; + remove(name:string):void; +} +interface session{ + clear():void; + get(name:string):any; + put(name:string, value:any):void; + remove(name:string):void; +} +interface storage{ + cookie:webix.cookie; + local:webix.local; + session:webix.session; +} + +function alert(text:string, callback:WebixCallback):HTMLElement; +function animate(html_element:HTMLElement, animation:any):void; +function attachEvent(type:string, functor:WebixCallback, id?:string):string; +function bind(code:WebixCallback, master:any):WebixCallback; +function blockEvent():void; +function callEvent(name:string, params:any[]):boolean; +function clone(source:any):any; +function confirm(text:string, callback:WebixCallback):HTMLElement; +function copy(source:any):any; +function delay(code:WebixCallback, owner?:any, params?:any[], delay?:number):number; +function detachEvent(id:string):void; +function dp(name:string):any; +function editStop():void; +function event(node:HTMLElement, event:string, handler:WebixCallback, master?:any):string; +function eventRemove(id:string):void; +function exec(code:string):void; +function extend(target:any, source:any, overwrite:boolean):any; +function hasEvent(name:string):boolean; +function isArray(check:any):boolean; +function isDate(check:any):boolean; +function isUndefined(check:any):boolean; +function jsonp(url:string, params?:any, callback?:WebixCallback, master?:any):void; +function mapEvent(map:any):void; +function message(text:string):void; +function modalbox(text:string, callback:WebixCallback):HTMLElement; +function once(code:WebixCallback):void; +function proto(target:any, mixin1?:any, mixinN?:any):any; +function protoUI(target:any, view:any, mixin1?:any, mixinN?:any):any; +function proxy(type:string, source:string):any; +function ready(code:WebixCallback):void; +function remote():void; +function require(url:string):void; +function send(url:string, values:any, method:string, target:string):void; +function single(source:WebixCallback):WebixCallback; +function template(template:string):WebixCallback; +function toArray(array:any[]):any[]; +function toFunctor(name:string):WebixCallback; +function toNode(id:string):HTMLElement; +function type(config:any):void; +function ui(config:any, parent?:any, replacement?:any):webix.ui.baseview; +function uid():string; +function unblockEvent():void; +function wrap(target:WebixCallback, source:WebixCallback):WebixCallback; +var codebase: string; +var name: string; +var version: string; +var clipbuffer:webix.clipbuffer; +var color:webix.color; +var csv:webix.csv; +var editors:webix.editors; +var env:webix.env; +var history:webix.history; +var html:webix.html; +var i18n:webix.i18n; +var locale:webix.locale; +var markup:webix.markup; +var promise:webix.promise; +var rules:webix.rules; +var storage:webix.storage; + +interface ActiveContent{ + } +var ActiveContent:ActiveContent; + +interface AtomDataLoader{ + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + parse(data:any, type:string):void; +} +var AtomDataLoader:AtomDataLoader; + +interface AtomRender{ + render(id:string, data:any, type:string):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; +} +var AtomRender:AtomRender; + +interface AutoTooltip{ + } +var AutoTooltip:AutoTooltip; + +interface BaseBind{ + bind(target:any, rule?:WebixCallback, format?:string):void; + unbind():void; +} +var BaseBind:BaseBind; + +interface BindSource{ + addBind(source:any, rule:string, format:string):void; + getBindData(key:string, update:boolean):void; + removeBind(source:any):void; + saveBatch(func:WebixCallback):void; + setBindData(data:any, key:string):void; +} +var BindSource:BindSource; + +interface Canvas{ + clearCanvas():void; + getCanvas(context:string):any; + hideCanvas():void; + renderText(x:number, y:number, text:string, css:string, w:number):void; + renderTextAt(valign:string, align:string, x:number, y:number, t:string, c:string, w:number):void; + showCanvas():void; + toggleCanvas():void; +} +var Canvas:Canvas; + +interface CollectionBind{ + getCursor():number; + refreshCursor():void; + setCursor(cursor:string):void; +} +var CollectionBind:CollectionBind; + +interface ContextHelper{ + attachTo(view:any):void; + getContext():any; +} +var ContextHelper:ContextHelper; + +interface CopyPaste{ + } +var CopyPaste:CopyPaste; + +interface CustomScroll{ + enable(html_node:HTMLElement|webix.ui.baseview):void; + init():void; + scrollStep: number; +} +var CustomScroll:CustomScroll; + +interface DataCollection{ + add(obj:any, index?:number):string; + addBind(source:any, rule:string, format:string):void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + clearAll():void; + clearValidation():void; + count():number; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + exists(id:string):boolean; + filter(text:string|WebixTemplate|WebixCallback, value:string, preserve:boolean):void; + getBindData(key:string, update:boolean):void; + getCursor():number; + getFirstId():string; + getIdByIndex(index:number):string; + getIndexById(id:string):number; + getItem(id:string):any; + getLastId():string; + getNextId(id:string, step:number):string; + getPrevId(id:string, step:number):string; + hasEvent(name:string):boolean; + isVisible():boolean; + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + loadNext(count:number, start:number, callback:WebixCallback, url:string, now:boolean):void; + mapEvent(map:any):void; + parse(data:any, type:string):void; + refresh(id?:string):void; + refreshCursor():void; + remove(id:string):void; + removeBind(source:any):void; + saveBatch(func:WebixCallback):void; + serialize():any; + setBindData(data:any, key:string):void; + setCursor(cursor:string):void; + sort(by:string, dir?:string, as?:string):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + updateItem(id:string, data:any):void; + validate(id?:string):boolean; + config: { [key: string]: any; }; + name: string; +} +interface DataCollectionFactory{ + new():DataCollection; +} +var DataCollection:DataCollectionFactory; + +interface DataDriver{ + csv: any; + html: any; + htmltable: any; + jsarray: any; + json: any; + xml: any; +} +var DataDriver:DataDriver; + +interface DataLoader{ + add(obj:any, index?:number):string; + clearAll():void; + count():number; + exists(id:string):boolean; + filter(text:string|WebixTemplate|WebixCallback, value:string, preserve:boolean):void; + getFirstId():string; + getIdByIndex(index:number):string; + getIndexById(id:string):number; + getItem(id:string):any; + getLastId():string; + getNextId(id:string, step:number):string; + getPrevId(id:string, step:number):string; + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + loadNext(count:number, start:number, callback:WebixCallback, url:string, now:boolean):void; + parse(data:any, type:string):void; + refresh(id?:string):void; + remove(id:string):void; + serialize():any; + sort(by:string, dir?:string, as?:string):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + updateItem(id:string, data:any):void; +} +var DataLoader:DataLoader; + +interface DataMarks{ + addCss(id:string|number, css:string, silent?:boolean):void; + clearCss(css:string, silent?:boolean):void; + hasCss(id:string, css:string):boolean; + removeCss(id:string|number, css:string, silent?:boolean):void; +} +var DataMarks:DataMarks; + +interface DataMove{ + copy(sid:string, tindex:number, tobj?:any, details?:any):void; + move(sid:string, tindex:number, tobj?:any, details?:any):string; + moveBottom(id:string):void; + moveDown(id:string, step:number):void; + moveTop(id:string):void; + moveUp(id:string, step:number):void; +} +var DataMove:DataMove; + +interface DataProcessor{ + attachEvent(type:string, functor:WebixCallback, id?:string):string; + attachProgress(start:WebixCallback, end:WebixCallback, error:WebixCallback):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + clearValidation():void; + define(property:string, value:any):void; + detachEvent(id:string):void; + escape(value:string):string; + getItemState(itemId:string):any; + getState():string|boolean; + hasEvent(name:string):boolean; + ignore(code:WebixCallback, master:any):void; + mapEvent(map:any):void; + off():void; + on():void; + processResult(data:any):void; + reset():void; + save(id:string, operation:string):void; + send():void; + setItemState(itemId:string, state:boolean):void; + unblockEvent():void; + validate():boolean; + config: { [key: string]: any; }; + name: string; +} +var DataProcessor:DataProcessor; + +interface DataRecord{ + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + detachEvent(id:string):void; + getValues():any; + hasEvent(name:string):boolean; + isVisible():boolean; + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + mapEvent(map:any):void; + parse(data:any, type:string):void; + refresh(id?:string):void; + setValues(values:any, update?:boolean):void; + unbind():void; + unblockEvent():void; + config: { [key: string]: any; }; + name: string; +} +var DataRecord:DataRecord; + +interface DataState{ + getState():any; + setState(state:any):void; +} +var DataState:DataState; + +interface DataStore{ + add(obj:any, index?:number):string; + addMark(id:string, name:string, css?:boolean, value?:any):any; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + changeId(old:string, newid:string):void; + clearAll():void; + clearMark(name:string):void; + count():number; + destructor():void; + detachEvent(id:string):void; + each(method:WebixCallback, master?:any, all?:boolean):void; + exists(id:string):boolean; + filter(text:string|WebixTemplate|WebixCallback, value:string, preserve:boolean):void; + getFirstId():string; + getIdByIndex(index:number):string; + getIndexById(id:string):number; + getIndexRange(from:string, to:string):any[]; + getItem(id:string):any; + getLastId():string; + getMark(id:string, mark_name:string):any; + getNextId(id:string, step:number):string; + getPrevId(id:string, step:number):string; + getRange(from:string, to:string):any[]; + hasEvent(name:string):boolean; + id(item:any):string; + importData(source:webix.ui.baseview):void; + mapEvent(map:any):void; + move(sid:string, tindex:number, tobj?:any, details?:any):string; + provideApi(target:any, eventable:boolean):void; + refresh(id?:string):void; + remove(id:string):void; + removeMark(id:string, name:string, css:boolean):void; + scheme(config:any):void; + serialize():any; + setDriver(type:string):void; + silent(code:WebixCallback):void; + sort(by:string, dir?:string, as?:string):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unblockEvent():void; + unsync():void; + updateItem(id:string, data:any):void; + driver: any; + name: string; + order: any[]; + pull: any; +} +var DataStore:DataStore; + +interface DataValue{ + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + detachEvent(id:string):void; + getValue():string; + hasEvent(name:string):boolean; + isVisible():boolean; + mapEvent(map:any):void; + refresh():void; + setValue(value:string):void; + unbind():void; + unblockEvent():void; + name: string; +} +var DataValue:DataValue; + +interface Date{ + add(date:any, inc:number, mode:string):any; + copy(date:any):any; + datePart(date:any):any; + dateToStr(format:string, utc:boolean):WebixCallback; + dayStart(date:any):any; + equal(datea:any, dateb:any):boolean; + getISOWeek(date:any):number; + getUTCISOWeek(data:any):number; + isHoliday(date:any):boolean; + monthStart(date:any):any; + strToDate(format:string, utc:boolean):WebixCallback; + timePart(date:any):number; + toFixed(num:number):number; + weekStart(date:any):any; + yearStart(date:any):any; + startOnMonday: boolean; +} +var Date:Date; + +interface Destruction{ + destructor():void; +} +var Destruction:Destruction; + +interface DragControl{ + addDrag(node:string|HTMLElement, ctrl:any):void; + addDrop(node:string|HTMLElement, ctrl:any, master_mode:boolean):void; + createDrag(event:Event):void; + destroyDrag():void; + getContext():any; + getMaster(target:any):any; + getNode():HTMLElement; + sendSignal(signal:string):void; + $drag(s:any, e:Event):HTMLElement; + $dragIn(s:any, t:any, e:Event):void; + $dragOut(s:any, t:any, n:any, e:Event):void; + $dragPos: WebixCallback; + $drop(s:any, t:any, d:any, e:Event):void; + left: number; + top: number; +} +var DragControl:DragControl; + +interface DragItem{ + $drag(source:HTMLElement, ev:Event):string; + $dragHTML: WebixCallback; + $dragIn(source:HTMLElement, target:HTMLElement, ev:Event):HTMLElement; + $dragMark(context:any, ev:Event):boolean; + $dragOut(source:HTMLElement, old_target:HTMLElement, new_target:HTMLElement, ev:Event):void; + $drop(source:HTMLElement, target:HTMLElement, ev:any):void; + $dropAllow: WebixCallback; +} +var DragItem:DragItem; + +interface DragOrder{ + $drag(source:HTMLElement, ev:Event):string; + $dragIn(source:HTMLElement, target:HTMLElement, ev:Event):HTMLElement; + $dragPos: WebixCallback; + $drop(source:HTMLElement, target:HTMLElement, ev:any):void; +} +var DragOrder:DragOrder; + +interface EditAbility{ + edit(id:any):void; + editCancel():void; + editNext():boolean; + editStop():void; + focusEditor():void; + getEditState():any; + getEditor(id?:string):any; + getEditorValue():string; + validateEditor(id?:string):boolean; +} +var EditAbility:EditAbility; + +interface EventSystem{ + attachEvent(type:string, functor:WebixCallback, id?:string):string; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + detachEvent(id:string):void; + hasEvent(name:string):boolean; + mapEvent(map:any):void; + unblockEvent():void; +} +var EventSystem:EventSystem; + +interface Group{ + group(config:any, mode:boolean):void; + ungroup(mode:boolean):void; +} +var Group:Group; + +interface GroupMethods{ + any(property:string, data:any):void; + count(property:string, data:any):void; + max(property:string, data:any):void; + min(property:string, data:any):void; + string(property:string, data:any):void; + sum(property:string, data:any):void; +} +var GroupMethods:GroupMethods; + +interface GroupStore{ + group(stats:any):void; + ungroup():void; +} +var GroupStore:GroupStore; + +interface HtmlMap{ + addPoly(id:string, points:any[]):void; + addRect(id:string, points:any[], userdata?:string):void; + addSector(id:string, aplha0:number, aplha1:number, x:number, y:number, R:number, ky:number):void; + render(html:HTMLElement):void; +} +var HtmlMap:HtmlMap; + +interface IdSpace{ + innerId(id:string):string; + ui(view:any):webix.ui.baseview; + $$: any; +} +var IdSpace:IdSpace; + +interface KeysNavigation{ + moveSelection(direction:string):void; +} +var KeysNavigation:KeysNavigation; + +interface MapCollection{ + } +var MapCollection:MapCollection; + +interface Modality{ + } +var Modality:Modality; + +interface MouseEvents{ + on_click: WebixCallback; + on_context: { [key: string]: any; }; + on_dblclick: WebixCallback; + on_mouse_move: WebixCallback; +} +var MouseEvents:MouseEvents; + +interface Movable{ + } +var Movable:Movable; + +interface NavigationButtons{ + } +var NavigationButtons:NavigationButtons; + +interface Number{ + format(value:number, config:any):string; + numToStr(config:any):WebixCallback; +} +var Number:Number; + +interface OverlayBox{ + hideOverlay():void; + showOverlay():void; +} +var OverlayBox:OverlayBox; + +interface PagingAbility{ + getPage():number; + getPager():any; + setPage(page:number):void; +} +var PagingAbility:PagingAbility; + +interface PowerArray{ + each(functor:WebixCallback, master:any):void; + filter(functor:WebixCallback, master:any):any[]; + find(data:any):number; + insertAt(data:any, pos:number):void; + map(functor:WebixCallback, master:any):any[]; + remove(value:any):void; + removeAt(pos:number, len:number):void; +} +var PowerArray:PowerArray; + +interface ProgressBar{ + hideProgress():void; + showProgress(config?:any):void; +} +var ProgressBar:ProgressBar; + +interface RecordBind{ + } +var RecordBind:RecordBind; + +interface RenderStack{ + customize(obj:any):void; + getItemNode(id:string):void; + locate(e:Event):string; + render(id:string, data:any, type:string):void; + showItem(id:string):void; + type: { [key: string]: any; }; + types: { [key: string]: any; }; +} +var RenderStack:RenderStack; + +interface Scrollable{ + getScrollState():any; + scrollTo(x:number, y:number):void; +} +var Scrollable:Scrollable; + +interface SelectionModel{ + getSelectedId(as_array:boolean):string|any[]; + getSelectedItem(as_array?:boolean):any; + isSelected(id:string):boolean; + select(id:string|any[], preserve:boolean):void; + selectAll(from?:string, to?:string):void; + unselect(id?:string):void; + unselectAll():void; +} +var SelectionModel:SelectionModel; + +interface Settings{ + define(property:string, value:any):void; + config: { [key: string]: any; }; + name: string; +} +var Settings:Settings; + +interface SingleRender{ + customize(obj:any):void; + render(id:string, data:any, type:string):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + type: { [key: string]: any; }; +} +var SingleRender:SingleRender; + +interface TablePaste{ + } +var TablePaste:TablePaste; + +interface Touch{ + disable():void; + enable():void; + limit(mode:boolean):void; + scrollTo(node:HTMLElement, x:number, y:number, speed:string):void; + config: any; +} +var Touch:Touch; + +interface TreeAPI{ + close(id:string):void; + closeAll():void; + getOpenItems():any[]; + getState():any; + isBranchOpen(id:string):boolean; + open(id:string):void; + openAll():void; + setState(state:any):void; +} +var TreeAPI:TreeAPI; + +interface TreeClick{ + webix_tree_checkbox(obj:any, common:{ [key: string]: any; }):string; + webix_tree_close(obj:any, common:{ [key: string]: any; }):string; + webix_tree_open(obj:any, common:{ [key: string]: any; }):string; +} +var TreeClick:TreeClick; + +interface TreeCollection{ + add(obj:any, index?:number):string; + addBind(source:any, rule:string, format:string):void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + clearAll():void; + clearValidation():void; + count():number; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + exists(id:string):boolean; + filter(text:string|WebixTemplate|WebixCallback, value:string, preserve:boolean):void; + getBindData(key:string, update:boolean):void; + getBranchIndex(id:string, parent?:string):number; + getCursor():number; + getFirstChildId(id:string):string; + getFirstId():string; + getIdByIndex(index:number):string; + getIndexById(id:string):number; + getItem(id:string):any; + getLastId():string; + getNextId(id:string, step:number):string; + getNextSiblingId(id:any):string; + getParentId(id:string):string; + getPrevId(id:string, step:number):string; + getPrevSiblingId(id:any):string; + hasEvent(name:string):boolean; + isBranch(id:string):boolean; + isVisible():boolean; + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + loadBranch(id:string, callback:WebixCallback, url:string):void; + loadNext(count:number, start:number, callback:WebixCallback, url:string, now:boolean):void; + mapEvent(map:any):void; + parse(data:any, type:string):void; + refresh(id?:string):void; + refreshCursor():void; + remove(id:string):void; + removeBind(source:any):void; + saveBatch(func:WebixCallback):void; + serialize():any; + setBindData(data:any, key:string):void; + setCursor(cursor:string):void; + sort(by:string, dir?:string, as?:string):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + updateItem(id:string, data:any):void; + validate(id?:string):boolean; + config: { [key: string]: any; }; + name: string; +} +var TreeCollection:TreeCollection; + +interface TreeDataLoader{ + loadBranch(id:string, callback:WebixCallback, url:string):void; +} +var TreeDataLoader:TreeDataLoader; + +interface TreeDataMove{ + copy(sid:string, tindex:number, tobj?:webix.ui.baseview, details?:any):string; + move(sid:string, tindex:number, tobj?:webix.ui.baseview, details?:any):string; + $dropAllow: WebixCallback; +} +var TreeDataMove:TreeDataMove; + +interface TreeRenderStack{ + getItemNode(id:string):void; + getItemNode(id:string):HTMLElement; +} +var TreeRenderStack:TreeRenderStack; + +interface TreeStateCheckbox{ + checkAll(id?:string):void; + checkItem(id:string):void; + getChecked():any[]; + isChecked(id:string):boolean; + uncheckAll(id?:string):void; + uncheckItem(id:string):void; +} +var TreeStateCheckbox:TreeStateCheckbox; + +interface TreeStore{ + add(obj:any, index:number, pid:string):string; + changeId(old:string, newid:string):void; + clearAll():void; + count():number; + each(code:WebixCallback, master:any, all:boolean, pid:string):void; + eachChild(pid:string, code:WebixCallback, master?:any, all?:boolean):void; + eachOpen(code:WebixCallback, master?:any, pid?:string):void; + eachSubItem(pid:string, code:WebixCallback):void; + getBranch(id:string):any[]; + getBranchIndex(id:string, parent?:string):number; + getFirstChildId(id:string):string; + getNextSiblingId(id:any):string; + getParentId(id:string):string; + getPrevSiblingId(id:any):string; + getTopRange():any[]; + isBranch(id:string):boolean; + provideApi(target:any, eventable:boolean):void; + remove(id:string):void; + serialize():any; + name: string; +} +var TreeStore:TreeStore; + +interface TreeTableClick{ + } +var TreeTableClick:TreeTableClick; + +interface TreeTablePaste{ + insert(data:any[]):void; +} +var TreeTablePaste:TreeTablePaste; + +interface TreeType{ + checkbox(obj:any, common:any):string; + folder(obj:any, common:any):string; + icon(obj:any, common:any):string; + space(obj:any, common:any):string; +} +var TreeType:TreeType; + +interface UIExtension{ + } +var UIExtension:UIExtension; + +interface UIManager{ + addHotKey(key:string, handler:WebixCallback, obj?:any):void; + canFocus(id:string):boolean; + destructor():void; + getFocus():webix.ui.baseview; + getNext(view:any):any; + getPrev(view:any):any; + getState(id:string, childs:boolean):any; + getTop(id:string):any; + hasFocus(id:string):boolean; + removeHotKey(key:string, handler?:WebixCallback, obj?:any):void; + setFocus(id:string):void; + setState(state:any):void; +} +var UIManager:UIManager; + +interface UploadDriver{ + flash: any; + html5: any; +} +var UploadDriver:UploadDriver; + +interface ValidateCollection{ + clearValidation():void; + validate(id?:string):boolean; +} +var ValidateCollection:ValidateCollection; + +interface ValidateData{ + clearValidation():void; + validate():boolean; +} +var ValidateData:ValidateData; + +interface ValueBind{ + } +var ValueBind:ValueBind; + +interface Values{ + clear():void; + focus(item:string):void; + getCleanValues():any; + getDirtyValues():any; + getValues(details?:any):any[]; + isDirty():boolean; + setDirty(mark?:boolean):void; + setValues(values:any, update?:boolean):void; +} +var Values:Values; + +interface VirtualRenderStack{ + getItemNode(id:string):void; + render(id:string, data:any, type:string):void; + showItem(id:string):void; +} +var VirtualRenderStack:VirtualRenderStack; + + +module ui { + + + +function delay(config:any):void; +function fullScreen():void; +function hasMethod(name:string, method_name:string):boolean; +function resize():void; +function zIndex():number; +var scrollSize: number; +var zIndexBase: number; + +interface baselayoutConfig{ + animate?: any; + borderless?: boolean; + cols?: any[]; + container?: HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + on?: any; + responsive?: string; + rows?: any[]; + visibleBatch?: string; + width?: number; +} +interface baselayout extends webix.ui.baseview{ + addView(view:any, index?:number):webix.ui.baseview; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + hasEvent(name:string):boolean; + hide():void; + index(obj:any):number; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + reconstruct():void; + removeView(id:string):void; + resize():void; + resizeChildren():void; + show(force?:boolean, animation?:boolean):void; + showBatch(name:string):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $height: number; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: baselayoutConfig; + name: string; +} +interface baseviewConfig{ + animate?: any; + borderless?: boolean; + container?: HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + width?: number; +} +interface baseview{ + adjust():void; + bind(target:any, rule?:WebixCallback, format?:string):void; + define(property:string, value:any):void; + destructor():void; + disable():void; + enable():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + hide():void; + isEnabled():boolean; + isVisible():boolean; + resize():void; + show(force?:boolean, animation?:boolean):void; + unbind():void; + $getSize():any[]; + $height: number; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: baseviewConfig; + name: string; +} +interface protoConfig{ + animate?: any; + borderless?: boolean; + click?: string|WebixCallback; + container?: HTMLElement; + css?: string; + data?: string|any[]; + dataFeed?: string|WebixCallback; + datathrottle?: number; + datatype?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + on?: any; + pager?: any; + ready?: WebixCallback; + removeMissed?: boolean; + rules?: any; + save?: string; + scheme?: any; + template?: string|WebixCallback; + tooltip?: any; + type?: any; + url?: string; + width?: number; +} +interface proto extends webix.ui.baseview{ + add(obj:any, index?:number):string; + addCss(id:string|number, css:string, silent?:boolean):void; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + clearAll():void; + clearCss(css:string, silent?:boolean):void; + clearValidation():void; + count():number; + customize(obj:any):void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + exists(id:string):boolean; + filter(text:string|WebixTemplate|WebixCallback, value:string, preserve:boolean):void; + getChildViews():any[]; + getFirstId():string; + getFormView():webix.ui.baseview; + getIdByIndex(index:number):string; + getIndexById(id:string):number; + getItem(id:string):any; + getItemNode(id:string):void; + getLastId():string; + getNextId(id:string, step:number):string; + getNode():any; + getPage():number; + getPager():any; + getParentView():any; + getPrevId(id:string, step:number):string; + getTopParentView():webix.ui.baseview; + hasCss(id:string, css:string):boolean; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + loadNext(count:number, start:number, callback:WebixCallback, url:string, now:boolean):void; + locate(e:Event):string; + mapEvent(map:any):void; + parse(data:any, type:string):void; + refresh(id?:string):void; + remove(id:string):void; + removeCss(id:string|number, css:string, silent?:boolean):void; + render(id:string, data:any, type:string):void; + resize():void; + serialize():any; + setPage(page:number):void; + show(force?:boolean, animation?:boolean):void; + showItem(id:string):void; + sort(by:string, dir?:string, as?:string):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + updateItem(id:string, data:any):void; + validate(id?:string):boolean; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: protoConfig; + name: string; + type: { [key: string]: any; }; + types: { [key: string]: any; }; +} +interface resizeareaConfig{ + border?: boolean; + container?: string|HTMLElement; + cursor?: string; + dir?: string; + eventPos?: number; + height?: number; + id?: string; + on?: any; + start?: number; + width?: number; +} +interface resizearea{ + attachEvent(type:string, functor:WebixCallback, id?:string):string; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + detachEvent(id:string):void; + hasEvent(name:string):boolean; + mapEvent(map:any):void; + unblockEvent():void; + config: resizeareaConfig; + name: string; +} +interface viewConfig{ + animate?: any; + borderless?: boolean; + container?: HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + width?: number; +} +interface view extends webix.ui.baseview{ + adjust():void; + bind(target:any, rule?:WebixCallback, format?:string):void; + define(property:string, value:any):void; + destructor():void; + disable():void; + enable():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + hide():void; + isEnabled():boolean; + isVisible():boolean; + resize():void; + show(force?:boolean, animation?:boolean):void; + unbind():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: viewConfig; + name: string; +} +interface vscrollConfig{ + container?: HTMLElement; + id?: string; + on?: any; + scroll?: string; + scrollHeight?: number; + scrollPos?: number; + scrollSize?: number; + scrollStep?: number; + scrollVisible?: boolean; + scrollWidth?: number; + zoom?: number; +} +interface vscroll extends webix.ui.baseview{ + activeArea(node:HTMLElement):void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + detachEvent(id:string):void; + getScroll():number; + getSize():number; + hasEvent(name:string):boolean; + mapEvent(map:any):void; + scrollTo(pos:number):void; + sizeTo(size:number):void; + unblockEvent():void; + config: vscrollConfig; + name: string; +} +interface accordionConfig{ + animate?: any; + borderless?: boolean; + collapsed?: boolean; + cols?: any[]; + container?: HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + isolate?: boolean; + margin?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + multi?: boolean|string; + on?: any; + padding?: number; + paddingX?: number; + paddingY?: number; + panelClass?: string; + responsive?: string; + rows?: any[]; + type?: string; + visibleBatch?: string; + width?: number; +} +interface accordion extends webix.ui.baseview{ + addView(view:any, index?:number):webix.ui.baseview; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + hasEvent(name:string):boolean; + hide():void; + index(obj:any):number; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + reconstruct():void; + removeView(id:string):void; + resize():void; + resizeChildren():void; + show(force?:boolean, animation?:boolean):void; + showBatch(name:string):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $height: number; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: accordionConfig; + name: string; +} +interface accordionitemConfig{ + animate?: any; + body?: string|webix.ui.baseview; + borderless?: boolean; + collapsed?: boolean; + container?: HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + header?: boolean|string|WebixCallback; + headerAlt?: string|WebixCallback; + headerAltHeight?: number; + headerHeight?: number; + height?: number; + hidden?: boolean; + id?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + mouseEventDelay?: number; + on?: any; + onClick?: { [key: string]: any; }; + onContext?: { [key: string]: any; }; + onDblClick?: WebixCallback; + onMouseMove?: WebixCallback; + width?: number; +} +interface accordionitem extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + collapse():void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + expand():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + refresh():void; + resize():void; + show(force?:boolean, animation?:boolean):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: accordionitemConfig; + name: string; + on_click: WebixCallback; + on_context: { [key: string]: any; }; + on_dblclick: WebixCallback; + on_mouse_move: WebixCallback; +} +interface barcodeConfig{ + animate?: any; + borderless?: boolean; + color?: string; + container?: HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + paddingX?: number; + paddingY?: number; + textHeight?: number; + type?: any; + value?: string; + width?: number; +} +interface barcode extends webix.ui.baseview{ + adjust():void; + bind(target:any, rule?:WebixCallback, format?:string):void; + define(property:string, value:any):void; + destructor():void; + disable():void; + enable():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + getValue():string; + hide():void; + isEnabled():boolean; + isVisible():boolean; + render():void; + resize():void; + setValue(value:string):void; + show(force?:boolean, animation?:boolean):void; + unbind():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: barcodeConfig; + name: string; + types: any[]; +} +interface buttonConfig{ + align?: string; + animate?: any; + borderless?: boolean; + click?: WebixCallback; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + hotkey?: string; + id?: string; + inputHeight?: number; + inputWidth?: number; + label?: string; + labelPosition?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + name?: string; + on?: any; + placeholder?: any; + popup?: any; + tabFocus?: boolean; + template?: string|WebixCallback; + tooltip?: string; + type?: string; + value?: string; + width?: number; +} +interface button extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + blur():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getInputNode():HTMLElement; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + getValue():string; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + refresh():void; + render(id:string, data:any, type:string):void; + resize():void; + setValue(value:string):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $getValue():string; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $setValue(value:string):void; + $skin: any; + $view: HTMLElement; + $width: number; + config: buttonConfig; + name: string; + on_click: WebixCallback; + touchable: any; +} +interface calendarConfig{ + animate?: any; + blockDates?: WebixCallback; + borderless?: boolean; + calendarHeader?: string; + calendarTime?: string; + calendarWeekHeader?: string; + cellHeight?: number; + container?: HTMLElement; + css?: string; + date?: any; + dayTemplate?: WebixCallback; + disabled?: boolean; + events?: WebixCallback; + gravity?: number; + headerHeight?: number; + height?: number; + hidden?: boolean; + icons?: any; + id?: string; + maxDate?: Date|string; + maxHeight?: number; + maxWidth?: number; + minDate?: Date|string; + minHeight?: number; + minWidth?: number; + minuteStep?: number; + monthSelect?: boolean; + mouseEventDelay?: number; + navigation?: boolean; + on?: any; + onClick?: { [key: string]: any; }; + onContext?: { [key: string]: any; }; + onDblClick?: WebixCallback; + onMouseMove?: WebixCallback; + select?: boolean; + skipEmptyWeeks?: boolean; + timepicker?: boolean; + timepickerHeight?: number; + type?: string; + weekHeader?: boolean; + weekNumber?: boolean; + width?: number; +} +interface calendar extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getNode():any; + getParentView():any; + getSelectedDate():any; + getTopParentView():webix.ui.baseview; + getValue():any; + getVisibleDate():any; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + locate(e:Event):string; + mapEvent(map:any):void; + refresh():void; + render(id:string, data:any, type:string):void; + resize():void; + selectDate(date:any):void; + setValue(date:any):void; + show(force?:boolean, animation?:boolean):void; + showCalendar(date:any):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: calendarConfig; + name: string; + on_click: WebixCallback; + on_context: { [key: string]: any; }; + on_dblclick: WebixCallback; + on_mouse_move: WebixCallback; +} +interface chartConfig{ + alpha?: number; + animate?: any; + barWidth?: number; + border?: boolean; + borderColor?: string; + borderless?: boolean; + cant?: number; + color?: string|WebixCallback; + container?: HTMLElement; + css?: string; + data?: string|any[]; + dataFeed?: string|WebixCallback; + datathrottle?: number; + datatype?: string; + disableLines?: boolean; + disabled?: boolean; + eventRadius?: number; + fill?: string; + fixOverflow?: boolean; + gradient?: boolean|string|WebixCallback; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + item?: any; + label?: string|WebixCallback; + labelOffset?: number; + legend?: any; + line?: any; + lineColor?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + mouseEventDelay?: number; + offset?: boolean; + on?: any; + onClick?: { [key: string]: any; }; + onContext?: { [key: string]: any; }; + onDblClick?: WebixCallback; + onMouseMove?: WebixCallback; + origin?: number; + padding?: any; + pieHeight?: number; + pieInnerText?: string|WebixCallback; + preset?: string; + radius?: number; + ready?: WebixCallback; + removeMissed?: boolean; + save?: string; + scale?: string; + scheme?: any; + series?: any[]; + shadow?: boolean; + tooltip?: any; + type?: string; + url?: string; + value?: string|WebixTemplate; + width?: number; + x?: number; + xAxis?: any; + xValue?: string; + y?: number; + yAxis?: any; + yValue?: string; +} +interface chart extends webix.ui.baseview{ + add(obj:any, index?:number):string; + addSeries(obj:any):void; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + clearAll():void; + clearCanvas():void; + count():number; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + exists(id:string):boolean; + filter(text:string|WebixTemplate|WebixCallback, value:string, preserve:boolean):void; + getChildViews():any[]; + getFirstId():string; + getFormView():webix.ui.baseview; + getIdByIndex(index:number):string; + getIndexById(id:string):number; + getItem(id:string):any; + getLastId():string; + getNextId(id:string, step:number):string; + getNode():any; + getParentView():any; + getPrevId(id:string, step:number):string; + getTopParentView():webix.ui.baseview; + group(config:any, mode:boolean):void; + hasEvent(name:string):boolean; + hide():void; + hideSeries(series:string):void; + isEnabled():boolean; + isVisible():boolean; + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + loadNext(count:number, start:number, callback:WebixCallback, url:string, now:boolean):void; + locate(e:Event):string; + mapEvent(map:any):void; + parse(data:any, type:string):void; + refresh(id?:string):void; + remove(id:string):void; + removeAllSeries():void; + render(id:string, data:any, type:string):void; + resize():void; + serialize():any; + show(force?:boolean, animation?:boolean):void; + showSeries(series:string):void; + sort(by:string, dir?:string, as?:string):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + ungroup(mode:boolean):void; + updateItem(id:string, data:any):void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + colormap: { [key: string]: any; }; + config: chartConfig; + name: string; + on_click: WebixCallback; + on_context: { [key: string]: any; }; + on_dblclick: WebixCallback; + on_mouse_move: WebixCallback; + presets: { [key: string]: any; }; +} +interface checkboxConfig{ + align?: string; + animate?: any; + attributes?: { [key: string]: any; }; + borderless?: boolean; + checkValue?: string; + click?: WebixCallback; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + customCheckbox?: boolean; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + hotkey?: string; + id?: string; + inputHeight?: number; + inputPadding?: number; + inputWidth?: number; + label?: string; + labelPosition?: string; + labelWidth?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + name?: string; + on?: any; + placeholder?: string; + popup?: any; + readonly?: boolean; + relatedAction?: string; + relatedView?: string; + required?: boolean; + suggest?: string|webix.ui.baseview; + tabFocus?: boolean; + template?: string|WebixCallback; + tooltip?: string; + type?: string; + uncheckValue?: string; + validate?: boolean; + validateEvent?: string; + value?: string; + width?: number; +} +interface checkbox extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + blur():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getInputNode():HTMLElement; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + getValue():string; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + refresh():void; + render(id:string, data:any, type:string):void; + resize():void; + setValue(value:string):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + toggle():void; + unbind():void; + unblockEvent():void; + validate():boolean; + $getSize():any[]; + $getValue():string; + $height: number; + $render: WebixCallback; + $renderIcon: WebixCallback; + $renderInput(obj:any, html:string, id:string):string; + $renderLabel(config:any, id:string):string; + $scope: any; + $setSize(x:number, y:number):boolean; + $setValue(value:string):void; + $skin: any; + $view: HTMLElement; + $width: number; + config: checkboxConfig; + name: string; + on_click: WebixCallback; + touchable: any; +} +interface carouselConfig{ + animate?: any; + borderless?: boolean; + cols?: any[]; + container?: HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + navigation?: any; + on?: any; + rows?: any[]; + scrollSpeed?: string; + type?: string; + width?: number; +} +interface carousel extends webix.ui.baseview{ + adjust():void; + adjustScroll(matrix:any):void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + getActiveId():string; + getActiveIndex():number; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getLayout():any; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + resize():void; + scrollTo(x:number, y:number):void; + setActive(id:string):void; + setActiveIndex(index:number):void; + show(force?:boolean, animation?:boolean):void; + showNext():void; + showPrev():void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: carouselConfig; + name: string; +} +interface colorboardConfig{ + animate?: any; + borderless?: boolean; + cols?: number; + container?: HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + maxHeight?: number; + maxLightness?: number; + maxWidth?: number; + minHeight?: number; + minLightness?: number; + minWidth?: number; + on?: any; + palette?: any[]; + rows?: number; + template?: WebixCallback; + value?: string; + width?: number; +} +interface colorboard extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + getValue():string; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + refresh():void; + render(id:string, data:any, type:string):void; + resize():void; + setValue(value:string):string; + show(force?:boolean, animation?:boolean):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: colorboardConfig; + name: string; +} +interface colorpickerConfig{ + align?: string; + animate?: any; + attributes?: { [key: string]: any; }; + borderless?: boolean; + click?: WebixCallback; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + disabled?: boolean; + editable?: boolean; + format?: string; + gravity?: number; + height?: number; + hidden?: boolean; + hotkey?: string; + icon?: string; + icons?: any; + id?: string; + inputHeight?: number; + inputPadding?: number; + inputWidth?: number; + label?: string; + labelPosition?: string; + labelWidth?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + name?: string; + on?: any; + placeholder?: string; + popup?: any; + readonly?: boolean; + relatedAction?: string; + relatedView?: string; + required?: boolean; + stringResult?: any; + suggest?: string|webix.ui.baseview; + tabFocus?: boolean; + template?: string|WebixCallback; + timeIcon?: string; + timepicker?: boolean; + tooltip?: string; + type?: string; + validate?: boolean; + validateEvent?: string; + value?: string; + width?: number; +} +interface colorpicker extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + blur():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getInputNode():HTMLElement; + getNode():any; + getParentView():any; + getPopup():webix.ui.baseview; + getText():void; + getTopParentView():webix.ui.baseview; + getValue():string; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + refresh():void; + render(id:string, data:any, type:string):void; + resize():void; + setValue(value:string):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + validate():boolean; + $getSize():any[]; + $getValue():string; + $height: number; + $render: WebixCallback; + $renderIcon: WebixCallback; + $renderInput(obj:any, html:string, id:string):string; + $renderLabel(config:any, id:string):string; + $scope: any; + $setSize(x:number, y:number):boolean; + $setValue(value:string):void; + $skin: any; + $view: HTMLElement; + $width: number; + config: colorpickerConfig; + name: string; + on_click: WebixCallback; + touchable: any; +} +interface comboConfig{ + align?: string; + animate?: any; + attributes?: { [key: string]: any; }; + borderless?: boolean; + click?: WebixCallback; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + hotkey?: string; + icon?: string; + id?: string; + inputHeight?: number; + inputPadding?: number; + inputWidth?: number; + label?: string; + labelPosition?: string; + labelWidth?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + name?: string; + on?: any; + options?: any; + placeholder?: string; + popup?: any; + popupWidth?: number; + readonly?: boolean; + relatedAction?: string; + relatedView?: string; + required?: boolean; + suggest?: string|webix.ui.baseview; + tabFocus?: boolean; + template?: string|WebixCallback; + text?: string; + tooltip?: string; + type?: string; + validate?: boolean; + validateEvent?: string; + value?: string; + width?: number; +} +interface combo extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + blur():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getInputNode():HTMLElement; + getNode():any; + getParentView():any; + getPopup():webix.ui.baseview; + getText():string; + getTopParentView():webix.ui.baseview; + getValue():string; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + refresh():void; + render(id:string, data:any, type:string):void; + resize():void; + setValue(value:string):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + validate():boolean; + $getSize():any[]; + $getValue():string; + $height: number; + $render: WebixCallback; + $renderIcon: WebixCallback; + $renderInput(obj:any, html:string, id:string):string; + $renderLabel(config:any, id:string):string; + $scope: any; + $setSize(x:number, y:number):boolean; + $setValue(value:string):void; + $skin: any; + $view: HTMLElement; + $width: number; + config: comboConfig; + name: string; + on_click: WebixCallback; + touchable: any; +} +interface contextConfig{ + animate?: any; + autofit?: boolean; + autofocus?: boolean; + body?: string|webix.ui.baseview; + borderless?: boolean; + container?: HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + head?: any; + headHeight?: number; + height?: number; + hidden?: boolean; + id?: string; + left?: number; + master?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + modal?: boolean; + move?: boolean; + on?: any; + padding?: any; + position?: string|WebixCallback; + relative?: string; + top?: number; + width?: number; + zIndex?: number; +} +interface context extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + attachTo(view:any):void; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + close():void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + getBody():any; + getChildViews():any[]; + getContext():any; + getFormView():webix.ui.baseview; + getHead():any; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + resize():void; + resizeChildren():void; + setPosition(x:number, y:number):void; + show(force?:boolean, animation?:boolean):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: contextConfig; + name: string; +} +interface contextmenuConfig{ + animate?: any; + autofit?: boolean; + autofocus?: boolean; + autoheight?: boolean; + autowidth?: boolean; + body?: string|webix.ui.baseview; + borderless?: boolean; + click?: string|WebixCallback; + clipboard?: boolean|string; + container?: HTMLElement; + css?: string; + data?: string|any[]; + dataFeed?: string|WebixCallback; + datathrottle?: number; + datatype?: string; + disabled?: boolean; + drag?: boolean|string; + dragscroll?: boolean|string; + externalData?: WebixCallback; + gravity?: number; + head?: any; + headHeight?: number; + height?: number; + hidden?: boolean; + id?: string; + layout?: string; + left?: number; + master?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + modal?: boolean; + mouseEventDelay?: number; + move?: boolean; + navigation?: boolean; + on?: any; + onClick?: { [key: string]: any; }; + onContext?: { [key: string]: any; }; + onDblClick?: WebixCallback; + onMouseMove?: WebixCallback; + padding?: any; + pager?: any; + position?: string|WebixCallback; + ready?: WebixCallback; + relative?: string; + removeMissed?: boolean; + rules?: any; + save?: string; + scheme?: any; + scroll?: boolean|string; + scrollSpeed?: string; + select?: boolean|string; + subMenuPos?: string; + submenu?: any; + template?: string|WebixCallback; + templateCopy?: WebixCallback; + tooltip?: any; + top?: number; + type?: any; + url?: string; + width?: number; + xCount?: number; + yCount?: number; + zIndex?: number; +} +interface contextmenu extends webix.ui.baseview{ + add(obj:any, index?:number):string; + addCss(id:string|number, css:string, silent?:boolean):void; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + attachTo(view:any):void; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + clearAll():void; + clearCss(css:string, silent?:boolean):void; + clearValidation():void; + close():void; + copy(sid:string, tindex:number, tobj?:any, details?:any):void; + count():number; + customize(obj:any):void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + disableItem(id:string):void; + enable():void; + enableItem(id:string):void; + exists(id:string):boolean; + filter(text:string|WebixTemplate|WebixCallback, value:string, preserve:boolean):void; + getBody():any; + getChildViews():any[]; + getContext():any; + getFirstId():string; + getFormView():webix.ui.baseview; + getHead():any; + getIdByIndex(index:number):string; + getIndexById(id:string):number; + getItem(id:string):any; + getItemNode(id:string):void; + getLastId():string; + getMenu(id:string|number):any; + getMenuItem(id:string):any; + getNextId(id:string, step:number):string; + getNode():any; + getPage():number; + getPager():any; + getParentView():any; + getPrevId(id:string, step:number):string; + getScrollState():any; + getSelectedId(as_array:boolean):string|any[]; + getSelectedItem(as_array?:boolean):any; + getSubMenu(id:string|number):any; + getTopMenu():any; + getTopParentView():webix.ui.baseview; + getVisibleCount():number; + hasCss(id:string, css:string):boolean; + hasEvent(name:string):boolean; + hide():void; + hideItem(id:string):void; + isEnabled():boolean; + isSelected(id:string):boolean; + isVisible():boolean; + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + loadNext(count:number, start:number, callback:WebixCallback, url:string, now:boolean):void; + locate(e:Event):string; + mapEvent(map:any):void; + move(sid:string, tindex:number, tobj?:any, details?:any):string; + moveBottom(id:string):void; + moveDown(id:string, step:number):void; + moveSelection(direction:string):void; + moveTop(id:string):void; + moveUp(id:string, step:number):void; + parse(data:any, type:string):void; + refresh(id?:string):void; + remove(id:string):void; + removeCss(id:string|number, css:string, silent?:boolean):void; + render(id:string, data:any, type:string):void; + resize():void; + resizeChildren():void; + scrollTo(x:number, y:number):void; + select(id:string|any[], preserve:boolean):void; + selectAll(from?:string, to?:string):void; + serialize():any; + setPage(page:number):void; + setPosition(x:number, y:number):void; + show(force?:boolean, animation?:boolean):void; + showItem(id:string):void; + sort(by:string, dir?:string, as?:string):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + unselect(id?:string):void; + unselectAll():void; + updateItem(id:string, data:any):void; + validate(id?:string):boolean; + $drag(source:HTMLElement, ev:Event):string; + $dragHTML: WebixCallback; + $dragIn(source:HTMLElement, target:HTMLElement, ev:Event):HTMLElement; + $dragMark(context:any, ev:Event):boolean; + $dragOut(source:HTMLElement, old_target:HTMLElement, new_target:HTMLElement, ev:Event):void; + $drop(source:HTMLElement, target:HTMLElement, ev:any):void; + $dropAllow: WebixCallback; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: contextmenuConfig; + name: string; + on_click: WebixCallback; + on_context: { [key: string]: any; }; + on_dblclick: WebixCallback; + on_mouse_move: WebixCallback; + type: { [key: string]: any; }; + types: { [key: string]: any; }; +} +interface counterConfig{ + align?: string; + animate?: any; + attributes?: { [key: string]: any; }; + borderless?: boolean; + click?: WebixCallback; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + hotkey?: string; + id?: string; + inputHeight?: number; + inputPadding?: number; + inputWidth?: number; + label?: string; + labelPosition?: string; + labelWidth?: number; + max?: number; + maxHeight?: number; + maxWidth?: number; + min?: number; + minHeight?: number; + minWidth?: number; + name?: string; + on?: any; + placeholder?: string; + popup?: any; + readonly?: boolean; + relatedAction?: string; + relatedView?: string; + required?: boolean; + step?: number; + suggest?: string|webix.ui.baseview; + tabFocus?: boolean; + template?: string|WebixCallback; + tooltip?: string; + type?: string; + validate?: boolean; + validateEvent?: string; + value?: string; + width?: number; +} +interface counter extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + blur():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getInputNode():HTMLElement; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + getValue():number; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + next(step?:number):void; + prev(step?:number):void; + refresh():void; + render(id:string, data:any, type:string):void; + resize():void; + setValue(value:number):void; + shift(value?:number):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + validate():boolean; + $getSize():any[]; + $getValue():string; + $height: number; + $render: WebixCallback; + $renderIcon: WebixCallback; + $renderInput(obj:any, html:string, id:string):string; + $renderLabel(config:any, id:string):string; + $scope: any; + $setSize(x:number, y:number):boolean; + $setValue(value:string):void; + $skin: any; + $view: HTMLElement; + $width: number; + config: counterConfig; + name: string; + on_click: WebixCallback; + touchable: any; +} +interface datatableConfig{ + animate?: any; + autoConfig?: boolean; + autoheight?: boolean; + autowidth?: boolean; + blockselect?: boolean; + borderless?: boolean; + checkboxRefresh?: boolean; + clipboard?: boolean|string; + columnWidth?: number; + columns?: any[]; + container?: HTMLElement; + css?: string; + data?: string|any[]; + dataFeed?: string|WebixCallback; + datafetch?: number; + datathrottle?: number; + datatype?: string; + delimiter?: any; + disabled?: boolean; + drag?: boolean|string; + dragColumn?: boolean|string; + dragscroll?: boolean|string; + editMath?: boolean; + editValue?: string; + editable?: boolean; + editaction?: string; + externalData?: WebixCallback; + filterMode?: any; + fixedRowHeight?: boolean; + footer?: boolean; + form?: string; + gravity?: number; + header?: boolean; + headerRowHeight?: number; + headermenu?: any; + height?: number; + hidden?: boolean; + hover?: string; + id?: string; + leftSplit?: number; + liveValidation?: boolean; + loadahead?: number; + math?: boolean; + maxHeight?: number; + maxWidth?: number; + minColumnHeight?: number; + minColumnWidth?: number; + minHeight?: number; + minWidth?: number; + mouseEventDelay?: number; + multiselect?: boolean; + navigation?: boolean; + on?: any; + onClick?: { [key: string]: any; }; + onContext?: { [key: string]: any; }; + onDblClick?: WebixCallback; + onMouseMove?: WebixCallback; + pager?: any; + prerender?: boolean; + ready?: WebixCallback; + removeMissed?: boolean; + resizeColumn?: boolean; + resizeRow?: boolean; + rightSplit?: number; + rowHeight?: number; + rowLineHeight?: number; + rules?: any; + save?: string; + scheme?: any; + scroll?: boolean; + scrollAlignY?: boolean; + scrollX?: boolean; + scrollY?: boolean; + select?: boolean|string; + spans?: any[]; + tooltip?: any; + type?: any; + url?: string; + width?: number; + yCount?: number; +} +interface datatable extends webix.ui.baseview{ + add(obj:any, index?:number):string; + addCellCss(id:string, name:string, css:string):void; + addCss(id:string|number, css:string, silent?:boolean):void; + addRowCss(id:string, css:string):void; + addSpan(id:any, column:string, width:number, height:number, value?:string, css?:string):void; + adjust():void; + adjustColumn(id:string|number, header?:string):void; + adjustRowHeight(columnId:string, silent:boolean):void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + clearAll():void; + clearCss(css:string, silent?:boolean):void; + clearSelection():void; + clearValidation():void; + collectValues(id:string):any[]; + columnId(index:number):string; + copy(sid:string, tindex:number, tobj?:any, details?:any):void; + count():number; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + eachColumn(handler:WebixCallback, all?:boolean):void; + eachRow(handler:WebixCallback, all?:boolean):void; + edit(id:any):void; + editCancel():void; + editCell(row:string, col:string, preserve?:boolean, show?:boolean):void; + editColumn(id:string):void; + editNext():boolean; + editRow(id:string):void; + editStop():void; + enable():void; + exists(id:string):boolean; + exportToExcel(url?:string):void; + exportToPDF(url?:string):void; + filter(text:string|WebixTemplate|WebixCallback, value:string, preserve:boolean):void; + filterByAll():void; + find(criterion:WebixCallback, first?:boolean):any; + focusEditor():void; + getChildViews():any[]; + getColumnConfig(id:string):any; + getColumnIndex(id:string):number; + getEditState():any; + getEditor(row?:any, column?:string|number):any; + getEditorValue():string; + getFilter(columnID:string):any; + getFirstId():string; + getFormView():webix.ui.baseview; + getHeaderContent(id:string):{ [key: string]: any; }; + getHeaderNode(columnId:string, rowIndex?:number):HTMLElement; + getIdByIndex(index:number):string; + getIndexById(id:string):number; + getItem(id:string):any; + getItemNode(id:string):void; + getLastId():string; + getNextId(id:string, step:number):string; + getNode():any; + getPage():number; + getPager():any; + getParentView():any; + getPrevId(id:string, step:number):string; + getScrollState():any; + getSelectedId(asArray?:boolean, asString?:boolean):any; + getSelectedItem(mode?:boolean):void; + getState():any; + getText(rowid:string, colid:string):string; + getTopParentView():webix.ui.baseview; + getVisibleCount():number; + group(config:any, mode:boolean):void; + hasCss(id:string, css:string):boolean; + hasEvent(name:string):boolean; + hide():void; + hideColumn(id:string):void; + hideOverlay():void; + isColumnVisible(id:string):boolean; + isEnabled():boolean; + isVisible():boolean; + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + loadNext(count:number, start:number, callback:WebixCallback, url:string, now:boolean):void; + locate(node:HTMLElement|Event):any; + mapCells(startrow:number, startcol:string, numrows:number, numcols:number, callback:WebixCallback):void; + mapEvent(map:any):void; + mapSelection(callback:WebixCallback):void; + markSorting(column_id:string, dir:string):void; + move(sid:string, tindex:number, tobj?:any, details?:any):string; + moveBottom(id:string):void; + moveColumn(id:string, index:number):void; + moveDown(id:string, step:number):void; + moveSelection(direction:string):void; + moveTop(id:string):void; + moveUp(id:string, step:number):void; + parse(data:any, type:string):void; + refresh(id?:string):void; + refreshColumns(config?:any[]):void; + refreshFilter(id:string):void; + refreshHeaderContent():void; + registerFilter(node:HTMLElement, config:any, obj:any):void; + remove(id:string):void; + removeCellCss(id:string, name:string, css_name:string):void; + removeCss(id:string|number, css:string, silent?:boolean):void; + removeRowCss(id:string, css_name:string):void; + removeSpan(id:string|number, column:string):void; + render(id:string, data:any, operation:string):void; + resize():void; + scrollTo(x:number, y:number):void; + select(row_id:string, preserve:boolean):void; + selectRange(row_id:any, end_row_id:any):void; + serialize():any; + setColumnWidth(id:string, width:number):void; + setPage(page:number):void; + setRowHeight(id:string, height:number):void; + setState(state:any):void; + show(force?:boolean, animation?:boolean):void; + showCell(row:string, column:string):void; + showColumn(id:string):void; + showColumnBatch(batch:string|number):void; + showItem(id:string):void; + showItemByIndex(index:number):void; + showOverlay(message:string):void; + sort(by:string, dir?:string, as?:string):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + ungroup(mode:boolean):void; + unselect(row_id:string):void; + updateItem(id:string, data:any):void; + validate(id?:string):boolean; + validateEditor(id?:string):boolean; + $drag(source:HTMLElement, ev:Event):string; + $dragHTML: WebixCallback; + $dragIn(source:HTMLElement, target:HTMLElement, ev:Event):HTMLElement; + $dragMark(context:any, ev:Event):boolean; + $dragOut(source:HTMLElement, old_target:HTMLElement, new_target:HTMLElement, ev:Event):void; + $drop(source:HTMLElement, target:HTMLElement, ev:any):void; + $dropAllow: WebixCallback; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: datatableConfig; + headerContent: any; + name: string; + on_click: WebixCallback; + on_context: { [key: string]: any; }; + on_dblclick: WebixCallback; + on_mouse_move: WebixCallback; + waitData: PromisedData; +} +interface dataviewConfig{ + animate?: any; + autoheight?: boolean; + borderless?: boolean; + click?: string|WebixCallback; + container?: HTMLElement; + css?: string; + data?: string|any[]; + dataFeed?: string|WebixCallback; + datafetch?: number; + datathrottle?: number; + datatype?: string; + disabled?: boolean; + drag?: boolean|string; + dragscroll?: boolean|string; + externalData?: WebixCallback; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + loadahead?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + mouseEventDelay?: number; + navigation?: boolean; + on?: any; + onClick?: { [key: string]: any; }; + onContext?: { [key: string]: any; }; + onDblClick?: WebixCallback; + onMouseMove?: WebixCallback; + pager?: any; + ready?: WebixCallback; + removeMissed?: boolean; + rules?: any; + save?: string; + scheme?: any; + scroll?: boolean|string; + scrollSpeed?: string; + select?: boolean|string; + template?: string|WebixCallback; + tooltip?: any; + type?: any; + url?: string; + width?: number; + xCount?: number; + yCount?: number; +} +interface dataview extends webix.ui.baseview{ + add(obj:any, index?:number):string; + addCss(id:string|number, css:string, silent?:boolean):void; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + clearAll():void; + clearCss(css:string, silent?:boolean):void; + clearValidation():void; + copy(sid:string, tindex:number, tobj?:any, details?:any):void; + count():number; + customize(obj:any):void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + exists(id:string):boolean; + filter(text:string|WebixTemplate|WebixCallback, value:string, preserve:boolean):void; + getChildViews():any[]; + getFirstId():string; + getFormView():webix.ui.baseview; + getIdByIndex(index:number):string; + getIndexById(id:string):number; + getItem(id:string):any; + getItemNode(id:string):void; + getLastId():string; + getNextId(id:string, step:number):string; + getNode():any; + getPage():number; + getPager():any; + getParentView():any; + getPrevId(id:string, step:number):string; + getScrollState():any; + getSelectedId(as_array:boolean):string|any[]; + getSelectedItem(as_array?:boolean):any; + getTopParentView():webix.ui.baseview; + hasCss(id:string, css:string):boolean; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isSelected(id:string):boolean; + isVisible():boolean; + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + loadNext(count:number, start:number, callback:WebixCallback, url:string, now:boolean):void; + locate(e:Event):string; + mapEvent(map:any):void; + move(sid:string, tindex:number, tobj?:any, details?:any):string; + moveBottom(id:string):void; + moveDown(id:string, step:number):void; + moveSelection(direction:string):void; + moveTop(id:string):void; + moveUp(id:string, step:number):void; + parse(data:any, type:string):void; + refresh(id?:string):void; + remove(id:string):void; + removeCss(id:string|number, css:string, silent?:boolean):void; + render(id:string, data:any, type:string):void; + resize():void; + scrollTo(x:number, y:number):void; + select(id:string|any[], preserve:boolean):void; + selectAll(from?:string, to?:string):void; + serialize():any; + setPage(page:number):void; + show(force?:boolean, animation?:boolean):void; + showItem(id:string):void; + sort(by:string, dir?:string, as?:string):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + unselect(id?:string):void; + unselectAll():void; + updateItem(id:string, data:any):void; + validate(id?:string):boolean; + $drag(source:HTMLElement, ev:Event):string; + $dragHTML: WebixCallback; + $dragIn(source:HTMLElement, target:HTMLElement, ev:Event):HTMLElement; + $dragMark(context:any, ev:Event):boolean; + $dragOut(source:HTMLElement, old_target:HTMLElement, new_target:HTMLElement, ev:Event):void; + $drop(source:HTMLElement, target:HTMLElement, ev:any):void; + $dropAllow: WebixCallback; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: dataviewConfig; + name: string; + on_click: WebixCallback; + on_context: { [key: string]: any; }; + on_dblclick: WebixCallback; + on_mouse_move: WebixCallback; + type: { [key: string]: any; }; + types: { [key: string]: any; }; + waitData: PromisedData; +} +interface datepickerConfig{ + align?: string; + animate?: any; + attributes?: { [key: string]: any; }; + borderless?: boolean; + click?: WebixCallback; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + disabled?: boolean; + editable?: boolean; + format?: string; + gravity?: number; + height?: number; + hidden?: boolean; + hotkey?: string; + icon?: string; + icons?: any; + id?: string; + inputHeight?: number; + inputPadding?: number; + inputWidth?: number; + label?: string; + labelPosition?: string; + labelWidth?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + name?: string; + on?: any; + placeholder?: string; + popup?: any; + readonly?: boolean; + relatedAction?: string; + relatedView?: string; + required?: boolean; + stringResult?: any; + suggest?: string|webix.ui.baseview; + tabFocus?: boolean; + template?: string|WebixCallback; + text?: string; + timeIcon?: string; + timepicker?: boolean; + tooltip?: string; + type?: string; + validate?: boolean; + validateEvent?: string; + value?: string; + width?: number; +} +interface datepicker extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + blur():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getInputNode():HTMLElement; + getNode():any; + getParentView():any; + getPopup():webix.ui.baseview; + getText():void; + getTopParentView():webix.ui.baseview; + getValue():string; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + refresh():void; + render(id:string, data:any, type:string):void; + resize():void; + setValue(value:string):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + validate():boolean; + $getSize():any[]; + $getValue():string; + $height: number; + $render: WebixCallback; + $renderIcon: WebixCallback; + $renderInput(obj:any, html:string, id:string):string; + $renderLabel(config:any, id:string):string; + $scope: any; + $setSize(x:number, y:number):boolean; + $setValue(value:string):void; + $skin: any; + $view: HTMLElement; + $width: number; + config: datepickerConfig; + name: string; + on_click: WebixCallback; + touchable: any; +} +interface fieldsetConfig{ + animate?: any; + body?: webix.ui.baseview; + borderless?: boolean; + container?: HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + label?: any; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + width?: number; +} +interface fieldset extends webix.ui.baseview{ + adjust():void; + bind(target:any, rule?:WebixCallback, format?:string):void; + define(property:string, value:any):void; + destructor():void; + disable():void; + enable():void; + getBody():any; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + hide():void; + isEnabled():boolean; + isVisible():boolean; + resize():void; + show(force?:boolean, animation?:boolean):void; + unbind():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: fieldsetConfig; + name: string; +} +interface formConfig{ + animate?: any; + autoheight?: boolean; + borderless?: boolean; + cols?: any[]; + container?: HTMLElement; + css?: string; + data?: string|any[]; + dataFeed?: string|WebixCallback; + datatype?: string; + disabled?: boolean; + elements?: any[]; + elementsConfig?: { [key: string]: any; }; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + isolate?: boolean; + margin?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + on?: any; + padding?: number; + paddingX?: number; + paddingY?: number; + responsive?: string; + rows?: any[]; + rules?: any; + scroll?: boolean|string; + scrollSpeed?: string; + type?: string; + url?: string; + visibleBatch?: string; + width?: number; +} +interface form extends webix.ui.baseview{ + addView(view:any, index?:number):webix.ui.baseview; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + clear():void; + clearValidation():void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus(item:string):void; + getChildViews():any[]; + getCleanValues():any; + getDirtyValues():any; + getFormView():webix.ui.baseview; + getNode():any; + getParentView():any; + getScrollState():any; + getTopParentView():webix.ui.baseview; + getValues(details?:any):any[]; + hasEvent(name:string):boolean; + hide():void; + index(obj:any):number; + isDirty():boolean; + isEnabled():boolean; + isVisible():boolean; + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + mapEvent(map:any):void; + parse(data:any, type:string):void; + reconstruct():void; + refresh():void; + removeView(id:string):void; + render(id:string, data:any, type:string):void; + resize():void; + resizeChildren():void; + scrollTo(x:number, y:number):void; + setDirty(mark?:boolean):void; + setValues(values:any, update?:boolean):void; + show(force?:boolean, animation?:boolean):void; + showBatch(name:string):void; + unbind():void; + unblockEvent():void; + validate():boolean; + $getSize():any[]; + $height: number; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: formConfig; + name: string; +} +interface grouplistConfig{ + animate?: any; + autoheight?: boolean; + autowidth?: boolean; + borderless?: boolean; + click?: string|WebixCallback; + clipboard?: boolean|string; + container?: HTMLElement; + css?: string; + data?: string|any[]; + dataFeed?: string|WebixCallback; + datathrottle?: number; + datatype?: string; + disabled?: boolean; + drag?: boolean|string; + dragscroll?: boolean|string; + externalData?: WebixCallback; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + layout?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + mouseEventDelay?: number; + navigation?: boolean; + on?: any; + onClick?: { [key: string]: any; }; + onContext?: { [key: string]: any; }; + onDblClick?: WebixCallback; + onMouseMove?: WebixCallback; + pager?: any; + ready?: WebixCallback; + removeMissed?: boolean; + rules?: any; + save?: string; + scheme?: any; + scroll?: boolean|string; + scrollSpeed?: string; + select?: boolean|string; + template?: string|WebixCallback; + templateBack?: string|WebixTemplate; + templateCopy?: WebixCallback; + templateGroup?: string|WebixTemplate; + templateItem?: string|WebixTemplate; + tooltip?: any; + type?: any; + url?: string; + width?: number; + xCount?: number; + yCount?: number; +} +interface grouplist extends webix.ui.baseview{ + add(obj:any, index?:number):string; + addCss(id:string|number, css:string, silent?:boolean):void; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + clearAll():void; + clearCss(css:string, silent?:boolean):void; + clearValidation():void; + copy(sid:string, tindex:number, tobj?:any, details?:any):void; + count():number; + customize(obj:any):void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + exists(id:string):boolean; + filter(text:string|WebixTemplate|WebixCallback, value:string, preserve:boolean):void; + getChildViews():any[]; + getFirstId():string; + getFormView():webix.ui.baseview; + getIdByIndex(index:number):string; + getIndexById(id:string):number; + getItem(id:string):any; + getItemNode(id:string):void; + getLastId():string; + getNextId(id:string, step:number):string; + getNode():any; + getOpenState():any; + getPage():number; + getPager():any; + getParentView():any; + getPrevId(id:string, step:number):string; + getScrollState():any; + getSelectedId(as_array:boolean):string|any[]; + getSelectedItem(as_array?:boolean):any; + getTopParentView():webix.ui.baseview; + getVisibleCount():number; + group(config:any, mode:boolean):void; + hasCss(id:string, css:string):boolean; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isSelected(id:string):boolean; + isVisible():boolean; + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + loadNext(count:number, start:number, callback:WebixCallback, url:string, now:boolean):void; + locate(e:Event):string; + mapEvent(map:any):void; + move(sid:string, tindex:number, tobj?:any, details?:any):string; + moveBottom(id:string):void; + moveDown(id:string, step:number):void; + moveSelection(direction:string):void; + moveTop(id:string):void; + moveUp(id:string, step:number):void; + parse(data:any, type:string):void; + refresh(id?:string):void; + remove(id:string):void; + removeCss(id:string|number, css:string, silent?:boolean):void; + render(id:string, data:any, type:string):void; + resize():void; + scrollTo(x:number, y:number):void; + select(id:string|any[], preserve:boolean):void; + selectAll(from?:string, to?:string):void; + serialize():any; + setPage(page:number):void; + show(force?:boolean, animation?:boolean):void; + showItem(id:string):void; + sort(by:string, dir?:string, as?:string):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + ungroup(mode:boolean):void; + unselect(id?:string):void; + unselectAll():void; + updateItem(id:string, data:any):void; + validate(id?:string):boolean; + $drag(source:HTMLElement, ev:Event):string; + $dragHTML: WebixCallback; + $dragIn(source:HTMLElement, target:HTMLElement, ev:Event):HTMLElement; + $dragMark(context:any, ev:Event):boolean; + $dragOut(source:HTMLElement, old_target:HTMLElement, new_target:HTMLElement, ev:Event):void; + $drop(source:HTMLElement, target:HTMLElement, ev:any):void; + $dropAllow: WebixCallback; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: grouplistConfig; + name: string; + on_click: WebixCallback; + on_context: { [key: string]: any; }; + on_dblclick: WebixCallback; + on_mouse_move: WebixCallback; + type: { [key: string]: any; }; + types: { [key: string]: any; }; +} +interface headerlayoutConfig{ + animate?: any; + borderless?: boolean; + collapsed?: boolean; + cols?: any[]; + container?: HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + isolate?: boolean; + margin?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + multi?: boolean|string; + on?: any; + padding?: number; + paddingX?: number; + paddingY?: number; + panelClass?: string; + responsive?: string; + rows?: any[]; + type?: string; + visibleBatch?: string; + width?: number; +} +interface headerlayout extends webix.ui.baseview{ + addView(view:any, index?:number):webix.ui.baseview; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + hasEvent(name:string):boolean; + hide():void; + index(obj:any):number; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + reconstruct():void; + removeView(id:string):void; + resize():void; + resizeChildren():void; + show(force?:boolean, animation?:boolean):void; + showBatch(name:string):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $height: number; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: headerlayoutConfig; + name: string; +} +interface htmlformConfig{ + animate?: any; + autoheight?: any; + borderless?: boolean; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + data?: string|any[]; + dataFeed?: string|WebixCallback; + datatype?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + on?: any; + onClick?: { [key: string]: any; }; + scroll?: boolean|string; + scrollSpeed?: string; + src?: string; + template?: string|WebixCallback; + type?: string; + url?: string; + width?: number; +} +interface htmlform extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + clear(all?:boolean):void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus(item:string):void; + getChildViews():any[]; + getCleanValues():any; + getDirtyValues():any; + getFormView():webix.ui.baseview; + getNode():any; + getParentView():any; + getScrollState():any; + getTopParentView():webix.ui.baseview; + getValues(details?:any):any[]; + hasEvent(name:string):boolean; + hide():void; + isDirty():boolean; + isEnabled():boolean; + isVisible():boolean; + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + mapEvent(map:any):void; + parse(data:any, type:string):void; + refresh():void; + render(id:string, data:any, type:string):void; + resize():void; + scrollTo(x:number, y:number):void; + setContent(node:any):void; + setDirty(mark?:boolean):void; + setHTML(html:string):void; + setValues(values:any, update?:boolean):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: htmlformConfig; + name: string; +} +interface iconConfig{ + align?: string; + animate?: any; + borderless?: boolean; + click?: WebixCallback; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + hotkey?: string; + id?: string; + inputHeight?: number; + inputWidth?: number; + label?: string; + labelPosition?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + name?: string; + on?: any; + placeholder?: any; + popup?: any; + tabFocus?: boolean; + template?: string|WebixCallback; + tooltip?: string; + type?: string; + value?: string; + width?: number; +} +interface icon extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + blur():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getInputNode():HTMLElement; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + getValue():string; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + refresh():void; + render(id:string, data:any, type:string):void; + resize():void; + setValue(value:string):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $getValue():string; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $setValue(value:string):void; + $skin: any; + $view: HTMLElement; + $width: number; + config: iconConfig; + name: string; + on_click: WebixCallback; + touchable: any; +} +interface iframeConfig{ + animate?: any; + borderless?: boolean; + container?: HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + on?: any; + src?: string; + width?: number; +} +interface iframe extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getIframe():HTMLElement; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + getWindow():HTMLElement; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + load(value:string):void; + mapEvent(map:any):void; + resize():void; + show(force?:boolean, animation?:boolean):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: iframeConfig; + name: string; +} +interface labelConfig{ + align?: string; + animate?: any; + borderless?: boolean; + click?: WebixCallback; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + hotkey?: string; + id?: string; + inputHeight?: number; + inputWidth?: number; + label?: string; + labelPosition?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + name?: string; + on?: any; + placeholder?: any; + popup?: any; + tabFocus?: boolean; + template?: string|WebixCallback; + tooltip?: string; + type?: string; + value?: string; + width?: number; +} +interface label extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + blur():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getInputNode():HTMLElement; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + getValue():string; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + refresh():void; + render(id:string, data:any, type:string):void; + resize():void; + setHTML(html:string):void; + setValue(value:string):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $getValue():string; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $setValue(value:string):void; + $skin: any; + $view: HTMLElement; + $width: number; + config: labelConfig; + name: string; + on_click: WebixCallback; + touchable: any; +} +interface layoutConfig{ + animate?: any; + borderless?: boolean; + cols?: any[]; + container?: HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + isolate?: boolean; + margin?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + on?: any; + padding?: number; + paddingX?: number; + paddingY?: number; + responsive?: string; + rows?: any[]; + type?: string; + visibleBatch?: string; + width?: number; +} +interface layout extends webix.ui.baseview{ + addView(view:any, index?:number):webix.ui.baseview; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + hasEvent(name:string):boolean; + hide():void; + index(obj:any):number; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + reconstruct():void; + removeView(id:string):void; + resize():void; + resizeChildren():void; + show(force?:boolean, animation?:boolean):void; + showBatch(name:string):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $height: number; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: layoutConfig; + name: string; +} +interface listConfig{ + animate?: any; + autoheight?: boolean; + autowidth?: boolean; + borderless?: boolean; + click?: string|WebixCallback; + clipboard?: boolean|string; + container?: HTMLElement; + css?: string; + data?: string|any[]; + dataFeed?: string|WebixCallback; + datathrottle?: number; + datatype?: string; + disabled?: boolean; + drag?: boolean|string; + dragscroll?: boolean|string; + externalData?: WebixCallback; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + layout?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + mouseEventDelay?: number; + navigation?: boolean; + on?: any; + onClick?: { [key: string]: any; }; + onContext?: { [key: string]: any; }; + onDblClick?: WebixCallback; + onMouseMove?: WebixCallback; + pager?: any; + ready?: WebixCallback; + removeMissed?: boolean; + rules?: any; + save?: string; + scheme?: any; + scroll?: boolean|string; + scrollSpeed?: string; + select?: boolean|string; + template?: string|WebixCallback; + templateCopy?: WebixCallback; + tooltip?: any; + type?: any; + url?: string; + width?: number; + xCount?: number; + yCount?: number; +} +interface list extends webix.ui.baseview{ + add(obj:any, index?:number):string; + addCss(id:string|number, css:string, silent?:boolean):void; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + clearAll():void; + clearCss(css:string, silent?:boolean):void; + clearValidation():void; + copy(sid:string, tindex:number, tobj?:any, details?:any):void; + count():number; + customize(obj:any):void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + exists(id:string):boolean; + filter(text:string|WebixTemplate|WebixCallback, value:string, preserve:boolean):void; + getChildViews():any[]; + getFirstId():string; + getFormView():webix.ui.baseview; + getIdByIndex(index:number):string; + getIndexById(id:string):number; + getItem(id:string):any; + getItemNode(id:string):void; + getLastId():string; + getNextId(id:string, step:number):string; + getNode():any; + getPage():number; + getPager():any; + getParentView():any; + getPrevId(id:string, step:number):string; + getScrollState():any; + getSelectedId(as_array:boolean):string|any[]; + getSelectedItem(as_array?:boolean):any; + getTopParentView():webix.ui.baseview; + getVisibleCount():number; + hasCss(id:string, css:string):boolean; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isSelected(id:string):boolean; + isVisible():boolean; + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + loadNext(count:number, start:number, callback:WebixCallback, url:string, now:boolean):void; + locate(e:Event):string; + mapEvent(map:any):void; + move(sid:string, tindex:number, tobj?:any, details?:any):string; + moveBottom(id:string):void; + moveDown(id:string, step:number):void; + moveSelection(direction:string):void; + moveTop(id:string):void; + moveUp(id:string, step:number):void; + parse(data:any, type:string):void; + refresh(id?:string):void; + remove(id:string):void; + removeCss(id:string|number, css:string, silent?:boolean):void; + render(id:string, data:any, type:string):void; + resize():void; + scrollTo(x:number, y:number):void; + select(id:string|any[], preserve:boolean):void; + selectAll(from?:string, to?:string):void; + serialize():any; + setPage(page:number):void; + show(force?:boolean, animation?:boolean):void; + showItem(id:string):void; + sort(by:string, dir?:string, as?:string):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + unselect(id?:string):void; + unselectAll():void; + updateItem(id:string, data:any):void; + validate(id?:string):boolean; + $drag(source:HTMLElement, ev:Event):string; + $dragHTML: WebixCallback; + $dragIn(source:HTMLElement, target:HTMLElement, ev:Event):HTMLElement; + $dragMark(context:any, ev:Event):boolean; + $dragOut(source:HTMLElement, old_target:HTMLElement, new_target:HTMLElement, ev:Event):void; + $drop(source:HTMLElement, target:HTMLElement, ev:any):void; + $dropAllow: WebixCallback; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: listConfig; + name: string; + on_click: WebixCallback; + on_context: { [key: string]: any; }; + on_dblclick: WebixCallback; + on_mouse_move: WebixCallback; + type: { [key: string]: any; }; + types: { [key: string]: any; }; +} +interface menuConfig{ + animate?: any; + autoheight?: boolean; + autowidth?: boolean; + borderless?: boolean; + click?: string|WebixCallback; + clipboard?: boolean|string; + container?: HTMLElement; + css?: string; + data?: string|any[]; + dataFeed?: string|WebixCallback; + datathrottle?: number; + datatype?: string; + disabled?: boolean; + drag?: boolean|string; + dragscroll?: boolean|string; + externalData?: WebixCallback; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + layout?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + mouseEventDelay?: number; + navigation?: boolean; + on?: any; + onClick?: { [key: string]: any; }; + onContext?: { [key: string]: any; }; + onDblClick?: WebixCallback; + onMouseMove?: WebixCallback; + pager?: any; + ready?: WebixCallback; + removeMissed?: boolean; + rules?: any; + save?: string; + scheme?: any; + scroll?: boolean|string; + scrollSpeed?: string; + select?: boolean|string; + subMenuPos?: string; + submenu?: any; + template?: string|WebixCallback; + templateCopy?: WebixCallback; + tooltip?: any; + type?: any; + url?: string; + width?: number; + xCount?: number; + yCount?: number; +} +interface menu extends webix.ui.baseview{ + add(obj:any, index?:number):string; + addCss(id:string|number, css:string, silent?:boolean):void; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + clearAll():void; + clearCss(css:string, silent?:boolean):void; + clearValidation():void; + copy(sid:string, tindex:number, tobj?:any, details?:any):void; + count():number; + customize(obj:any):void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + disableItem(id:string):void; + enable():void; + enableItem(id:string):void; + exists(id:string):boolean; + filter(text:string|WebixTemplate|WebixCallback, value:string, preserve:boolean):void; + getChildViews():any[]; + getFirstId():string; + getFormView():webix.ui.baseview; + getIdByIndex(index:number):string; + getIndexById(id:string):number; + getItem(id:string):any; + getItemNode(id:string):void; + getLastId():string; + getMenu(id:string|number):any; + getMenuItem(id:string):any; + getNextId(id:string, step:number):string; + getNode():any; + getPage():number; + getPager():any; + getParentView():any; + getPrevId(id:string, step:number):string; + getScrollState():any; + getSelectedId(as_array:boolean):string|any[]; + getSelectedItem(as_array?:boolean):any; + getSubMenu(id:string|number):any; + getTopMenu():any; + getTopParentView():webix.ui.baseview; + getVisibleCount():number; + hasCss(id:string, css:string):boolean; + hasEvent(name:string):boolean; + hide():void; + hideItem(id:string):void; + isEnabled():boolean; + isSelected(id:string):boolean; + isVisible():boolean; + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + loadNext(count:number, start:number, callback:WebixCallback, url:string, now:boolean):void; + locate(e:Event):string; + mapEvent(map:any):void; + move(sid:string, tindex:number, tobj?:any, details?:any):string; + moveBottom(id:string):void; + moveDown(id:string, step:number):void; + moveSelection(direction:string):void; + moveTop(id:string):void; + moveUp(id:string, step:number):void; + parse(data:any, type:string):void; + refresh(id?:string):void; + remove(id:string):void; + removeCss(id:string|number, css:string, silent?:boolean):void; + render(id:string, data:any, type:string):void; + resize():void; + scrollTo(x:number, y:number):void; + select(id:string|any[], preserve:boolean):void; + selectAll(from?:string, to?:string):void; + serialize():any; + setPage(page:number):void; + show(force?:boolean, animation?:boolean):void; + showItem(id:string):void; + sort(by:string, dir?:string, as?:string):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + unselect(id?:string):void; + unselectAll():void; + updateItem(id:string, data:any):void; + validate(id?:string):boolean; + $drag(source:HTMLElement, ev:Event):string; + $dragHTML: WebixCallback; + $dragIn(source:HTMLElement, target:HTMLElement, ev:Event):HTMLElement; + $dragMark(context:any, ev:Event):boolean; + $dragOut(source:HTMLElement, old_target:HTMLElement, new_target:HTMLElement, ev:Event):void; + $drop(source:HTMLElement, target:HTMLElement, ev:any):void; + $dropAllow: WebixCallback; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: menuConfig; + name: string; + on_click: WebixCallback; + on_context: { [key: string]: any; }; + on_dblclick: WebixCallback; + on_mouse_move: WebixCallback; + type: { [key: string]: any; }; + types: { [key: string]: any; }; +} +interface multiviewConfig{ + animate?: any; + borderless?: boolean; + cells?: any; + cols?: any[]; + container?: HTMLElement; + css?: string; + disabled?: boolean; + fitBiggest?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + on?: any; + responsive?: string; + rows?: any[]; + visibleBatch?: string; + width?: number; +} +interface multiview extends webix.ui.baseview{ + addView(view:any, index?:number):webix.ui.baseview; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + back(step:number):void; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + getActiveId():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + getValue():string; + hasEvent(name:string):boolean; + hide():void; + index(obj:any):number; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + reconstruct():void; + removeView(id:string):void; + resize():void; + resizeChildren():void; + setValue(toshow:string):void; + show(force?:boolean, animation?:boolean):void; + showBatch(name:string):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $height: number; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: multiviewConfig; + name: string; +} +interface organogramConfig{ + animate?: any; + autoheight?: boolean; + autowidth?: boolean; + borderless?: boolean; + click?: string|WebixCallback; + container?: HTMLElement; + css?: string; + data?: string|any[]; + dataFeed?: string|WebixCallback; + datathrottle?: number; + datatype?: string; + disabled?: boolean; + filterMode?: any; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + mouseEventDelay?: number; + on?: any; + onClick?: { [key: string]: any; }; + onContext?: { [key: string]: any; }; + onDblClick?: WebixCallback; + onMouseMove?: WebixCallback; + ready?: WebixCallback; + removeMissed?: boolean; + save?: string; + scheme?: any; + scroll?: boolean|string; + scrollSpeed?: string; + select?: boolean|string; + template?: string|WebixCallback; + threeState?: boolean; + tooltip?: any; + type?: any; + url?: string; + width?: number; +} +interface organogram extends webix.ui.baseview{ + add(obj:any, index?:number):string; + addCss(id:string|number, css:string, silent?:boolean):void; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + clearAll():void; + clearCss(css:string, silent?:boolean):void; + close(id:string):void; + closeAll():void; + count():number; + customize(obj:any):void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + exists(id:string):boolean; + filter(text:string|WebixTemplate|WebixCallback, value:string, preserve:boolean):void; + getBranchIndex(id:string, parent?:string):number; + getChildViews():any[]; + getFirstChildId(id:string):string; + getFirstId():string; + getFormView():webix.ui.baseview; + getIdByIndex(index:number):string; + getIndexById(id:string):number; + getItem(id:string):any; + getItemNode(id:string):void; + getLastId():string; + getNextId(id:string, step:number):string; + getNextSiblingId(id:any):string; + getNode():any; + getOpenItems():any[]; + getParentId(id:string):string; + getParentView():any; + getPrevId(id:string, step:number):string; + getPrevSiblingId(id:any):string; + getScrollState():any; + getSelectedId(as_array:boolean):string|any[]; + getSelectedItem(as_array?:boolean):any; + getState():any; + getTopParentView():webix.ui.baseview; + group(config:any, mode:boolean):void; + hasCss(id:string, css:string):boolean; + hasEvent(name:string):boolean; + hide():void; + isBranch(id:string):boolean; + isBranchOpen(id:string):boolean; + isEnabled():boolean; + isSelected(id:string):boolean; + isVisible():boolean; + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + loadBranch(id:string, callback:WebixCallback, url:string):void; + loadNext(count:number, start:number, callback:WebixCallback, url:string, now:boolean):void; + locate(e:Event):string; + mapEvent(map:any):void; + open(id:string):void; + openAll():void; + parse(data:any, type:string):void; + refresh(id?:string):void; + remove(id:string):void; + removeCss(id:string|number, css:string, silent?:boolean):void; + render(id:string, data:any, type:string):void; + resize():void; + scrollTo(x:number, y:number):void; + select(id:string|any[], preserve:boolean):void; + selectAll(from?:string, to?:string):void; + serialize():any; + setState(state:any):void; + show(force?:boolean, animation?:boolean):void; + showItem(id:string):void; + sort(by:string, dir?:string, as?:string):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + ungroup(mode:boolean):void; + unselect(id?:string):void; + unselectAll():void; + updateItem(id:string, data:any):void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: organogramConfig; + name: string; + on_click: WebixCallback; + on_context: { [key: string]: any; }; + on_dblclick: WebixCallback; + on_mouse_move: WebixCallback; + type: { [key: string]: any; }; + types: { [key: string]: any; }; +} +interface pagerConfig{ + animate?: any; + apiOnly?: any; + borderless?: boolean; + container?: HTMLElement; + content?: string|HTMLElement; + count?: number; + css?: string; + disabled?: boolean; + gravity?: number; + group?: number; + height?: number; + hidden?: boolean; + id?: string; + limit?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + mouseEventDelay?: number; + on?: any; + onClick?: { [key: string]: any; }; + onContext?: { [key: string]: any; }; + onDblClick?: WebixCallback; + onMouseMove?: WebixCallback; + page?: number; + size?: number; + template?: string|WebixCallback; + width?: number; +} +interface pager extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + clone(config:any):any; + customize(obj:any):void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + refresh(id?:string):void; + render(id:string, data:any, type:string):void; + resize():void; + select(page:number):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: pagerConfig; + name: string; + on_click: WebixCallback; + on_context: { [key: string]: any; }; + on_dblclick: WebixCallback; + on_mouse_move: WebixCallback; + type: { [key: string]: any; }; +} +interface popupConfig{ + animate?: any; + autofit?: boolean; + autofocus?: boolean; + body?: string|webix.ui.baseview; + borderless?: boolean; + container?: HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + head?: any; + headHeight?: number; + height?: number; + hidden?: boolean; + id?: string; + left?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + modal?: boolean; + move?: boolean; + on?: any; + padding?: any; + position?: string|WebixCallback; + relative?: string; + top?: number; + width?: number; + zIndex?: number; +} +interface popup extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + close():void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + getBody():any; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getHead():any; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + resize():void; + resizeChildren():void; + setPosition(x:number, y:number):void; + show(force?:boolean, animation?:boolean):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: popupConfig; + name: string; +} +interface propertyConfig{ + animate?: any; + autoheight?: boolean; + borderless?: boolean; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + data?: string|any[]; + dataFeed?: string|WebixCallback; + datatype?: string; + disabled?: boolean; + editValue?: string; + editable?: boolean; + editaction?: string; + elements?: any; + form?: string; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + mouseEventDelay?: number; + nameWidth?: number; + on?: any; + onClick?: { [key: string]: any; }; + onContext?: { [key: string]: any; }; + onDblClick?: WebixCallback; + onMouseMove?: WebixCallback; + scroll?: boolean|string; + scrollSpeed?: string; + template?: string|WebixCallback; + url?: string; + width?: number; +} +interface property extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + customize(obj:any):void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + edit(id:any):void; + editCancel():void; + editNext():boolean; + editStop():void; + enable():void; + focusEditor():void; + getChildViews():any[]; + getEditState():any; + getEditor(id?:string):any; + getEditorValue():string; + getFormView():webix.ui.baseview; + getItem(id:string):any; + getItemNode(id:string):void; + getNode():any; + getParentView():any; + getScrollState():any; + getTopParentView():webix.ui.baseview; + getValues():any[]; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + locate(e:Event):string; + mapEvent(map:any):void; + parse(data:any, type:string):void; + refresh(id?:string):void; + registerType(name:string, data:any):void; + render(id:string, data:any, type:string):void; + resize():void; + scrollTo(x:number, y:number):void; + setValues(values:any, update?:boolean):void; + show(force?:boolean, animation?:boolean):void; + showItem(id:string):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + updateItem():void; + validateEditor(id?:string):boolean; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: propertyConfig; + name: string; + on_click: WebixCallback; + on_context: { [key: string]: any; }; + on_dblclick: WebixCallback; + on_edit: { [key: string]: any; }; + on_mouse_move: WebixCallback; + on_render: { [key: string]: any; }; + type: { [key: string]: any; }; +} +interface radioConfig{ + align?: string; + animate?: any; + attributes?: { [key: string]: any; }; + borderless?: boolean; + click?: WebixCallback; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + customRadio?: boolean; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + hotkey?: string; + id?: string; + inputHeight?: number; + inputPadding?: number; + inputWidth?: number; + label?: string; + labelPosition?: string; + labelWidth?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + name?: string; + on?: any; + optionHeight?: number; + options?: any[]; + placeholder?: string; + popup?: any; + readonly?: boolean; + relatedAction?: string; + relatedView?: string; + required?: boolean; + suggest?: string|webix.ui.baseview; + tabFocus?: boolean; + template?: string|WebixCallback; + tooltip?: string; + type?: string; + validate?: boolean; + validateEvent?: string; + value?: string; + vertical?: boolean; + width?: number; +} +interface radio extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + blur():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getInputNode():HTMLElement; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + getValue():string; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + refresh():void; + render(id:string, data:any, type:string):void; + resize():void; + setValue(value:string):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + validate():boolean; + $getSize():any[]; + $getValue():string; + $height: number; + $render: WebixCallback; + $renderIcon: WebixCallback; + $renderInput(obj:any, html:string, id:string):string; + $renderLabel(config:any, id:string):string; + $scope: any; + $setSize(x:number, y:number):boolean; + $setValue(value:string):void; + $skin: any; + $view: HTMLElement; + $width: number; + config: radioConfig; + name: string; + on_click: WebixCallback; + touchable: any; +} +interface resizerConfig{ + animate?: any; + borderless?: boolean; + container?: HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + mouseEventDelay?: number; + onClick?: { [key: string]: any; }; + onContext?: { [key: string]: any; }; + onDblClick?: WebixCallback; + onMouseMove?: WebixCallback; + width?: number; +} +interface resizer extends webix.ui.baseview{ + adjust():void; + bind(target:any, rule?:WebixCallback, format?:string):void; + define(property:string, value:any):void; + destructor():void; + disable():void; + enable():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + hide():void; + isEnabled():boolean; + isVisible():boolean; + resize():void; + show(force?:boolean, animation?:boolean):void; + unbind():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: resizerConfig; + name: string; + on_click: WebixCallback; + on_context: { [key: string]: any; }; + on_dblclick: WebixCallback; + on_mouse_move: WebixCallback; +} +interface richselectConfig{ + align?: string; + animate?: any; + attributes?: { [key: string]: any; }; + borderless?: boolean; + click?: WebixCallback; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + hotkey?: string; + icon?: string; + id?: string; + inputHeight?: number; + inputPadding?: number; + inputWidth?: number; + label?: string; + labelPosition?: string; + labelWidth?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + name?: string; + on?: any; + options?: any; + placeholder?: string; + popup?: any; + popupWidth?: number; + readonly?: boolean; + relatedAction?: string; + relatedView?: string; + required?: boolean; + suggest?: string|webix.ui.baseview; + tabFocus?: boolean; + template?: string|WebixCallback; + text?: string; + tooltip?: string; + type?: string; + validate?: boolean; + validateEvent?: string; + value?: string; + width?: number; +} +interface richselect extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + blur():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getInputNode():HTMLElement; + getNode():any; + getParentView():any; + getPopup():webix.ui.baseview; + getText():string; + getTopParentView():webix.ui.baseview; + getValue():string; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + refresh():void; + render(id:string, data:any, type:string):void; + resize():void; + setValue(value:string):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + validate():boolean; + $getSize():any[]; + $getValue():string; + $height: number; + $render: WebixCallback; + $renderIcon: WebixCallback; + $renderInput(obj:any, html:string, id:string):string; + $renderLabel(config:any, id:string):string; + $scope: any; + $setSize(x:number, y:number):boolean; + $setValue(value:string):void; + $skin: any; + $view: HTMLElement; + $width: number; + config: richselectConfig; + name: string; + on_click: WebixCallback; + touchable: any; +} +interface multitextConfig{ + align?: string; + animate?: any; + attributes?: { [key: string]: any; }; + borderless?: boolean; + click?: WebixCallback; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + hotkey?: string; + icon?: string; + iconWidth?: string; + id?: string; + inputHeight?: number; + inputPadding?: number; + inputWidth?: number; + label?: string; + labelPosition?: string; + labelWidth?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + name?: string; + on?: any; + placeholder?: string; + popup?: any; + readonly?: boolean; + relatedAction?: string; + relatedView?: string; + required?: boolean; + separator?: string; + suggest?: string|webix.ui.baseview; + tabFocus?: boolean; + template?: string|WebixCallback; + tooltip?: string; + type?: string; + validate?: boolean; + validateEvent?: string; + value?: string; + width?: number; +} +interface multitext extends webix.ui.baseview{ + addSection():string|number; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + blur():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getInputNode():HTMLElement; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + getValue():string; + getValueHere():string; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + refresh():void; + removeSection(id?:string|number):void; + render(id:string, data:any, type:string):void; + resize():void; + setValue(value:string):void; + setValueHere(value:string|number):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + validate():boolean; + $cssName: string; + $getSize():any[]; + $getValue():string; + $height: number; + $render: WebixCallback; + $renderIcon: WebixCallback; + $renderInput(obj:any, html:string, id:string):string; + $renderLabel(config:any, id:string):string; + $scope: any; + $setSize(x:number, y:number):boolean; + $setValue(value:string):void; + $skin: any; + $view: HTMLElement; + $width: number; + config: multitextConfig; + name: string; + on_click: WebixCallback; + touchable: any; +} +interface multiselectConfig{ + align?: string; + animate?: any; + attributes?: { [key: string]: any; }; + borderless?: boolean; + click?: WebixCallback; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + hotkey?: string; + icon?: string; + id?: string; + inputHeight?: number; + inputPadding?: number; + inputWidth?: number; + label?: string; + labelPosition?: string; + labelWidth?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + name?: string; + on?: any; + optionWidth?: number; + options?: any; + placeholder?: string; + popup?: any; + popupWidth?: number; + readonly?: boolean; + relatedAction?: string; + relatedView?: string; + required?: boolean; + separator?: string; + suggest?: string|webix.ui.baseview; + tabFocus?: boolean; + template?: string|WebixCallback; + text?: string; + tooltip?: string; + type?: string; + validate?: boolean; + validateEvent?: string; + value?: string; + width?: number; +} +interface multiselect extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + blur():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getInputNode():HTMLElement; + getNode():any; + getParentView():any; + getPopup():webix.ui.baseview; + getText():string; + getTopParentView():webix.ui.baseview; + getValue():string; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + refresh():void; + render(id:string, data:any, type:string):void; + resize():void; + setValue(value:string):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + validate():boolean; + $cssName: string; + $getSize():any[]; + $getValue():string; + $height: number; + $render: WebixCallback; + $renderIcon: WebixCallback; + $renderInput(obj:any, html:string, id:string):string; + $renderLabel(config:any, id:string):string; + $scope: any; + $setSize(x:number, y:number):boolean; + $setValue(value:string):void; + $skin: any; + $view: HTMLElement; + $width: number; + config: multiselectConfig; + name: string; + on_click: WebixCallback; + touchable: any; +} +interface scrollviewConfig{ + animate?: any; + body?: any; + borderless?: boolean; + container?: HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + scroll?: boolean|string; + scrollSpeed?: string; + width?: number; +} +interface scrollview extends webix.ui.baseview{ + adjust():void; + bind(target:any, rule?:WebixCallback, format?:string):void; + define(property:string, value:any):void; + destructor():void; + disable():void; + enable():void; + getBody():any; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getNode():any; + getParentView():any; + getScrollState():any; + getTopParentView():webix.ui.baseview; + hide():void; + isEnabled():boolean; + isVisible():boolean; + resize():void; + resizeChildren():void; + scrollTo(x:number, y:number):void; + show(force?:boolean, animation?:boolean):void; + showView(id:string):void; + unbind():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: scrollviewConfig; + name: string; +} +interface searchConfig{ + align?: string; + animate?: any; + attributes?: { [key: string]: any; }; + borderless?: boolean; + click?: WebixCallback; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + hotkey?: string; + icon?: string; + id?: string; + inputHeight?: number; + inputPadding?: number; + inputWidth?: number; + label?: string; + labelPosition?: string; + labelWidth?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + name?: string; + on?: any; + placeholder?: string; + popup?: any; + readonly?: boolean; + relatedAction?: string; + relatedView?: string; + required?: boolean; + suggest?: string|webix.ui.baseview; + tabFocus?: boolean; + template?: string|WebixCallback; + tooltip?: string; + type?: string; + validate?: boolean; + validateEvent?: string; + value?: string; + width?: number; +} +interface search extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + blur():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getInputNode():HTMLElement; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + getValue():string; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + refresh():void; + render(id:string, data:any, type:string):void; + resize():void; + setValue(value:string):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + validate():boolean; + $getSize():any[]; + $getValue():string; + $height: number; + $render: WebixCallback; + $renderIcon: WebixCallback; + $renderInput(obj:any, html:string, id:string):string; + $renderLabel(config:any, id:string):string; + $scope: any; + $setSize(x:number, y:number):boolean; + $setValue(value:string):void; + $skin: any; + $view: HTMLElement; + $width: number; + config: searchConfig; + name: string; + on_click: WebixCallback; + touchable: any; +} +interface segmentedConfig{ + align?: string; + animate?: any; + attributes?: { [key: string]: any; }; + borderless?: boolean; + click?: WebixCallback; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + hotkey?: string; + id?: string; + inputHeight?: number; + inputPadding?: number; + inputWidth?: number; + label?: string; + labelPosition?: string; + labelWidth?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + multiview?: boolean; + name?: string; + on?: any; + options?: any; + placeholder?: string; + popup?: any; + readonly?: boolean; + relatedAction?: string; + relatedView?: string; + required?: boolean; + suggest?: string|webix.ui.baseview; + tabFocus?: boolean; + template?: string|WebixCallback; + tooltip?: string; + type?: string; + validate?: boolean; + validateEvent?: string; + value?: string; + width?: number; +} +interface segmented extends webix.ui.baseview{ + addOption(id:string, value:any, show?:boolean, index?:number):void; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + blur():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getInputNode():HTMLElement; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + getValue():string; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + optionIndex(ID:string):number; + refresh():void; + removeOption(id:string):void; + render(id:string, data:any, type:string):void; + resize():void; + setValue(value:string):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + validate():boolean; + $getSize():any[]; + $getValue():string; + $height: number; + $render: WebixCallback; + $renderIcon: WebixCallback; + $renderInput(obj:any, html:string, id:string):string; + $renderLabel(config:any, id:string):string; + $scope: any; + $setSize(x:number, y:number):boolean; + $setValue(value:string):void; + $skin: any; + $view: HTMLElement; + $width: number; + config: segmentedConfig; + name: string; + on_click: WebixCallback; + touchable: any; +} +interface selectConfig{ + align?: string; + animate?: any; + attributes?: { [key: string]: any; }; + borderless?: boolean; + click?: WebixCallback; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + hotkey?: string; + id?: string; + inputHeight?: number; + inputPadding?: number; + inputWidth?: number; + label?: string; + labelPosition?: string; + labelWidth?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + name?: string; + on?: any; + options?: any[]|string; + placeholder?: string; + popup?: any; + readonly?: boolean; + relatedAction?: string; + relatedView?: string; + required?: boolean; + suggest?: string|webix.ui.baseview; + tabFocus?: boolean; + template?: string|WebixCallback; + tooltip?: string; + type?: string; + validate?: boolean; + validateEvent?: string; + value?: string; + width?: number; +} +interface select extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + blur():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getInputNode():HTMLElement; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + getValue():string; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + refresh():void; + render(id:string, data:any, type:string):void; + resize():void; + setValue(value:string):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + validate():boolean; + $getSize():any[]; + $getValue():string; + $height: number; + $render: WebixCallback; + $renderIcon: WebixCallback; + $renderInput(obj:any, html:string, id:string):string; + $renderLabel(config:any, id:string):string; + $scope: any; + $setSize(x:number, y:number):boolean; + $setValue(value:string):void; + $skin: any; + $view: HTMLElement; + $width: number; + config: selectConfig; + name: string; + on_click: WebixCallback; + touchable: any; +} +interface sliderConfig{ + align?: string; + animate?: any; + attributes?: { [key: string]: any; }; + borderless?: boolean; + click?: WebixCallback; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + hotkey?: string; + id?: string; + inputHeight?: number; + inputPadding?: number; + inputWidth?: number; + label?: string; + labelPosition?: string; + labelWidth?: number; + max?: any; + maxHeight?: number; + maxWidth?: number; + min?: number; + minHeight?: number; + minWidth?: number; + name?: string; + on?: any; + placeholder?: string; + popup?: any; + readonly?: boolean; + relatedAction?: string; + relatedView?: string; + required?: boolean; + step?: number; + suggest?: string|webix.ui.baseview; + tabFocus?: boolean; + template?: string|WebixCallback; + title?: string|WebixCallback; + tooltip?: string; + type?: string; + validate?: boolean; + validateEvent?: string; + value?: string; + width?: number; +} +interface slider extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + blur():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getInputNode():HTMLElement; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + getValue():string; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + refresh():void; + render(id:string, data:any, type:string):void; + resize():void; + setValue(value:string):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + validate():boolean; + $getSize():any[]; + $getValue():string; + $height: number; + $render: WebixCallback; + $renderIcon: WebixCallback; + $renderInput(obj:any, html:string, id:string):string; + $renderLabel(config:any, id:string):string; + $scope: any; + $setSize(x:number, y:number):boolean; + $setValue(value:string):void; + $skin: any; + $touchCapture: any; + $view: HTMLElement; + $width: number; + config: sliderConfig; + name: string; + on_click: WebixCallback; + touchable: any; +} +interface spacerConfig{ + animate?: any; + borderless?: boolean; + container?: HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + width?: number; +} +interface spacer extends webix.ui.baseview{ + adjust():void; + bind(target:any, rule?:WebixCallback, format?:string):void; + define(property:string, value:any):void; + destructor():void; + disable():void; + enable():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + hide():void; + isEnabled():boolean; + isVisible():boolean; + resize():void; + show(force?:boolean, animation?:boolean):void; + unbind():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: spacerConfig; + name: string; +} +interface submenuConfig{ + animate?: any; + autofit?: boolean; + autofocus?: boolean; + autoheight?: boolean; + autowidth?: boolean; + body?: string|webix.ui.baseview; + borderless?: boolean; + click?: string|WebixCallback; + clipboard?: boolean|string; + container?: HTMLElement; + css?: string; + data?: string|any[]; + dataFeed?: string|WebixCallback; + datathrottle?: number; + datatype?: string; + disabled?: boolean; + drag?: boolean|string; + dragscroll?: boolean|string; + externalData?: WebixCallback; + gravity?: number; + head?: any; + headHeight?: number; + height?: number; + hidden?: boolean; + id?: string; + layout?: string; + left?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + modal?: boolean; + mouseEventDelay?: number; + move?: boolean; + navigation?: boolean; + on?: any; + onClick?: { [key: string]: any; }; + onContext?: { [key: string]: any; }; + onDblClick?: WebixCallback; + onMouseMove?: WebixCallback; + padding?: any; + pager?: any; + position?: string|WebixCallback; + ready?: WebixCallback; + relative?: string; + removeMissed?: boolean; + rules?: any; + save?: string; + scheme?: any; + scroll?: boolean|string; + scrollSpeed?: string; + select?: boolean|string; + subMenuPos?: string; + submenu?: any; + template?: string|WebixCallback; + templateCopy?: WebixCallback; + tooltip?: any; + top?: number; + type?: any; + url?: string; + width?: number; + xCount?: number; + yCount?: number; + zIndex?: number; +} +interface submenu extends webix.ui.baseview{ + add(obj:any, index?:number):string; + addCss(id:string|number, css:string, silent?:boolean):void; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + clearAll():void; + clearCss(css:string, silent?:boolean):void; + clearValidation():void; + close():void; + copy(sid:string, tindex:number, tobj?:any, details?:any):void; + count():number; + customize(obj:any):void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + disableItem(id:string):void; + enable():void; + enableItem(id:string):void; + exists(id:string):boolean; + filter(text:string|WebixTemplate|WebixCallback, value:string, preserve:boolean):void; + getBody():any; + getChildViews():any[]; + getFirstId():string; + getFormView():webix.ui.baseview; + getHead():any; + getIdByIndex(index:number):string; + getIndexById(id:string):number; + getItem(id:string):any; + getItemNode(id:string):void; + getLastId():string; + getMenu(id:string|number):any; + getMenuItem(id:string):any; + getNextId(id:string, step:number):string; + getNode():any; + getPage():number; + getPager():any; + getParentView():any; + getPrevId(id:string, step:number):string; + getScrollState():any; + getSelectedId(as_array:boolean):string|any[]; + getSelectedItem(as_array?:boolean):any; + getSubMenu(id:string|number):any; + getTopMenu():any; + getTopParentView():webix.ui.baseview; + getVisibleCount():number; + hasCss(id:string, css:string):boolean; + hasEvent(name:string):boolean; + hide():void; + hideItem(id:string):void; + isEnabled():boolean; + isSelected(id:string):boolean; + isVisible():boolean; + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + loadNext(count:number, start:number, callback:WebixCallback, url:string, now:boolean):void; + locate(e:Event):string; + mapEvent(map:any):void; + move(sid:string, tindex:number, tobj?:any, details?:any):string; + moveBottom(id:string):void; + moveDown(id:string, step:number):void; + moveSelection(direction:string):void; + moveTop(id:string):void; + moveUp(id:string, step:number):void; + parse(data:any, type:string):void; + refresh(id?:string):void; + remove(id:string):void; + removeCss(id:string|number, css:string, silent?:boolean):void; + render(id:string, data:any, type:string):void; + resize():void; + resizeChildren():void; + scrollTo(x:number, y:number):void; + select(id:string|any[], preserve:boolean):void; + selectAll(from?:string, to?:string):void; + serialize():any; + setPage(page:number):void; + setPosition(x:number, y:number):void; + show(force?:boolean, animation?:boolean):void; + showItem(id:string):void; + sort(by:string, dir?:string, as?:string):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + unselect(id?:string):void; + unselectAll():void; + updateItem(id:string, data:any):void; + validate(id?:string):boolean; + $drag(source:HTMLElement, ev:Event):string; + $dragHTML: WebixCallback; + $dragIn(source:HTMLElement, target:HTMLElement, ev:Event):HTMLElement; + $dragMark(context:any, ev:Event):boolean; + $dragOut(source:HTMLElement, old_target:HTMLElement, new_target:HTMLElement, ev:Event):void; + $drop(source:HTMLElement, target:HTMLElement, ev:any):void; + $dropAllow: WebixCallback; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: submenuConfig; + name: string; + on_click: WebixCallback; + on_context: { [key: string]: any; }; + on_dblclick: WebixCallback; + on_mouse_move: WebixCallback; + type: { [key: string]: any; }; + types: { [key: string]: any; }; +} +interface suggestConfig{ + animate?: any; + autofit?: boolean; + autofocus?: boolean; + body?: string|webix.ui.baseview; + borderless?: boolean; + container?: HTMLElement; + css?: string; + disabled?: boolean; + filter?: WebixCallback; + fitMaster?: boolean; + gravity?: number; + head?: any; + headHeight?: number; + height?: number; + hidden?: boolean; + id?: string; + input?: any; + keyPressTimeout?: number; + left?: number; + master?: webix.ui.baseview; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + modal?: boolean; + move?: boolean; + on?: any; + padding?: any; + position?: string|WebixCallback; + relative?: string; + template?: string|WebixTemplate; + textValue?: string; + top?: number; + type?: string; + width?: number; + zIndex?: number; +} +interface suggest extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + close():void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + getBody():any; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getHead():any; + getItemText(id:string):string; + getList():webix.ui.baseview; + getMasterValue():any; + getNode():any; + getParentView():any; + getSuggestion():string; + getTopParentView():webix.ui.baseview; + getValue():string|number; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + linkInput(input:HTMLElement):void; + mapEvent(map:any):void; + resize():void; + resizeChildren():void; + setMasterValue(value:any):void; + setPosition(x:number, y:number):void; + setValue(value:string|number):void; + show(force?:boolean, animation?:boolean):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: suggestConfig; + name: string; +} +interface multisuggestConfig{ + animate?: any; + autofit?: boolean; + autofocus?: boolean; + body?: string|webix.ui.baseview; + borderless?: boolean; + buttonText?: string; + container?: HTMLElement; + css?: string; + disabled?: boolean; + filter?: WebixCallback; + fitMaster?: boolean; + gravity?: number; + head?: any; + headHeight?: number; + height?: number; + hidden?: boolean; + id?: string; + input?: any; + keyPressTimeout?: number; + left?: number; + master?: webix.ui.baseview; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + modal?: boolean; + move?: boolean; + on?: any; + padding?: any; + position?: string|WebixCallback; + relative?: string; + separator?: string; + template?: string|WebixTemplate; + textValue?: string; + top?: number; + type?: string; + width?: number; + zIndex?: number; +} +interface multisuggest extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + close():void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + getBody():any; + getButton():webix.ui.baseview; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getHead():any; + getItemText(id:string):string; + getList():webix.ui.baseview; + getMasterValue():any; + getNode():any; + getParentView():any; + getSuggestion():string; + getTopParentView():webix.ui.baseview; + getValue():string|number; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + linkInput(input:HTMLElement):void; + mapEvent(map:any):void; + resize():void; + resizeChildren():void; + setMasterValue(value:any):void; + setPosition(x:number, y:number):void; + setValue(value:string|number):void; + show(force?:boolean, animation?:boolean):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: multisuggestConfig; + name: string; +} +interface datasuggestConfig{ + animate?: any; + autofit?: boolean; + autofocus?: boolean; + body?: string|webix.ui.baseview; + borderless?: boolean; + container?: HTMLElement; + css?: string; + disabled?: boolean; + filter?: WebixCallback; + fitMaster?: boolean; + gravity?: number; + head?: any; + headHeight?: number; + height?: number; + hidden?: boolean; + id?: string; + input?: any; + keyPressTimeout?: number; + left?: number; + master?: webix.ui.baseview; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + modal?: boolean; + move?: boolean; + on?: any; + padding?: any; + position?: string|WebixCallback; + relative?: string; + template?: string|WebixTemplate; + textValue?: string; + top?: number; + type?: string; + width?: number; + zIndex?: number; +} +interface datasuggest extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + close():void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + getBody():any; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getHead():any; + getItemText(id:string):string; + getList():webix.ui.baseview; + getMasterValue():any; + getNode():any; + getParentView():any; + getSuggestion():string; + getTopParentView():webix.ui.baseview; + getValue():string|number; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + linkInput(input:HTMLElement):void; + mapEvent(map:any):void; + resize():void; + resizeChildren():void; + setMasterValue(value:any):void; + setPosition(x:number, y:number):void; + setValue(value:string|number):void; + show(force?:boolean, animation?:boolean):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: datasuggestConfig; + name: string; +} +interface gridsuggestConfig{ + animate?: any; + autofit?: boolean; + autofocus?: boolean; + body?: string|webix.ui.baseview; + borderless?: boolean; + container?: HTMLElement; + css?: string; + disabled?: boolean; + filter?: WebixCallback; + fitMaster?: boolean; + gravity?: number; + head?: any; + headHeight?: number; + height?: number; + hidden?: boolean; + id?: string; + input?: any; + keyPressTimeout?: number; + left?: number; + master?: webix.ui.baseview; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + modal?: boolean; + move?: boolean; + on?: any; + padding?: any; + position?: string|WebixCallback; + relative?: string; + template?: string|WebixTemplate; + textValue?: string; + top?: number; + type?: string; + width?: number; + zIndex?: number; +} +interface gridsuggest extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + close():void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + getBody():any; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getHead():any; + getItemText(id:string):string; + getList():webix.ui.baseview; + getMasterValue():any; + getNode():any; + getParentView():any; + getSuggestion():string; + getTopParentView():webix.ui.baseview; + getValue():string|number; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + linkInput(input:HTMLElement):void; + mapEvent(map:any):void; + resize():void; + resizeChildren():void; + setMasterValue(value:any):void; + setPosition(x:number, y:number):void; + setValue(value:string|number):void; + show(force?:boolean, animation?:boolean):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: gridsuggestConfig; + name: string; +} +interface tabbarConfig{ + align?: string; + animate?: any; + attributes?: { [key: string]: any; }; + borderless?: boolean; + bottomOffset?: number; + click?: WebixCallback; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + hotkey?: string; + id?: string; + inputHeight?: number; + inputPadding?: number; + inputWidth?: number; + label?: string; + labelPosition?: string; + labelWidth?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + moreTemplate?: WebixCallback; + multiview?: boolean; + name?: string; + on?: any; + options?: any; + placeholder?: string; + popup?: any; + popupTemplate?: WebixCallback; + popupWidth?: number; + readonly?: boolean; + relatedAction?: string; + relatedView?: string; + required?: boolean; + suggest?: string|webix.ui.baseview; + tabFocus?: boolean; + tabMargin?: number; + tabMinWidth?: number; + tabMoreWidth?: number; + tabOffset?: number; + tabbarPopup?: webix.ui.baseview; + template?: string|WebixCallback; + tooltip?: string; + topOffset?: number; + type?: string; + validate?: boolean; + validateEvent?: string; + value?: string; + width?: number; + yCount?: number; +} +interface tabbar extends webix.ui.baseview{ + addOption(id:string, value:any, show?:boolean, index?:number):void; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + blur():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getInputNode():HTMLElement; + getNode():any; + getParentView():any; + getPopup():webix.ui.baseview; + getTopParentView():webix.ui.baseview; + getValue():string; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + optionIndex(ID:string):number; + refresh():void; + removeOption(id:string):void; + render(id:string, data:any, type:string):void; + resize():void; + setValue(value:string):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + validate():boolean; + $getSize():any[]; + $getValue():string; + $height: number; + $render: WebixCallback; + $renderIcon: WebixCallback; + $renderInput(obj:any, html:string, id:string):string; + $renderLabel(config:any, id:string):string; + $scope: any; + $setSize(x:number, y:number):boolean; + $setValue(value:string):void; + $skin: any; + $view: HTMLElement; + $width: number; + config: tabbarConfig; + name: string; + on_click: WebixCallback; + touchable: any; +} +interface tabviewConfig{ + animate?: any; + borderless?: boolean; + cells?: any[]; + cols?: any[]; + container?: HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + isolate?: boolean; + margin?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + multiview?: any; + on?: any; + padding?: number; + paddingX?: number; + paddingY?: number; + responsive?: string; + rows?: any[]; + tabbar?: any; + type?: string; + visibleBatch?: string; + width?: number; +} +interface tabview extends webix.ui.baseview{ + addView(view:any, index?:number):webix.ui.baseview; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getMultiview():any; + getNode():any; + getParentView():any; + getTabbar():any; + getTopParentView():webix.ui.baseview; + getValue():string; + hasEvent(name:string):boolean; + hide():void; + index(obj:any):number; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + reconstruct():void; + removeView(id:string):void; + resize():void; + resizeChildren():void; + setValue(value:string):void; + show(force?:boolean, animation?:boolean):void; + showBatch(name:string):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $height: number; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: tabviewConfig; + name: string; +} +interface templateConfig{ + animate?: any; + autoheight?: any; + borderless?: boolean; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + data?: string|any[]; + dataFeed?: string|WebixCallback; + datatype?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + on?: any; + onClick?: { [key: string]: any; }; + scroll?: boolean|string; + scrollSpeed?: string; + src?: string; + template?: string|WebixCallback; + type?: string; + url?: string; + width?: number; +} +interface template extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getNode():any; + getParentView():any; + getScrollState():any; + getTopParentView():webix.ui.baseview; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + mapEvent(map:any):void; + parse(data:any, type:string):void; + refresh():void; + render(id:string, data:any, type:string):void; + resize():void; + scrollTo(x:number, y:number):void; + setContent(node:any):void; + setHTML(html:string):void; + setValues(obj:any, update?:boolean):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: templateConfig; + name: string; +} +interface textConfig{ + align?: string; + animate?: any; + attributes?: { [key: string]: any; }; + borderless?: boolean; + click?: WebixCallback; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + hotkey?: string; + id?: string; + inputHeight?: number; + inputPadding?: number; + inputWidth?: number; + label?: string; + labelPosition?: string; + labelWidth?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + name?: string; + on?: any; + placeholder?: string; + popup?: any; + readonly?: boolean; + relatedAction?: string; + relatedView?: string; + required?: boolean; + suggest?: string|webix.ui.baseview; + tabFocus?: boolean; + template?: string|WebixCallback; + tooltip?: string; + type?: string; + validate?: boolean; + validateEvent?: string; + value?: string; + width?: number; +} +interface text extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + blur():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getInputNode():HTMLElement; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + getValue():string; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + refresh():void; + render(id:string, data:any, type:string):void; + resize():void; + setValue(value:string):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + validate():boolean; + $getSize():any[]; + $getValue():string; + $height: number; + $render: WebixCallback; + $renderIcon: WebixCallback; + $renderInput(obj:any, html:string, id:string):string; + $renderLabel(config:any, id:string):string; + $scope: any; + $setSize(x:number, y:number):boolean; + $setValue(value:string):void; + $skin: any; + $view: HTMLElement; + $width: number; + config: textConfig; + name: string; + on_click: WebixCallback; + touchable: any; +} +interface textareaConfig{ + align?: string; + animate?: any; + attributes?: { [key: string]: any; }; + borderless?: boolean; + click?: WebixCallback; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + hotkey?: string; + id?: string; + inputHeight?: number; + inputPadding?: number; + inputWidth?: number; + label?: string; + labelPosition?: string; + labelWidth?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + name?: string; + on?: any; + placeholder?: string; + popup?: any; + readonly?: boolean; + relatedAction?: string; + relatedView?: string; + required?: boolean; + suggest?: string|webix.ui.baseview; + tabFocus?: boolean; + template?: string|WebixCallback; + tooltip?: string; + type?: string; + validate?: boolean; + validateEvent?: string; + value?: string; + width?: number; +} +interface textarea extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + blur():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getInputNode():HTMLElement; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + getValue():string; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + refresh():void; + render(id:string, data:any, type:string):void; + resize():void; + setValue(value:string):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + validate():boolean; + $getSize():any[]; + $getValue():string; + $height: number; + $render: WebixCallback; + $renderIcon: WebixCallback; + $renderInput(obj:any, html:string, id:string):string; + $renderLabel(config:any, id:string):string; + $scope: any; + $setSize(x:number, y:number):boolean; + $setValue(value:string):void; + $skin: any; + $view: HTMLElement; + $width: number; + config: textareaConfig; + name: string; + on_click: WebixCallback; + touchable: any; +} +interface toggleConfig{ + align?: string; + animate?: any; + borderless?: boolean; + click?: WebixCallback; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + hotkey?: string; + id?: string; + inputHeight?: number; + inputWidth?: number; + label?: string; + labelPosition?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + name?: string; + on?: any; + placeholder?: any; + popup?: any; + tabFocus?: boolean; + template?: string|WebixCallback; + tooltip?: string; + type?: string; + value?: string; + width?: number; +} +interface toggle extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + blur():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getInputNode():HTMLElement; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + getValue():string; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + refresh():void; + render(id:string, data:any, type:string):void; + resize():void; + setValue(value:string):void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + toggle():void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $getValue():string; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $setValue(value:string):void; + $skin: any; + $view: HTMLElement; + $width: number; + config: toggleConfig; + name: string; + on_click: WebixCallback; + touchable: any; +} +interface toolbarConfig{ + animate?: any; + borderless?: boolean; + cols?: any[]; + container?: HTMLElement; + css?: string; + data?: string|any[]; + dataFeed?: string|WebixCallback; + datatype?: string; + disabled?: boolean; + elements?: any[]; + elementsConfig?: { [key: string]: any; }; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + isolate?: boolean; + margin?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + on?: any; + padding?: number; + paddingX?: number; + paddingY?: number; + responsive?: string; + rows?: any[]; + rules?: any; + scroll?: boolean|string; + scrollSpeed?: string; + type?: string; + url?: string; + visibleBatch?: string; + width?: number; +} +interface toolbar extends webix.ui.baseview{ + addView(view:any, index?:number):webix.ui.baseview; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + clear():void; + clearValidation():void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + focus(item:string):void; + getChildViews():any[]; + getCleanValues():any; + getDirtyValues():any; + getFormView():webix.ui.baseview; + getNode():any; + getParentView():any; + getScrollState():any; + getTopParentView():webix.ui.baseview; + getValues(details?:any):any[]; + hasEvent(name:string):boolean; + hide():void; + index(obj:any):number; + isDirty():boolean; + isEnabled():boolean; + isVisible():boolean; + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + mapEvent(map:any):void; + parse(data:any, type:string):void; + reconstruct():void; + refresh():void; + removeView(id:string):void; + render(id:string, data:any, type:string):void; + resize():void; + resizeChildren():void; + scrollTo(x:number, y:number):void; + setDirty(mark?:boolean):void; + setValues(values:any, update?:boolean):void; + show(force?:boolean, animation?:boolean):void; + showBatch(name:string):void; + unbind():void; + unblockEvent():void; + validate():boolean; + $getSize():any[]; + $height: number; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: toolbarConfig; + name: string; +} +interface tooltipConfig{ + animate?: any; + borderless?: boolean; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + disabled?: boolean; + dx?: number; + dy?: number; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + on?: any; + template?: string|WebixCallback; + width?: number; +} +interface tooltip extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + customize(obj:any):void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + render(id:string, data:any, type:string):void; + resize():void; + show(force?:boolean, animation?:boolean):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: tooltipConfig; + name: string; + type: { [key: string]: any; }; +} +interface treeConfig{ + animate?: any; + borderless?: boolean; + click?: string|WebixCallback; + clipboard?: boolean|string; + container?: HTMLElement; + css?: string; + data?: string|any[]; + dataFeed?: string|WebixCallback; + datathrottle?: number; + datatype?: string; + disabled?: boolean; + drag?: boolean; + dragscroll?: boolean|string; + filterMode?: any; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + mouseEventDelay?: number; + navigation?: boolean; + on?: any; + onClick?: { [key: string]: any; }; + onContext?: { [key: string]: any; }; + onDblClick?: WebixCallback; + onMouseMove?: WebixCallback; + pager?: any; + ready?: WebixCallback; + removeMissed?: boolean; + rules?: any; + save?: string; + scheme?: any; + scroll?: boolean|string; + scrollSpeed?: string; + select?: boolean; + template?: string|WebixCallback; + templateCopy?: WebixCallback; + threeState?: boolean; + tooltip?: any; + type?: any; + url?: string; + width?: number; +} +interface tree extends webix.ui.baseview{ + add(obj:any, index?:number):string; + addCss(id:string|number, css:string, silent?:boolean):void; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + checkAll(id?:string):void; + checkItem(id:string):void; + clearAll():void; + clearCss(css:string, silent?:boolean):void; + clearValidation():void; + close(id:string):void; + closeAll():void; + copy(sid:string, tindex:number, tobj?:webix.ui.baseview, details?:any):string; + count():number; + customize(obj:any):void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + exists(id:string):boolean; + filter(text:string|WebixTemplate|WebixCallback, value:string, preserve:boolean):void; + getBranchIndex(id:string, parent?:string):number; + getChecked():any[]; + getChildViews():any[]; + getFirstChildId(id:string):string; + getFirstId():string; + getFormView():webix.ui.baseview; + getIdByIndex(index:number):string; + getIndexById(id:string):number; + getItem(id:string):any; + getItemNode(id:string):void; + getLastId():string; + getNextId(id:string, step:number):string; + getNextSiblingId(id:any):string; + getNode():any; + getOpenItems():any[]; + getParentId(id:string):string; + getParentView():any; + getPrevId(id:string, step:number):string; + getPrevSiblingId(id:any):string; + getScrollState():any; + getSelectedId(as_array:boolean):string|any[]; + getSelectedItem(as_array?:boolean):any; + getState():any; + getTopParentView():webix.ui.baseview; + group(config:any, mode:boolean):void; + hasCss(id:string, css:string):boolean; + hasEvent(name:string):boolean; + hide():void; + isBranch(id:string):boolean; + isBranchOpen(id:string):boolean; + isChecked(id:string):boolean; + isEnabled():boolean; + isSelected(id:string):boolean; + isVisible():boolean; + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + loadBranch(id:string, callback:WebixCallback, url:string):void; + loadNext(count:number, start:number, callback:WebixCallback, url:string, now:boolean):void; + locate(e:Event):string; + mapEvent(map:any):void; + move(sid:string, tindex:number, tobj?:any, details?:any):string; + moveSelection(direction:string):void; + open(id:string):void; + openAll():void; + parse(data:any, type:string):void; + refresh(id?:string):void; + remove(id:string):void; + removeCss(id:string|number, css:string, silent?:boolean):void; + render(id:string, data:any, type:string):void; + resize():void; + scrollTo(x:number, y:number):void; + select(id:string|any[], preserve:boolean):void; + selectAll(from?:string, to?:string):void; + serialize():any; + setState(state:any):void; + show(force?:boolean, animation?:boolean):void; + showItem(id:string):void; + sort(by:string, dir?:string, as?:string):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + uncheckAll(id?:string):void; + uncheckItem(id:string):void; + ungroup(mode:boolean):void; + unselect(id?:string):void; + unselectAll():void; + updateItem(id:string, data:any):void; + validate(id?:string):boolean; + $drag(source:HTMLElement, ev:Event):string; + $dragHTML: WebixCallback; + $dragIn(source:HTMLElement, target:HTMLElement, ev:Event):HTMLElement; + $dragMark(context:any, ev:Event):boolean; + $dragOut(source:HTMLElement, old_target:HTMLElement, new_target:HTMLElement, ev:Event):void; + $drop(source:HTMLElement, target:HTMLElement, ev:any):void; + $dropAllow: WebixCallback; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: treeConfig; + name: string; + on_click: WebixCallback; + on_context: { [key: string]: any; }; + on_dblclick: WebixCallback; + on_mouse_move: WebixCallback; + type: { [key: string]: any; }; + types: { [key: string]: any; }; +} +interface treetableConfig{ + animate?: any; + autoConfig?: boolean; + autoheight?: boolean; + autowidth?: boolean; + blockselect?: boolean; + borderless?: boolean; + checkboxRefresh?: boolean; + clipboard?: boolean|string; + columnWidth?: number; + columns?: any[]; + container?: HTMLElement; + css?: string; + data?: string|any[]; + dataFeed?: string|WebixCallback; + datafetch?: number; + datathrottle?: number; + datatype?: string; + delimiter?: any; + disabled?: boolean; + drag?: boolean|string; + dragColumn?: boolean|string; + dragscroll?: boolean|string; + editMath?: boolean; + editValue?: string; + editable?: boolean; + editaction?: string; + externalData?: WebixCallback; + filterMode?: any; + fixedRowHeight?: boolean; + footer?: boolean; + form?: string; + gravity?: number; + header?: boolean; + headerRowHeight?: number; + headermenu?: any; + height?: number; + hidden?: boolean; + hover?: string; + id?: string; + leftSplit?: number; + liveValidation?: boolean; + loadahead?: number; + math?: boolean; + maxHeight?: number; + maxWidth?: number; + minColumnHeight?: number; + minColumnWidth?: number; + minHeight?: number; + minWidth?: number; + mouseEventDelay?: number; + multiselect?: boolean; + navigation?: boolean; + on?: any; + onClick?: { [key: string]: any; }; + onContext?: { [key: string]: any; }; + onDblClick?: WebixCallback; + onMouseMove?: WebixCallback; + pager?: any; + prerender?: boolean; + ready?: WebixCallback; + removeMissed?: boolean; + resizeColumn?: boolean; + resizeRow?: boolean; + rightSplit?: number; + rowHeight?: number; + rowLineHeight?: number; + rules?: any; + save?: string; + scheme?: any; + scroll?: boolean; + scrollAlignY?: boolean; + scrollX?: boolean; + scrollY?: boolean; + select?: boolean|string; + spans?: any[]; + threeState?: boolean; + tooltip?: any; + type?: any; + url?: string; + width?: number; + yCount?: number; +} +interface treetable extends webix.ui.baseview{ + add(obj:any, index?:number):string; + addCellCss(id:string, name:string, css:string):void; + addCss(id:string|number, css:string, silent?:boolean):void; + addRowCss(id:string, css:string):void; + adjust():void; + adjustColumn(id:string|number, header?:string):void; + adjustRowHeight(columnId:string, silent:boolean):void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + checkAll(id?:string):void; + checkItem(id:string):void; + clearAll():void; + clearCss(css:string, silent?:boolean):void; + clearValidation():void; + close(id:string):void; + closeAll():void; + collectValues(id:string):any[]; + columnId(index:number):string; + copy(sid:string, tindex:number, tobj?:webix.ui.baseview, details?:any):string; + count():number; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + eachColumn(handler:WebixCallback, all?:boolean):void; + eachRow(handler:WebixCallback, all?:boolean):void; + edit(id:any):void; + editCancel():void; + editCell(row:string, col:string, preserve?:boolean, show?:boolean):void; + editColumn(id:string):void; + editNext():boolean; + editRow(id:string):void; + editStop():void; + enable():void; + exists(id:string):boolean; + exportToExcel(url?:string):void; + exportToPDF(url?:string):void; + filter(text:string|WebixTemplate|WebixCallback, value:string, preserve:boolean):void; + filterByAll():void; + find(criterion:WebixCallback, first?:boolean):any; + focusEditor():void; + getBranchIndex(id:string, parent?:string):number; + getChecked():any[]; + getChildViews():any[]; + getColumnConfig(id:string):any; + getColumnIndex(id:string):number; + getEditState():any; + getEditor(row?:any, column?:string|number):any; + getEditorValue():string; + getFilter(columnID:string):any; + getFirstChildId(id:string):string; + getFirstId():string; + getFormView():webix.ui.baseview; + getHeaderContent(id:string):{ [key: string]: any; }; + getHeaderNode(columnId:string, rowIndex?:number):HTMLElement; + getIdByIndex(index:number):string; + getIndexById(id:string):number; + getItem(id:string):any; + getItemNode(id:string):void; + getLastId():string; + getNextId(id:string, step:number):string; + getNextSiblingId(id:any):string; + getNode():any; + getOpenItems():any[]; + getPage():number; + getPager():any; + getParentId(id:string):string; + getParentView():any; + getPrevId(id:string, step:number):string; + getPrevSiblingId(id:any):string; + getScrollState():any; + getSelectedId(asArray?:boolean, asString?:boolean):any; + getSelectedItem(mode?:boolean):void; + getState():any; + getText(rowid:string, colid:string):string; + getTopParentView():webix.ui.baseview; + getVisibleCount():number; + group(config:any, mode:boolean):void; + hasCss(id:string, css:string):boolean; + hasEvent(name:string):boolean; + hide():void; + hideColumn(id:string):void; + hideOverlay():void; + isBranch(id:string):boolean; + isBranchOpen(id:string):boolean; + isChecked(id:string):boolean; + isColumnVisible(id:string):boolean; + isEnabled():boolean; + isVisible():boolean; + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + loadBranch(id:string, callback:WebixCallback, url:string):void; + loadNext(count:number, start:number, callback:WebixCallback, url:string, now:boolean):void; + locate(node:HTMLElement|Event):any; + mapCells(startrow:number, startcol:string, numrows:number, numcols:number, callback:WebixCallback):void; + mapEvent(map:any):void; + markSorting(column_id:string, dir:string):void; + move(sid:string, tindex:number, tobj?:webix.ui.baseview, details?:any):string; + moveBottom(id:string):void; + moveColumn(id:string, index:number):void; + moveDown(id:string, step:number):void; + moveSelection(direction:string):void; + moveTop(id:string):void; + moveUp(id:string, step:number):void; + open(id:string):void; + openAll():void; + parse(data:any, type:string):void; + refresh(id?:string):void; + refreshColumns(config?:any[]):void; + refreshFilter(id:string):void; + refreshHeaderContent():void; + registerFilter(node:HTMLElement, config:any, obj:any):void; + remove(id:string):void; + removeCellCss(id:string, name:string, css_name:string):void; + removeCss(id:string|number, css:string, silent?:boolean):void; + removeRowCss(id:string, css_name:string):void; + render(id:string, data:any, operation:string):void; + resize():void; + scrollTo(x:number, y:number):void; + serialize():any; + setColumnWidth(id:string, width:number):void; + setPage(page:number):void; + setRowHeight(id:string, height:number):void; + setState(state:any):void; + show(force?:boolean, animation?:boolean):void; + showCell(row:string, column:string):void; + showColumn(id:string):void; + showColumnBatch(batch:string|number):void; + showItem(id:string):void; + showItemByIndex(index:number):void; + showOverlay(message:string):void; + sort(by:string, dir?:string, as?:string):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + uncheckAll(id?:string):void; + uncheckItem(id:string):void; + ungroup(mode:boolean):void; + updateItem(id:string, data:any):void; + validate(id?:string):boolean; + validateEditor(id?:string):boolean; + $drag(source:HTMLElement, ev:Event):string; + $dragHTML: WebixCallback; + $dragIn(source:HTMLElement, target:HTMLElement, ev:Event):HTMLElement; + $dragMark(context:any, ev:Event):boolean; + $dragOut(source:HTMLElement, old_target:HTMLElement, new_target:HTMLElement, ev:Event):void; + $drop(source:HTMLElement, target:HTMLElement, ev:any):void; + $dropAllow: WebixCallback; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: treetableConfig; + headerContent: any; + name: string; + on_click: WebixCallback; + on_context: { [key: string]: any; }; + on_dblclick: WebixCallback; + on_mouse_move: WebixCallback; + waitData: PromisedData; +} +interface unitlistConfig{ + animate?: any; + autoheight?: boolean; + autowidth?: boolean; + borderless?: boolean; + click?: string|WebixCallback; + clipboard?: boolean|string; + container?: HTMLElement; + css?: string; + data?: string|any[]; + dataFeed?: string|WebixCallback; + datathrottle?: number; + datatype?: string; + disabled?: boolean; + drag?: boolean|string; + dragscroll?: boolean|string; + externalData?: WebixCallback; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + layout?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + mouseEventDelay?: number; + navigation?: boolean; + on?: any; + onClick?: { [key: string]: any; }; + onContext?: { [key: string]: any; }; + onDblClick?: WebixCallback; + onMouseMove?: WebixCallback; + pager?: any; + ready?: WebixCallback; + removeMissed?: boolean; + rules?: any; + save?: string; + scheme?: any; + scroll?: boolean|string; + scrollSpeed?: string; + select?: boolean|string; + sort?: WebixCallback; + template?: string|WebixCallback; + templateCopy?: WebixCallback; + tooltip?: any; + type?: any; + uniteBy?: WebixCallback; + url?: string; + width?: number; + xCount?: number; + yCount?: number; +} +interface unitlist extends webix.ui.baseview{ + add(obj:any, index?:number):string; + addCss(id:string|number, css:string, silent?:boolean):void; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + clearAll():void; + clearCss(css:string, silent?:boolean):void; + clearValidation():void; + copy(sid:string, tindex:number, tobj?:any, details?:any):void; + count():number; + customize(obj:any):void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + exists(id:string):boolean; + filter(text:string|WebixTemplate|WebixCallback, value:string, preserve:boolean):void; + getChildViews():any[]; + getFirstId():string; + getFormView():webix.ui.baseview; + getIdByIndex(index:number):string; + getIndexById(id:string):number; + getItem(id:string):any; + getItemNode(id:string):void; + getLastId():string; + getNextId(id:string, step:number):string; + getNode():any; + getPage():number; + getPager():any; + getParentView():any; + getPrevId(id:string, step:number):string; + getScrollState():any; + getSelectedId(as_array:boolean):string|any[]; + getSelectedItem(as_array?:boolean):any; + getTopParentView():webix.ui.baseview; + getUnitList(name:string):any[]; + getUnits():any[]; + getVisibleCount():number; + hasCss(id:string, css:string):boolean; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isSelected(id:string):boolean; + isVisible():boolean; + load(url:string, type?:string, callback?:WebixCallback):PromisedData; + loadNext(count:number, start:number, callback:WebixCallback, url:string, now:boolean):void; + locate(e:Event):string; + mapEvent(map:any):void; + move(sid:string, tindex:number, tobj?:any, details?:any):string; + moveBottom(id:string):void; + moveDown(id:string, step:number):void; + moveSelection(direction:string):void; + moveTop(id:string):void; + moveUp(id:string, step:number):void; + parse(data:any, type:string):void; + refresh(id?:string):void; + remove(id:string):void; + removeCss(id:string|number, css:string, silent?:boolean):void; + render(id:string, data:any, type:string):void; + resize():void; + scrollTo(x:number, y:number):void; + select(id:string|any[], preserve:boolean):void; + selectAll(from?:string, to?:string):void; + serialize():any; + setPage(page:number):void; + show(force?:boolean, animation?:boolean):void; + showItem(id:string):void; + sort(by:string, dir?:string, as?:string):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + unselect(id?:string):void; + unselectAll():void; + updateItem(id:string, data:any):void; + validate(id?:string):boolean; + $drag(source:HTMLElement, ev:Event):string; + $dragHTML: WebixCallback; + $dragIn(source:HTMLElement, target:HTMLElement, ev:Event):HTMLElement; + $dragMark(context:any, ev:Event):boolean; + $dragOut(source:HTMLElement, old_target:HTMLElement, new_target:HTMLElement, ev:Event):void; + $drop(source:HTMLElement, target:HTMLElement, ev:any):void; + $dropAllow: WebixCallback; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: unitlistConfig; + name: string; + on_click: WebixCallback; + on_context: { [key: string]: any; }; + on_dblclick: WebixCallback; + on_mouse_move: WebixCallback; + type: { [key: string]: any; }; + types: { [key: string]: any; }; +} +interface uploaderConfig{ + align?: string; + animate?: any; + apiOnly?: boolean; + autosend?: boolean; + borderless?: boolean; + click?: WebixCallback; + container?: HTMLElement; + content?: string|HTMLElement; + css?: string; + disabled?: boolean; + formData?: { [key: string]: any; }; + getValue():string; + gravity?: number; + height?: number; + hidden?: boolean; + hotkey?: string; + id?: string; + inputHeight?: number; + inputWidth?: number; + label?: string; + labelPosition?: string; + link?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + multiple?: boolean; + name?: string; + on?: any; + placeholder?: any; + popup?: any; + tabFocus?: boolean; + template?: string|WebixCallback; + tooltip?: string; + type?: string; + value?: string; + width?: number; +} +interface uploader extends webix.ui.baseview{ + addDropZone(element:HTMLElement):void; + addFile(name:string, size:number, type?:string):void; + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + blur():void; + callEvent(name:string, params:any[]):boolean; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + fileDialog(content?:any):void; + focus():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getInputNode():HTMLElement; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + getValue():string; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isUploaded():boolean; + isVisible():boolean; + mapEvent(map:any):void; + refresh():void; + render(id:string, data:any, type:string):void; + resize():void; + send(id:number|string|WebixCallback, details:any):void; + setValue(value:string):void; + show(force?:boolean, animation?:boolean):void; + stopUpload(id:string):void; + sync(source:any, filter:WebixCallback, silent:boolean):void; + unbind():void; + unblockEvent():void; + $cssName: string; + $getSize():any[]; + $getValue():string; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $setValue(value:string):void; + $skin: any; + $view: HTMLElement; + $width: number; + config: uploaderConfig; + name: string; + on_click: WebixCallback; + touchable: any; +} +interface videoConfig{ + animate?: any; + borderless?: boolean; + container?: HTMLElement; + controls?: boolean; + css?: string; + disabled?: boolean; + gravity?: number; + height?: number; + hidden?: boolean; + id?: string; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + src?: any; + width?: number; +} +interface video extends webix.ui.baseview{ + adjust():void; + bind(target:any, rule?:WebixCallback, format?:string):void; + define(property:string, value:any):void; + destructor():void; + disable():void; + enable():void; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + getVideo():void; + hide():void; + isEnabled():boolean; + isVisible():boolean; + resize():void; + show(force?:boolean, animation?:boolean):void; + unbind():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: videoConfig; + name: string; +} +interface windowConfig{ + animate?: any; + autofit?: boolean; + autofocus?: boolean; + body?: string|webix.ui.baseview; + borderless?: boolean; + container?: HTMLElement; + css?: string; + disabled?: boolean; + fullscreen?: boolean; + gravity?: number; + head?: any; + headHeight?: number; + height?: number; + hidden?: boolean; + id?: string; + left?: number; + maxHeight?: number; + maxWidth?: number; + minHeight?: number; + minWidth?: number; + modal?: boolean; + move?: boolean; + on?: any; + padding?: any; + position?: string|WebixCallback; + relative?: string; + top?: number; + width?: number; + zIndex?: number; +} +interface window extends webix.ui.baseview{ + adjust():void; + attachEvent(type:string, functor:WebixCallback, id?:string):string; + bind(target:any, rule?:WebixCallback, format?:string):void; + blockEvent():void; + callEvent(name:string, params:any[]):boolean; + close():void; + define(property:string, value:any):void; + destructor():void; + detachEvent(id:string):void; + disable():void; + enable():void; + getBody():any; + getChildViews():any[]; + getFormView():webix.ui.baseview; + getHead():any; + getNode():any; + getParentView():any; + getTopParentView():webix.ui.baseview; + hasEvent(name:string):boolean; + hide():void; + isEnabled():boolean; + isVisible():boolean; + mapEvent(map:any):void; + resize():void; + resizeChildren():void; + setPosition(x:number, y:number):void; + show(force?:boolean, animation?:boolean):void; + unbind():void; + unblockEvent():void; + $getSize():any[]; + $height: number; + $scope: any; + $setSize(x:number, y:number):boolean; + $skin: any; + $view: HTMLElement; + $width: number; + config: windowConfig; + name: string; +} + +}} + +declare function $$(id: string|Event|HTMLElement):webix.ui.view; From e60ccd8a23c986aa5792f6a2831a5cb80e31d94a Mon Sep 17 00:00:00 2001 From: Michael Zabka Date: Mon, 23 Mar 2015 18:45:53 +0100 Subject: [PATCH 31/71] Add library http-status --- http-status/http-status-tests.ts | 91 ++++++++++++++++++++++++++++++ http-status/http-status.d.ts | 95 ++++++++++++++++++++++++++++++++ 2 files changed, 186 insertions(+) create mode 100644 http-status/http-status-tests.ts create mode 100644 http-status/http-status.d.ts diff --git a/http-status/http-status-tests.ts b/http-status/http-status-tests.ts new file mode 100644 index 000000000..8717e99c3 --- /dev/null +++ b/http-status/http-status-tests.ts @@ -0,0 +1,91 @@ +/// + +import httpStatus = require('http-status'); + +var str: string; +var nmr: number; + +str = httpStatus[100]; +str = httpStatus[101]; +str = httpStatus[200]; +str = httpStatus[201]; +str = httpStatus[202]; +str = httpStatus[203]; +str = httpStatus[204]; +str = httpStatus[205]; +str = httpStatus[206]; +str = httpStatus[300]; +str = httpStatus[301]; +str = httpStatus[302]; +str = httpStatus[303]; +str = httpStatus[304]; +str = httpStatus[305]; +str = httpStatus[307]; +str = httpStatus[400]; +str = httpStatus[401]; +str = httpStatus[402]; +str = httpStatus[403]; +str = httpStatus[404]; +str = httpStatus[405]; +str = httpStatus[406]; +str = httpStatus[407]; +str = httpStatus[408]; +str = httpStatus[409]; +str = httpStatus[410]; +str = httpStatus[411]; +str = httpStatus[412]; +str = httpStatus[413]; +str = httpStatus[414]; +str = httpStatus[415]; +str = httpStatus[416]; +str = httpStatus[417]; +str = httpStatus[429]; +str = httpStatus[500]; +str = httpStatus[501]; +str = httpStatus[502]; +str = httpStatus[503]; +str = httpStatus[504]; +str = httpStatus[505]; + + +nmr = httpStatus.CONTINUE; +nmr = httpStatus.SWITCHING_PROTOCOLS; +nmr = httpStatus.OK; +nmr = httpStatus.CREATED; +nmr = httpStatus.ACCEPTED; +nmr = httpStatus.NON_AUTHORITATIVE_INFORMATION; +nmr = httpStatus.NO_CONTENT; +nmr = httpStatus.RESET_CONTENT; +nmr = httpStatus.PARTIAL_CONTENT; +nmr = httpStatus.MULTIPLE_CHOICES; +nmr = httpStatus.MOVED_PERMANENTLY; +nmr = httpStatus.FOUND; +nmr = httpStatus.SEE_OTHER; +nmr = httpStatus.NOT_MODIFIED; +nmr = httpStatus.USE_PROXY; +nmr = httpStatus.TEMPORARY_REDIRECT; +nmr = httpStatus.BAD_REQUEST; +nmr = httpStatus.UNAUTHORIZED; +nmr = httpStatus.PAYMENT_REQUIRED; +nmr = httpStatus.FORBIDDEN; +nmr = httpStatus.NOT_FOUND; +nmr = httpStatus.METHOD_NOT_ALLOWED; +nmr = httpStatus.NOT_ACCEPTABLE; +nmr = httpStatus.PROXY_AUTHENTICATION_REQUIRED; +nmr = httpStatus.REQUEST_TIMEOUT; +nmr = httpStatus.CONFLICT; +nmr = httpStatus.GONE; +nmr = httpStatus.LENGTH_REQUIRED; +nmr = httpStatus.PRECONDITION_FAILED; +nmr = httpStatus.REQUEST_ENTITY_TOO_LARGE; +nmr = httpStatus.REQUEST_URI_TOO_LONG; +nmr = httpStatus.UNSUPPORTED_MEDIA_TYPE; +nmr = httpStatus.REQUESTED_RANGE_NOT_SATISFIABLE; +nmr = httpStatus.EXPECTATION_FAILED; +nmr = httpStatus.TOO_MANY_REQUESTS; +nmr = httpStatus.INTERNAL_SERVER_ERROR; +nmr = httpStatus.NOT_IMPLEMENTED; +nmr = httpStatus.BAD_GATEWAY; +nmr = httpStatus.SERVICE_UNAVAILABLE; +nmr = httpStatus.GATEWAY_TIMEOUT; +nmr = httpStatus.HTTP_VERSION_NOT_SUPPORTED; diff --git a/http-status/http-status.d.ts b/http-status/http-status.d.ts new file mode 100644 index 000000000..39328b71a --- /dev/null +++ b/http-status/http-status.d.ts @@ -0,0 +1,95 @@ +// Type definitions for http-status v0.1.8 +// Project: https://github.com/wdavidw/node-http-status +// Definitions by: Michael Zabka +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +interface HttpStatus { + 100: string; + 101: string; + 200: string; + 201: string; + 202: string; + 203: string; + 204: string; + 205: string; + 206: string; + 300: string; + 301: string; + 302: string; + 303: string; + 304: string; + 305: string; + 307: string; + 400: string; + 401: string; + 402: string; + 403: string; + 404: string; + 405: string; + 406: string; + 407: string; + 408: string; + 409: string; + 410: string; + 411: string; + 412: string; + 413: string; + 414: string; + 415: string; + 416: string; + 417: string; + 429: string; + 500: string; + 501: string; + 502: string; + 503: string; + 504: string; + 505: string; + CONTINUE: number; + SWITCHING_PROTOCOLS: number; + OK: number; + CREATED: number; + ACCEPTED: number; + NON_AUTHORITATIVE_INFORMATION: number; + NO_CONTENT: number; + RESET_CONTENT: number; + PARTIAL_CONTENT: number; + MULTIPLE_CHOICES: number; + MOVED_PERMANENTLY: number; + FOUND: number; + SEE_OTHER: number; + NOT_MODIFIED: number; + USE_PROXY: number; + TEMPORARY_REDIRECT: number; + BAD_REQUEST: number; + UNAUTHORIZED: number; + PAYMENT_REQUIRED: number; + FORBIDDEN: number; + NOT_FOUND: number; + METHOD_NOT_ALLOWED: number; + NOT_ACCEPTABLE: number; + PROXY_AUTHENTICATION_REQUIRED: number; + REQUEST_TIMEOUT: number; + CONFLICT: number; + GONE: number; + LENGTH_REQUIRED: number; + PRECONDITION_FAILED: number; + REQUEST_ENTITY_TOO_LARGE: number; + REQUEST_URI_TOO_LONG: number; + UNSUPPORTED_MEDIA_TYPE: number; + REQUESTED_RANGE_NOT_SATISFIABLE: number; + EXPECTATION_FAILED: number; + TOO_MANY_REQUESTS: number; + INTERNAL_SERVER_ERROR: number; + NOT_IMPLEMENTED: number; + BAD_GATEWAY: number; + SERVICE_UNAVAILABLE: number; + GATEWAY_TIMEOUT: number; + HTTP_VERSION_NOT_SUPPORTED: number +} + +declare var httpStatus: HttpStatus; + +declare module 'http-status' { + export = httpStatus; +} From 1429bcc7fed522b2eac523118ffca0b2486578e1 Mon Sep 17 00:00:00 2001 From: Michael Zabka Date: Mon, 23 Mar 2015 19:20:49 +0100 Subject: [PATCH 32/71] Add library crypto-js --- crypto-js/crypto-js-tests.ts | 23 +++++++++++++ crypto-js/crypto-js.d.ts | 67 ++++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 crypto-js/crypto-js-tests.ts create mode 100644 crypto-js/crypto-js.d.ts diff --git a/crypto-js/crypto-js-tests.ts b/crypto-js/crypto-js-tests.ts new file mode 100644 index 000000000..199c32ef2 --- /dev/null +++ b/crypto-js/crypto-js-tests.ts @@ -0,0 +1,23 @@ +/// + +import CryptoJS = require('crypto-js'); + +var str: string; + +str = CryptoJS.MD5('some message'); +str = CryptoJS.MD5('some message', 'some key'); + +str = CryptoJS.SHA1('some message'); +str = CryptoJS.SHA1('some message', 'some key', { any: true }); + +str = CryptoJS.format.OpenSSL('some message'); +str = CryptoJS.format.OpenSSL('some message', 'some key'); + +str = CryptoJS.enc.Utf8('some message'); +str = CryptoJS.enc.Utf8('some message', 'some key'); + +str = CryptoJS.mode.OFB('some message'); +str = CryptoJS.mode.OFB('some message', 'some key'); + +str = CryptoJS.pad.Ansix923('some message'); +str = CryptoJS.pad.Ansix923('some message', 'some key'); diff --git a/crypto-js/crypto-js.d.ts b/crypto-js/crypto-js.d.ts new file mode 100644 index 000000000..0f0251402 --- /dev/null +++ b/crypto-js/crypto-js.d.ts @@ -0,0 +1,67 @@ +// Type definitions for crypto-js v3.1.3 +// Project: https://github.com/evanvosberg/crypto-js +// Definitions by: Michael Zabka +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module CryptoJS { + type Hash = (message: string, key?: string, ...options: any[]) => string; + + export interface Hashes { + MD5: Hash; + SHA1: Hash; + SHA256: Hash; + SHA224: Hash; + SHA512: Hash; + SHA384: Hash; + SHA3: Hash; + RIPEMD160: Hash; + HmacMD5: Hash; + HmacSHA1: Hash; + HmacSHA256: Hash; + HmacSHA224: Hash; + HmacSHA512: Hash; + HmacSHA384: Hash; + HmacSHA3: Hash; + HmacRIPEMD160: Hash; + PBKDF2: Hash; + AES: Hash; + TripleDES: Hash; + RC4: Hash; + Rabbit: Hash; + RabbitLegacy: Hash; + EvpKDF: Hash; + format: { + OpenSSL: Hash; + Hex: Hash; + }; + enc: { + Latin1: Hash; + Utf8: Hash; + Hex: Hash; + Utf16: Hash; + Base64: Hash; + }; + mode: { + CFB: Hash; + CTR: Hash; + CTRGladman: Hash; + OFB: Hash; + ECB: Hash; + }; + pad: { + Pkcs7: Hash; + Ansix923: Hash; + Iso10126: Hash; + Iso97971: Hash; + ZeroPadding: Hash; + NoPadding: Hash; + }; + } + + export var hashes: Hashes; +} + +declare module 'crypto-js' { + import hashes = CryptoJS.hashes; + export = hashes; +} From 4260bec48a07f49bc47f87e3984ceea6270cc044 Mon Sep 17 00:00:00 2001 From: ColsaCorp Date: Mon, 23 Mar 2015 13:46:51 -0500 Subject: [PATCH 33/71] Update s3-uploader.d.ts --- s3-uploader/s3-uploader.d.ts | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/s3-uploader/s3-uploader.d.ts b/s3-uploader/s3-uploader.d.ts index 215cb7df6..b7c093c3f 100644 --- a/s3-uploader/s3-uploader.d.ts +++ b/s3-uploader/s3-uploader.d.ts @@ -32,8 +32,35 @@ interface S3UploaderOptions { versions?: S3UploaderVersion; } +declare class Meta { + public format: string; + public fileSize: string; + public imageSize: imageSize; + public orientation: string; + public colorSpace: string; + public compression: string; + public quallity: string; +} + +declare class imageSize { + public height: number; + public width: number; +} + +declare class image { + public etag: string; + public format: string; + public height: number; + public original: boolean; + public path: string; + public size: string; + public src: string; + public url: string; + public width: number; +} + declare class Upload { public constructor(awsBucketName: string, opts: S3UploaderOptions); - public upload(src: string, opts?: S3UploaderOptions, cb?: (err, images, meta) => void); + public upload(src: string, opts?: S3UploaderOptions, cb?: (err: string, images: image[], meta: Meta) => void): void; } From fe8fabf5f71b11a68f078781e563749bc51edd86 Mon Sep 17 00:00:00 2001 From: ColsaCorp Date: Mon, 23 Mar 2015 14:01:16 -0500 Subject: [PATCH 34/71] Update mssql.d.ts --- mssql/mssql.d.ts | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/mssql/mssql.d.ts b/mssql/mssql.d.ts index dcdd0f700..fdcad2642 100644 --- a/mssql/mssql.d.ts +++ b/mssql/mssql.d.ts @@ -42,17 +42,17 @@ declare module "mssql" { public constructor(config: config, callback?: (err?: any) => void); - public connect(callback?: (err?: any) => void); + public connect(callback?: (err?: any) => void): void; - public close(); + public close(): void; } class columns { - public add(name: string, type: any, options: any); + public add(name: string, type: any, options: any): void; } class rows { - public add(any); + public add(any): void; } export class Table { @@ -65,32 +65,32 @@ declare module "mssql" { export class Request { public constructor(connection?: Connection); - public execute(procedure: string, callback?: (err?: any, recordsets?: any, returnValue?: any) => void); - public input(name: string, value: any); - public input(name: string, type: any, value: any); - public output(name: string, type: any, value?: any); - public pipe(stream: any); - public query(command: string, callback?: (err?: any, recordset?: any) => void); - public batch(batch: string, callback?: (err?: any, recordset?: any) => void); - public bulk(table: Table, callback?: (err?: any, rowCount?: any) => void); - public cancel(); + public execute(procedure: string, callback?: (err?: any, recordsets?: any, returnValue?: any) => void): void; + public input(name: string, value: any): void; + public input(name: string, type: any, value: any): void; + public output(name: string, type: any, value?: any): void; + public pipe(stream: any): void; + public query(command: string, callback?: (err?: any, recordset?: any) => void): void; + public batch(batch: string, callback?: (err?: any, recordset?: any) => void): void; + public bulk(table: Table, callback?: (err?: any, rowCount?: any) => void): void; + public cancel(): void; public parameters: any; } export class Transaction { public constructor(connection?: Connection); - public begin(isolationLevel?: any, callback?: (err?: any) => void); - public begin(callback?: (err?: any) => void); - public commit(callback?: (err?: any) => void); - public rollback(callback?: (err?: any) => void); + public begin(isolationLevel?: any, callback?: (err?: any) => void): void; + public begin(callback?: (err?: any) => void): void; + public commit(callback?: (err?: any) => void): void; + public rollback(callback?: (err?: any) => void): void; } export class PreparedStatement { public constructor(connection?: Connection); - public input(name: string, type: any); - public output(name: string, type: any); - public prepare(statement: string, callback?: (err?: any) => void); - public execute(values: any, callback?: (err?: any) => void); - public unprepare(callback?: (err?: any) => void); + public input(name: string, type: any): void; + public output(name: string, type: any): void; + public prepare(statement: string, callback?: (err?: any) => void): void; + public execute(values: any, callback?: (err?: any) => void): void; + public unprepare(callback?: (err?: any) => void): void; } } From e889118f0e741c5c1e659fb732ccd68354fc8e3d Mon Sep 17 00:00:00 2001 From: ColsaCorp Date: Mon, 23 Mar 2015 14:15:30 -0500 Subject: [PATCH 35/71] Update mssql.d.ts --- mssql/mssql.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mssql/mssql.d.ts b/mssql/mssql.d.ts index fdcad2642..5a6e6a00c 100644 --- a/mssql/mssql.d.ts +++ b/mssql/mssql.d.ts @@ -52,7 +52,7 @@ declare module "mssql" { } class rows { - public add(any): void; + public add(row: any): void; } export class Table { From 88b4ec57704662a9d422aa3558890bd1751e9749 Mon Sep 17 00:00:00 2001 From: Adi Dahiya Date: Mon, 23 Mar 2015 18:34:52 -0400 Subject: [PATCH 36/71] Use stricter Element type in tether options --- tether/tether.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tether/tether.d.ts b/tether/tether.d.ts index be1200f28..2fffb16c9 100644 --- a/tether/tether.d.ts +++ b/tether/tether.d.ts @@ -14,11 +14,11 @@ declare module tether { classes?: {[className: string]: boolean}; classPrefix?: string; constraints?: ITetherConstraint[]; - element?: Element | string | any /* JQuery */; + element?: HTMLElement | string | any /* JQuery */; enabled?: boolean; offset?: string; optimizations?: any; - target?: Element | string | any /* JQuery */; + target?: HTMLElement | string | any /* JQuery */; targetAttachment?: string; targetOffset?: string; targetModifier?: string; @@ -29,7 +29,7 @@ declare module tether { outOfBoundsClass?: string; pin?: boolean | string[]; pinnedClass?: string; - to?: string | Element | number[]; + to?: string | HTMLElement | number[]; } interface Tether { From 0a848b2ea82df63a0190dcc0bd194fa97ceebd94 Mon Sep 17 00:00:00 2001 From: ryiwamoto Date: Tue, 24 Mar 2015 19:15:51 +0900 Subject: [PATCH 37/71] jquery.contextMenu type definitions are now compatible with --noImplicitAy. --- .../jquery.contextMenu-tests.ts | 19 +++++++++++++++++++ jquery.contextMenu/jquery.contextMenu.d.ts | 16 +++++++++++----- .../jquery.contextMenu.d.ts.tscparams | 2 +- 3 files changed, 31 insertions(+), 6 deletions(-) create mode 100644 jquery.contextMenu/jquery.contextMenu-tests.ts diff --git a/jquery.contextMenu/jquery.contextMenu-tests.ts b/jquery.contextMenu/jquery.contextMenu-tests.ts new file mode 100644 index 000000000..df1b47943 --- /dev/null +++ b/jquery.contextMenu/jquery.contextMenu-tests.ts @@ -0,0 +1,19 @@ +/// + +//http://medialize.github.io/jQuery-contextMenu/docs.html + +//Disable a contextMenu trigger +$(".some-selector").contextMenu(false); + +//Manually show a contextMenu +$(".some-selector").contextMenu(); +$(".some-selector").contextMenu({x: 123, y: 123}); + +//Manually hide a contextMenu +$(".some-selector").contextMenu("hide"); + +//Unregister contextMenu +$.contextMenu('destroy', ".some-selector"); + +//Unregister all contextMenus +$.contextMenu('destroy'); diff --git a/jquery.contextMenu/jquery.contextMenu.d.ts b/jquery.contextMenu/jquery.contextMenu.d.ts index 620564fcd..34fd543e2 100644 --- a/jquery.contextMenu/jquery.contextMenu.d.ts +++ b/jquery.contextMenu/jquery.contextMenu.d.ts @@ -1,4 +1,4 @@ -// Type definitions for jQuery contextMenu 1.6.6 +// Type definitions for jQuery contextMenu 1.7.0 // Project: http://medialize.github.com/jQuery-contextMenu/ // Definitions by: Natan Vivo // Definitions: https://github.com/borisyankov/DefinitelyTyped @@ -11,9 +11,9 @@ interface JQueryContextMenuOptions { trigger?: string; autoHide?: boolean; delay?: number; - determinePosition?: (menu) => void; - position?: (opt, x, y) => void; - positionSubmenu?: (menu) => void; + determinePosition?: (menu: JQuery) => void; + position?: (opt: JQuery, x: number, y: number) => void; + positionSubmenu?: (menu: JQuery) => void; zIndex?: number; animation?: { duration?: number; @@ -26,9 +26,15 @@ interface JQueryContextMenuOptions { }; callback?: (key: any, options: any) => any; items: any; + reposition?: boolean; + className?: string; } interface JQueryStatic { contextMenu(options?: JQueryContextMenuOptions): JQuery; - contextMenu(type: string): JQuery; + contextMenu(type: string, selector?: any): JQuery; +} + +interface JQuery { + contextMenu(options?: any): JQuery; } diff --git a/jquery.contextMenu/jquery.contextMenu.d.ts.tscparams b/jquery.contextMenu/jquery.contextMenu.d.ts.tscparams index d3f5a12fa..2f5856b19 100644 --- a/jquery.contextMenu/jquery.contextMenu.d.ts.tscparams +++ b/jquery.contextMenu/jquery.contextMenu.d.ts.tscparams @@ -1 +1 @@ - +--noImplicitAny From 7990c5250af8a8ab0aa95e3fbdbf7da113c38048 Mon Sep 17 00:00:00 2001 From: Rogier Schouten Date: Tue, 24 Mar 2015 11:46:41 +0100 Subject: [PATCH 38/71] Add definitions for stack-mapper. --- CONTRIBUTORS.md | 1 + stack-mapper/stack-mapper-tests.ts | 8 ++++++ stack-mapper/stack-mapper.d.ts | 46 ++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 stack-mapper/stack-mapper-tests.ts create mode 100644 stack-mapper/stack-mapper.d.ts diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 0db9eae38..5b8a18dca 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -730,6 +730,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](sprintf/sprintf.d.ts) [sprintff](https://github.com/maritz/node-sprintff) by [Carlos Ballesteros Velasco](https://github.com/soywiz) * [:link:](sharepoint/SharePoint.d.ts) [sptypescript](http://sptypescript.codeplex.com) by [Stanislav Vyshchepan](http://gandjustas.blogspot.ru), [Andrey Markeev](http://markeev.com) * [:link:](sqlite3/sqlite3.d.ts) [sqlite3](https://github.com/mapbox/node-sqlite3) by [Nick Malaguti](https://github.com/nmalaguti) +* [:link:](stack-mapper/stack-mapper.d.ts) [stack-mapper](https://github.com/thlorenz/stack-mapper) by [rogierschouten](https://github.com/rogierschouten) * [:link:](stampit/stampit.d.ts) [stampit](https://github.com/ericelliott/stampit) by [Vasyl Boroviak](https://github.com/koresar) * [:link:](stats/stats.d.ts) [Stats.js r12](http://github.com/mrdoob/stats.js) by [Gregory Dalton](https://github.com/gregolai) * [:link:](status-bar/status-bar.d.ts) [status-bar](https://github.com/atom/status-bar) by [vvakame](https://github.com/vvakame) diff --git a/stack-mapper/stack-mapper-tests.ts b/stack-mapper/stack-mapper-tests.ts new file mode 100644 index 000000000..98dd70ef1 --- /dev/null +++ b/stack-mapper/stack-mapper-tests.ts @@ -0,0 +1,8 @@ +/// + +import stackMapper = require("stack-mapper"); + +var map: any = {}; +var sm: stackMapper.StackMapper = stackMapper(map); +var input: stackMapper.Callsite[] = [{ filename: "boo", line: 1, column: 10 }]; +var cs: stackMapper.Callsite[] = sm.map(input); diff --git a/stack-mapper/stack-mapper.d.ts b/stack-mapper/stack-mapper.d.ts new file mode 100644 index 000000000..3426f5b9d --- /dev/null +++ b/stack-mapper/stack-mapper.d.ts @@ -0,0 +1,46 @@ +// Type definitions for stack-mapper 0.2.2 +// Project: https://github.com/thlorenz/stack-mapper +// Definitions by: Rogier Schouten +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module "stack-mapper" { + + module stackMapper { + + export class StackMapper { + + /** + * Maps the trace statements of the given error stack and replaces locations + * referencing code in the generated file with the locations inside the original files. + * + * @name map + * @function + * @param {Array} array of callsite objects (see readme for details about Callsite object) + * @return {Array.} info about the error stack with adapted locations, each with the following properties + * - filename: original filename + * - line: origial line in that filename of the trace + * - column: origial column on that line of the trace + */ + public map(stack: Callsite[]): Callsite[]; + } + + export interface Callsite { + filename: string; + line: number; + column: number; + } + + } + + /** + * Returns a Stackmapper that will use the given source map to map error trace locations. + * + * @name stackMapper + * @function + * @param {Object} sourcemap source map for the generated file + * @return {StackMapper} stack mapper for the particular source map + */ + function stackMapper(sourcemap: any): stackMapper.StackMapper; + + export = stackMapper; +} From c0391f4fcf1416b569c5b2fe5c323ace99364dd1 Mon Sep 17 00:00:00 2001 From: Rogier Schouten Date: Tue, 24 Mar 2015 11:53:04 +0100 Subject: [PATCH 39/71] Add definitions for fs-mock. --- CONTRIBUTORS.md | 1 + fs-mock/fs-mock-tests.ts | 23 +++++++ fs-mock/fs-mock.d.ts | 144 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 168 insertions(+) create mode 100644 fs-mock/fs-mock-tests.ts create mode 100644 fs-mock/fs-mock.d.ts diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 0db9eae38..5faf5871d 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -231,6 +231,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](fpsmeter/FPSMeter.d.ts) [FPSmeter](http://darsa.in/fpsmeter) by [Aaron Lampros](http://github.com/alampros) * [:link:](from/from.d.ts) [from](https://github.com/dominictarr/from) by [Bart van der Schoor](https://github.com/Bartvds) * [:link:](fs-extra/fs-extra.d.ts) [fs-extra](https://github.com/jprichardson/node-fs-extra) by [midknight41](https://github.com/midknight41) +* [:link:](fs-mock/fs-mock.d.ts) [fs-mock](https://github.com/sakren/node-fs-mock) by [Rogier Schouten](https://github.com/rogierschouten) * [:link:](ftdomdelegate/ftdomdelegate.d.ts) [ftdomdelegate](https://github.com/ftlabs/ftdomdelegate) by [Christian Holm Nielsen](https://github.com/dotnetnerd) * [:link:](fullCalendar/fullCalendar.d.ts) [FullCalendar](http://arshaw.com/fullcalendar) by [Neil Stalker](https://github.com/nestalk) * [:link:](fuse/fuse.d.ts) [Fuse.js](https://github.com/krisk/Fuse) by [Greg Smith](https://github.com/smrq) diff --git a/fs-mock/fs-mock-tests.ts b/fs-mock/fs-mock-tests.ts new file mode 100644 index 000000000..953b27472 --- /dev/null +++ b/fs-mock/fs-mock-tests.ts @@ -0,0 +1,23 @@ +/// + +import FS = require("fs-mock"); + +var fs: FS = new FS({ + 'Users': { + 'David': { + 'password.txt': 'my super password' + } + } +}, { + windows: true +}); + +var fsopts: FS.Opts = { + windows: true, + drives: ["A", "B"], + root: "/" +}; + +fs.rename("/a/b.txt", "/a/c/txt", (err?: Error): void => { + // nothing +}); diff --git a/fs-mock/fs-mock.d.ts b/fs-mock/fs-mock.d.ts new file mode 100644 index 000000000..fdf82b4d1 --- /dev/null +++ b/fs-mock/fs-mock.d.ts @@ -0,0 +1,144 @@ +// Type definitions for fs-mock 1.1.3 +// Project: https://github.com/sakren/node-fs-mock +// Definitions by: Rogier Schouten +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +declare module "fs-mock" { + import stream = require("stream"); + import events = require("events"); + import fs = require("fs"); + + module FS { + export interface Opts { + windows?: boolean; + drives?: string[]; + root?: string; + } + } + + class FS { + constructor(content: any, opts?: FS.Opts) + + rename(oldPath: string, newPath: string, callback?: (err?: NodeJS.ErrnoException) => void): void; + renameSync(oldPath: string, newPath: string): void; + truncate(path: string, callback?: (err?: NodeJS.ErrnoException) => void): void; + truncate(path: string, len: number, callback?: (err?: NodeJS.ErrnoException) => void): void; + truncateSync(path: string, len?: number): void; + ftruncate(fd: number, callback?: (err?: NodeJS.ErrnoException) => void): void; + ftruncate(fd: number, len: number, callback?: (err?: NodeJS.ErrnoException) => void): void; + ftruncateSync(fd: number, len?: number): void; + chown(path: string, uid: number, gid: number, callback?: (err?: NodeJS.ErrnoException) => void): void; + chownSync(path: string, uid: number, gid: number): void; + fchown(fd: number, uid: number, gid: number, callback?: (err?: NodeJS.ErrnoException) => void): void; + fchownSync(fd: number, uid: number, gid: number): void; + lchown(path: string, uid: number, gid: number, callback?: (err?: NodeJS.ErrnoException) => void): void; + lchownSync(path: string, uid: number, gid: number): void; + chmod(path: string, mode: number, callback?: (err?: NodeJS.ErrnoException) => void): void; + chmod(path: string, mode: string, callback?: (err?: NodeJS.ErrnoException) => void): void; + chmodSync(path: string, mode: number): void; + chmodSync(path: string, mode: string): void; + fchmod(fd: number, mode: number, callback?: (err?: NodeJS.ErrnoException) => void): void; + fchmod(fd: number, mode: string, callback?: (err?: NodeJS.ErrnoException) => void): void; + fchmodSync(fd: number, mode: number): void; + fchmodSync(fd: number, mode: string): void; + lchmod(path: string, mode: number, callback?: (err?: NodeJS.ErrnoException) => void): void; + lchmod(path: string, mode: string, callback?: (err?: NodeJS.ErrnoException) => void): void; + lchmodSync(path: string, mode: number): void; + lchmodSync(path: string, mode: string): void; + stat(path: string, callback?: (err: NodeJS.ErrnoException, stats: fs.Stats) => any): void; + lstat(path: string, callback?: (err: NodeJS.ErrnoException, stats: fs.Stats) => any): void; + fstat(fd: number, callback?: (err: NodeJS.ErrnoException, stats: fs.Stats) => any): void; + statSync(path: string): fs.Stats; + lstatSync(path: string): fs.Stats; + fstatSync(fd: number): fs.Stats; + link(srcpath: string, dstpath: string, callback?: (err?: NodeJS.ErrnoException) => void): void; + linkSync(srcpath: string, dstpath: string): void; + symlink(srcpath: string, dstpath: string, type?: string, callback?: (err?: NodeJS.ErrnoException) => void): void; + symlinkSync(srcpath: string, dstpath: string, type?: string): void; + readlink(path: string, callback?: (err: NodeJS.ErrnoException, linkString: string) => any): void; + readlinkSync(path: string): string; + realpath(path: string, callback?: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void; + realpath(path: string, cache: {[path: string]: string}, callback: (err: NodeJS.ErrnoException, resolvedPath: string) =>any): void; + realpathSync(path: string, cache?: {[path: string]: string}): string; + unlink(path: string, callback?: (err?: NodeJS.ErrnoException) => void): void; + unlinkSync(path: string): void; + rmdir(path: string, callback?: (err?: NodeJS.ErrnoException) => void): void; + rmdirSync(path: string): void; + mkdir(path: string, callback?: (err?: NodeJS.ErrnoException) => void): void; + mkdir(path: string, mode: number, callback?: (err?: NodeJS.ErrnoException) => void): void; + mkdir(path: string, mode: string, callback?: (err?: NodeJS.ErrnoException) => void): void; + mkdirSync(path: string, mode?: number): void; + mkdirSync(path: string, mode?: string): void; + readdir(path: string, callback?: (err: NodeJS.ErrnoException, files: string[]) => void): void; + readdirSync(path: string): string[]; + close(fd: number, callback?: (err?: NodeJS.ErrnoException) => void): void; + closeSync(fd: number): void; + open(path: string, flags: string, callback?: (err: NodeJS.ErrnoException, fd: number) => any): void; + open(path: string, flags: string, mode: number, callback?: (err: NodeJS.ErrnoException, fd: number) => any): void; + open(path: string, flags: string, mode: string, callback?: (err: NodeJS.ErrnoException, fd: number) => any): void; + openSync(path: string, flags: string, mode?: number): number; + openSync(path: string, flags: string, mode?: string): number; + utimes(path: string, atime: number, mtime: number, callback?: (err?: NodeJS.ErrnoException) => void): void; + utimes(path: string, atime: Date, mtime: Date, callback?: (err?: NodeJS.ErrnoException) => void): void; + utimesSync(path: string, atime: number, mtime: number): void; + utimesSync(path: string, atime: Date, mtime: Date): void; + futimes(fd: number, atime: number, mtime: number, callback?: (err?: NodeJS.ErrnoException) => void): void; + futimes(fd: number, atime: Date, mtime: Date, callback?: (err?: NodeJS.ErrnoException) => void): void; + futimesSync(fd: number, atime: number, mtime: number): void; + futimesSync(fd: number, atime: Date, mtime: Date): void; + fsync(fd: number, callback?: (err?: NodeJS.ErrnoException) => void): void; + fsyncSync(fd: number): void; + write(fd: number, buffer: Buffer, offset: number, length: number, position: number, callback?: (err: NodeJS.ErrnoException, written: number, buffer: Buffer) => void): void; + writeSync(fd: number, buffer: Buffer, offset: number, length: number, position: number): number; + read(fd: number, buffer: Buffer, offset: number, length: number, position: number, callback?: (err: NodeJS.ErrnoException, bytesRead: number, buffer: Buffer) => void): void; + readSync(fd: number, buffer: Buffer, offset: number, length: number, position: number): number; + readFile(filename: string, encoding: string, callback: (err: NodeJS.ErrnoException, data: string) => void): void; + readFile(filename: string, options: { encoding: string; flag?: string; }, callback: (err: NodeJS.ErrnoException, data: string) => void): void; + readFile(filename: string, options: { flag?: string; }, callback: (err: NodeJS.ErrnoException, data: Buffer) => void): void; + readFile(filename: string, callback: (err: NodeJS.ErrnoException, data: Buffer) => void ): void; + readFileSync(filename: string, encoding: string): string; + readFileSync(filename: string, options: { encoding: string; flag?: string; }): string; + readFileSync(filename: string, options?: { flag?: string; }): Buffer; + writeFile(filename: string, data: any, callback?: (err: NodeJS.ErrnoException) => void): void; + writeFile(filename: string, data: any, options: { encoding?: string; mode?: number; flag?: string; }, callback?: (err: NodeJS.ErrnoException) => void): void; + writeFile(filename: string, data: any, options: { encoding?: string; mode?: string; flag?: string; }, callback?: (err: NodeJS.ErrnoException) => void): void; + writeFileSync(filename: string, data: any, options?: { encoding?: string; mode?: number; flag?: string; }): void; + writeFileSync(filename: string, data: any, options?: { encoding?: string; mode?: string; flag?: string; }): void; + appendFile(filename: string, data: any, options: { encoding?: string; mode?: number; flag?: string; }, callback?: (err: NodeJS.ErrnoException) => void): void; + appendFile(filename: string, data: any, options: { encoding?: string; mode?: string; flag?: string; }, callback?: (err: NodeJS.ErrnoException) => void): void; + appendFile(filename: string, data: any, callback?: (err: NodeJS.ErrnoException) => void): void; + appendFileSync(filename: string, data: any, options?: { encoding?: string; mode?: number; flag?: string; }): void; + appendFileSync(filename: string, data: any, options?: { encoding?: string; mode?: string; flag?: string; }): void; + watchFile(filename: string, listener: (curr: fs.Stats, prev: fs.Stats) => void): void; + watchFile(filename: string, options: { persistent?: boolean; interval?: number; }, listener: (curr: fs.Stats, prev: fs.Stats) => void): void; + unwatchFile(filename: string, listener?: (curr: fs.Stats, prev: fs.Stats) => void): void; + watch(filename: string, listener?: (event: string, filename: string) => any): fs.FSWatcher; + watch(filename: string, options: { persistent?: boolean; }, listener?: (event: string, filename: string) => any): fs.FSWatcher; + exists(path: string, callback?: (exists: boolean) => void): void; + existsSync(path: string): boolean; + createReadStream(path: string, options?: { + flags?: string; + encoding?: string; + fd?: string; + mode?: number; + bufferSize?: number; + }): fs.ReadStream; + createReadStream(path: string, options?: { + flags?: string; + encoding?: string; + fd?: string; + mode?: string; + bufferSize?: number; + }): fs.ReadStream; + createWriteStream(path: string, options?: { + flags?: string; + encoding?: string; + string?: string; + }): fs.WriteStream; + } + + export = FS; + +} \ No newline at end of file From a565c4ed685e963c66de8b1ad828e0858afabd88 Mon Sep 17 00:00:00 2001 From: Armando Garcia Date: Tue, 24 Mar 2015 09:38:37 -0500 Subject: [PATCH 40/71] Update sinon-chai.d.ts declare module chai { interface Expect { callCount(count: number): Expect; } } Added --> callCount(count: number): Expect; --- sinon-chai/sinon-chai.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/sinon-chai/sinon-chai.d.ts b/sinon-chai/sinon-chai.d.ts index 0f639abb7..d16969dd9 100644 --- a/sinon-chai/sinon-chai.d.ts +++ b/sinon-chai/sinon-chai.d.ts @@ -11,6 +11,7 @@ declare module chai { calledOnce: Expect; calledTwice: Expect; calledThrice: Expect; + callCount(count: number): Expect; calledBefore(spy: Function): Expect; calledAfter(spy: Function): Expect; calledWithNew: Expect; From 54d3f5068568fb304e38492864c431e67d522c23 Mon Sep 17 00:00:00 2001 From: ryan-codingintrigue Date: Tue, 24 Mar 2015 15:47:47 +0000 Subject: [PATCH 41/71] Removed unnecessary reference to typescriptServices --- whatwg-fetch/whatwg-fetch.d.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/whatwg-fetch/whatwg-fetch.d.ts b/whatwg-fetch/whatwg-fetch.d.ts index 18340110a..d847463bd 100644 --- a/whatwg-fetch/whatwg-fetch.d.ts +++ b/whatwg-fetch/whatwg-fetch.d.ts @@ -3,7 +3,6 @@ // Definitions by: Ryan Graham // Definitions: https://github.com/borisyankov/DefinitelyTyped -/// /// declare class Request { @@ -38,17 +37,13 @@ declare enum RequestMode { "same-origin", "no-cors", "cors" } declare enum RequestCredentials { "omit", "same-origin", "include" } declare enum RequestCache { "default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached" } -declare class Headers implements TypeScript.Iterator { +declare class Headers { append(name: string, value: string): void; delete(name: string):void; get(name: string): string; getAll(name: string): Array; has(name: string): boolean; set(name: string, value: string): void; - - moveNext(): boolean; - - current(): string; } declare class Body { From 0c2ee8583c9a27873d7c40cc79fdcb79b5868150 Mon Sep 17 00:00:00 2001 From: vvakame Date: Wed, 25 Mar 2015 01:29:24 +0900 Subject: [PATCH 42/71] update CONTRIBUTORS.md --- CONTRIBUTORS.md | 47 +++++++++++++++++++++++++++++++++++------------ 1 file changed, 35 insertions(+), 12 deletions(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 55812debb..73a873bfa 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -19,7 +19,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](angularjs/angular-resource.d.ts) [Angular JS (ngResource module)](http://angularjs.org) by [Diego Vilar](http://github.com/diegovilar), [Michael Jess](http://github.com/miffels) * [:link:](angularjs/angular-route.d.ts) [Angular JS (ngRoute module)](http://angularjs.org) by [Jonathan Park](https://github.com/park9140) * [:link:](angularjs/angular-sanitize.d.ts) [Angular JS (ngSanitize module)](http://angularjs.org) by [Diego Vilar](http://github.com/diegovilar) -* [:link:](angular-ui/angular-ui-router.d.ts) [Angular JS (ui.router module)](https://github.com/angular-ui/ui-router) by [Michel Salib](https://github.com/michelsalib) +* [:link:](angular-ui-router/angular-ui-router.d.ts) [Angular JS (ui.router module)](https://github.com/angular-ui/ui-router) by [Michel Salib](https://github.com/michelsalib) * [:link:](angular-material/angular-material.d.ts) [Angular Material (ng.material module)](https://github.com/angular/material) by [Matt Traynham](https://github.com/mtraynham) * [:link:](angular-protractor/angular-protractor.d.ts) [Angular Protractor](https://github.com/angular/protractor) by [Bill Armstrong](https://github.com/BillArmstrong) * [:link:](angular-scenario/angular-scenario.d.ts) [Angular Scenario Testing (ngScenario module)](http://angularjs.org) by [RomanoLindano](https://github.com/RomanoLindano) @@ -32,7 +32,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](angular-notify/angular-notify.d.ts) [angular-notify](https://github.com/cgross/angular-notify) by [Suwato](https://github.com/Suwato/DefinitelyTyped) * [:link:](angular-scroll/angular-scroll.d.ts) [angular-scroll](https://github.com/oblador/angular-scroll) by [Sam Herrmann](https://github.com/samherrmann) * [:link:](angular-spinner/angular-spinner.d.ts) [angular-spinner.js](https://github.com/urish/angular-spinner) by [Marcin Biegała](https://github.com/Biegal) -* [:link:](angular-ui/angular-ui-sortable.d.ts) [angular.ui.sortable module](https://github.com/angular-ui/ui-sortable) by [Thodoris Greasidis](https://github.com/thgreasi) +* [:link:](angular-ui-sortable/angular-ui-sortable.d.ts) [angular.ui.sortable module](https://github.com/angular-ui/ui-sortable) by [Thodoris Greasidis](https://github.com/thgreasi) * [:link:](angular-agility/angular-agility.d.ts) [AngularAgility](https://github.com/AngularAgility/AngularAgility) by [Roland Zwaga](https://github.com/rolandzwaga) * [:link:](angularfire/angularfire.d.ts) [AngularFire](http://angularfire.com) by [Dénes Harmath](http://github.com/thSoft) * [:link:](angularLocalStorage/angularLocalStorage.d.ts) [AngularLocalStorage](https://github.com/agrublev/angularLocalStorage) by [Horiuchi_H](https://github.com/horiuchi) @@ -58,10 +58,12 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](auth0/auth0.d.ts) [Auth0.js](http://auth0.com) by [Robert McLaws](https://github.com/advancedrei) * [:link:](auth0.widget/auth0.widget.d.ts) [Auth0Widget.js](http://auth0.com) by [Robert McLaws](https://github.com/advancedrei) * [:link:](aws-sdk/aws-sdk.d.ts) [aws-sdk](https://github.com/aws/aws-sdk-js) by [midknight41](https://github.com/midknight41) +* [:link:](axios/axios.d.ts) [axios](https://github.com/mzabriskie/axios) by [Marcel Buesing](https://github.com/marcelbuesing) * [:link:](node-azure/azure.d.ts) [Azure SDK for Node](https://github.com/WindowsAzure/azure-sdk-for-node) by [Andrew Gaspar](https://github.com/AndrewGaspar), [Anti Veeranna](https://github.com/antiveeranna), [Maxime LUCE](https://github.com/SomaticIT) * [:link:](backbone/backbone.d.ts) [Backbone](http://backbonejs.org) by [Boris Yankov](https://github.com/borisyankov), [Natan Vivo](https://github.com/nvivo) * [:link:](backbone-relational/backbone-relational.d.ts) [Backbone-relational](http://backbonerelational.org) by [Eirik Hoem](https://github.com/eirikhm) * [:link:](backbone.layoutmanager/backbone.layoutmanager.d.ts) [Backbone.LayoutManager](http://layoutmanager.org) by [He Jiang](https://github.com/hejiang2000) +* [:link:](backbone.paginator/backbone.paginator.d.ts) [backbone.paginator](https://github.com/backbone-paginator/backbone.paginator) by [Nyamazing](https://github.com/Nyamazing) * [:link:](backbone.radio/backbone.radio.d.ts) [Backbone.Radio](https://github.com/marionettejs/backbone.radio) by [Peter Palotas](https://github.com/alphaleonis) * [:link:](backgrid/backgrid.d.ts) [Backgrid](http://backgridjs.com) by [Jeremy Lujan](https://github.com/jlujan) * [:link:](bcrypt/bcrypt.d.ts) [bcrypt](https://www.npmjs.org/package/bcrypt) by [Peter Harris](https://github.com/codeanimal) @@ -135,6 +137,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](createjs/createjs.d.ts) [CreateJS](http://www.createjs.com) by [Pedro Ferreira](https://bitbucket.org/drk4), [Chris Smith](https://github.com/evilangelist), [Satoru Kimura](https://github.com/gyohk) * [:link:](crossfilter/crossfilter.d.ts) [CrossFilter](https://github.com/square/crossfilter) by [Schmulik Raskin](https://github.com/schmuli) * [:link:](crossroads/crossroads.d.ts) [Crossroads.js](http://millermedeiros.github.io/crossroads.js) by [Diullei Gomes](https://github.com/diullei) +* [:link:](crypto-js/crypto-js.d.ts) [crypto-js](https://github.com/evanvosberg/crypto-js) by [Michael Zabka](https://github.com/misak113) * [:link:](cryptojs/cryptojs.d.ts) [CryptoJS](https://code.google.com/p/crypto-js) by [Gia Bảo @ Sân Đình](https://github.com/giabao) * [:link:](googlemaps.infobubble/google.maps.infobubble.d.ts) [CSS3 InfoBubble with tabs for Google Maps API V3](http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobubble/src) by [Johan Nilsson](https://github.com/Dashue) * [:link:](csurf/csurf.d.ts) [csurf](https://www.npmjs.org/package/csurf) by [Hiroki Horiuchi](https://github.com/horiuchi) @@ -143,6 +146,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](d3/d3.d.ts) [d3JS](http://d3js.org) by [Boris Yankov](https://github.com/borisyankov) * [:link:](d3.cloud.layout/d3.cloud.layout.d.ts) [d3JS cloud layout plugin by Jason Davies](https://github.com/jasondavies/d3-cloud) by [hans windhoff](https://github.com/hansrwindhoff) * [:link:](dagre/dagre.d.ts) [dagre](https://github.com/cpettitt/dagre) by [Qinfeng Chen](https://github.com/qinfchen) +* [:link:](dagre-d3/dagre-d3.d.ts) [dagre-d3.core.js](https://github.com/cpettitt/dagre-d3) by [Mark Wong Siang Kai](https://github.com/markwongsk) * [:link:](dat-gui/dat-gui.d.ts) [dat.GUI](https://github.com/dataarts/dat.gui) by [Satoru Kimura](https://github.com/gyohk) * [:link:](date.format.js/date.format.d.ts) [Date Format](http://blog.stevenlevithan.com/archives/date-time-format) by [Rob Stutton](https://github.com/balrob) * [:link:](datejs/datejs.d.ts) [DateJS](http://www.datejs.com) by [David Khristepher Santos](http://github.com/rupertavery) @@ -208,6 +212,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](fancybox/fancybox.d.ts) [fancyBox](https://github.com/fancyapps/fancyBox) by [Boris Yankov](https://github.com/borisyankov) * [:link:](fast-stats/fast-stats.d.ts) [fast-stats](https://github.com/bluesmoon/node-faststats) by [Rogier Schouten](https://github.com/rogierschouten) * [:link:](fastclick/fastclick.d.ts) [FastClick](https://github.com/ftlabs/fastclick) by [Shinnosuke Watanabe](https://github.com/shinnn) +* [:link:](whatwg-fetch/whatwg-fetch.d.ts) [fetch API](https://github.com/github/fetch) by [Ryan Graham](https://github.com/ryan-codingintrigue) * [:link:](fibers/fibers.d.ts) [fibers](https://github.com/laverdet/node-fibers) by [Carlos Ballesteros Velasco](https://github.com/soywiz) * [:link:](filewriter/filewriter.d.ts) [File API: Writer](http://www.w3.org/TR/file-writer-api) by [Kon](http://phyzkit.net) * [:link:](filesystem/filesystem.d.ts) [File System API](http://www.w3.org/TR/file-system-api) by [Kon](http://phyzkit.net) @@ -231,6 +236,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](fpsmeter/FPSMeter.d.ts) [FPSmeter](http://darsa.in/fpsmeter) by [Aaron Lampros](http://github.com/alampros) * [:link:](from/from.d.ts) [from](https://github.com/dominictarr/from) by [Bart van der Schoor](https://github.com/Bartvds) * [:link:](fs-extra/fs-extra.d.ts) [fs-extra](https://github.com/jprichardson/node-fs-extra) by [midknight41](https://github.com/midknight41) +* [:link:](fs-finder/fs-finder.d.ts) [fs-finder](https://github.com/sakren/node-fs-finder) by [Michael Zabka](https://github.com/misak113) * [:link:](fs-mock/fs-mock.d.ts) [fs-mock](https://github.com/sakren/node-fs-mock) by [Rogier Schouten](https://github.com/rogierschouten) * [:link:](ftdomdelegate/ftdomdelegate.d.ts) [ftdomdelegate](https://github.com/ftlabs/ftdomdelegate) by [Christian Holm Nielsen](https://github.com/dotnetnerd) * [:link:](fullCalendar/fullCalendar.d.ts) [FullCalendar](http://arshaw.com/fullcalendar) by [Neil Stalker](https://github.com/nestalk) @@ -251,8 +257,8 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](google.analytics/ga.d.ts) [Google Analytics (Classic and Universal)](https://developers.google.com/analytics/devguides/collection/gajs) by [Ronnie Haakon Hegelund](http://ronniehegelund.blogspot.dk), [Pat Kujawa](http://patkujawa.com) * [:link:](gapi/gapi.d.ts) [Google API Client](https://code.google.com/p/google-api-javascript-client) by [Frank M](https://github.com/sgtfrankieboy) * [:link:](google.feeds/google.feed.api.d.ts) [Google Feed Apis](https://developers.google.com/feed) by [RodneyJT](https://github.com/RodneyJT) -* [:link:](googlemaps/google.maps.d.ts) [Google Geolocation](https://developers.google.com/maps) by [Folia A/S](http://www.folia.dk) * [:link:](google.geolocation/google.geolocation.d.ts) [Google Geolocation](https://code.google.com/p/geo-location-javascript) by [Vincent Bortone](https://github.com/vbortone) +* [:link:](googlemaps/google.maps.d.ts) [Google Geolocation](https://developers.google.com/maps) by [Folia A/S](http://www.folia.dk) * [:link:](gapi.pagespeedonline/gapi.pagespeedonline.d.ts) [Google Page Speed Online Api](https://developers.google.com/speed/pagespeed) by [Frank M](https://github.com/sgtfrankieboy) * [:link:](google.picker/google.picker.d.ts) [Google Picker API](https://developers.google.com/picker) by [grapswiz](https://github.com/grapswiz) * [:link:](recaptcha/recaptcha.d.ts) [Google Recaptcha](https://www.google.com/recaptcha) by [Brent Jenkins](https://github.com/brentj73) @@ -291,6 +297,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](hammerjs/hammerjs.d.ts) [Hammer.js](http://hammerjs.github.io) by [Philip Bulley](https://github.com/milkisevil), [Han Lin Yap](https://github.com/codler) * [:link:](handlebars/handlebars.d.ts) [Handlebars](http://handlebarsjs.com) by [Boris Yankov](https://github.com/borisyankov) * [:link:](hapi/hapi.d.ts) [hapi](http://github.com/spumko/hapi) by [Jason Swearingen](http://github.com/jasonswearingen) +* [:link:](hasher/hasher.d.ts) [Hasher.js](https://github.com/millermedeiros/hasher) by [flyfishMT](https://github.com/flyfishMT) * [:link:](hashmap/hashmap.d.ts) [HashMap](https://github.com/flesler/hashmap) by [Rafał Wrzeszcz](http://wrzasq.pl) * [:link:](Headroom/headroom.d.ts) [headroom.js](http://wicky.nillia.ms/headroom.js) by [Jakub Olek](https://github.com/hakubo) * [:link:](heatmap.js/heatmap.d.ts) [heatmap.js](https://github.com/pa7/heatmap.js) by [Yang Guan](https://github.com/lookuptable) @@ -303,6 +310,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](touch-events/touch-events.d.ts) [HTML Touch Events](http://www.w3.org/TR/touch-events) by [Kevin Barabash](https://github.com/kevinb7) * [:link:](html2canvas/html2canvas.d.ts) [html2canvas.js](https://github.com/niklasvh/html2canvas) by [Richard Hepburn](https://github.com/rwhepburn) * [:link:](htmlparser2/htmlparser2.d.ts) [htmlparser2 v3.7.x](https://github.com/fb55/htmlparser2) by [James Roland Cabresos](https://github.com/staticfunction) +* [:link:](http-status/http-status.d.ts) [http-status](https://github.com/wdavidw/node-http-status) by [Michael Zabka](https://github.com/misak113) * [:link:](http-string-parser/http-string-parser.d.ts) [http-string-parser](https://github.com/apiaryio/http-string-parser) by [MIZUNE Pine](https://github.com/pine613) * [:link:](humane/humane.d.ts) [Humane](http://wavded.github.com/humane-js) by [jmvrbanac](https://github.com/jmvrbanac) * [:link:](i18n-node/i18n-node.d.ts) [i18n-node](https://github.com/mashpie/i18n-node) by [Maxime LUCE](https://github.com/SomaticIT) @@ -338,6 +346,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](jest/jest.d.ts) [Jest](http://facebook.github.io/jest) by [Asana](https://asana.com) * [:link:](jjv/jjv.d.ts) [JJV](https://github.com/acornejo/jjv) by [Wim Looman](https://github.com/Nemo157) * [:link:](jjve/jjve.d.ts) [JJVE](https://github.com/silas/jjve) by [Wim Looman](https://github.com/Nemo157) +* [:link:](johnny-five/johnny-five.d.ts) [johnny-five](https://github.com/rwaldron/johnny-five) by [Toshiya Nakakura](https://github.com/nakakura) * [:link:](joi/joi.d.ts) [joi](https://github.com/spumko/joi) by [Bart van der Schoor](https://github.com/Bartvds) * [:link:](jointjs/jointjs.d.ts) [Joint JS](http://www.jointjs.com) by [Aidan Reel](http://github.com/areel), [David Durman](http://github.com/DavidDurman), [Ewout Van Gossum](https://github.com/DenEwout) * [:link:](jqrangeslider/jqrangeslider.d.ts) [jQRangeSlider](http://ghusse.github.com/jQRangeSlider) by [Dániel Tar](https://github.com/qcz) @@ -480,6 +489,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](log4js/log4js.d.ts) [log4js](https://github.com/nomiddlename/log4js-node) by [Kentaro Okuno](http://github.com/armorik83) * [:link:](logg/logg.d.ts) [logg](https://github.com/dpup/node-logg) by [Bret Little](https://github.com/blittle) * [:link:](logrotate-stream/logrotate-stream.d.ts) [logrotate-stream](https://github.com/dstokes/logrotate-stream) by [Rogier Schouten](https://github.com/rogierschouten) +* [:link:](lolex/lolex.d.ts) [lolex](https://github.com/sinonjs/lolex) by [Wim Looman](https://github.com/Nemo157) * [:link:](long/long.d.ts) [Long.js](https://github.com/dcodeIO/Long.js) by [Toshihide Hara](https://github.com/kerug) * [:link:](lru-cache/lru-cache.d.ts) [lru-cache](https://github.com/isaacs/node-lru-cache) by [Bart van der Schoor](https://github.com/Bartvds) * [:link:](lscache/lscache.d.ts) [lscache](https://github.com/pamelafox/lscache) by [Chris Martinez](https://github.com/Chris-Martinezz) @@ -488,6 +498,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](main-bower-files/main-bower-files.d.ts) [main-bower-files](https://github.com/ck86/main-bower-files) by [Keita Kagurazaka](https://github.com/k-kagurazaka) * [:link:](mapbox/mapbox.d.ts) [Mapbox](https://www.mapbox.com/mapbox.js) by [Maxime Fabre](https://github.com/anahkiasen) * [:link:](mapsjs/mapsjs.d.ts) [Mapsjs](https://github.com/mapsjs) by [Matthew James Davis](https://github.com/davismj) +* [:link:](mariasql/mariasql.d.ts) [mariasql](https://github.com/mscdex/node-mariasql) by [MichaelBennett](https://github.com/bennett000) * [:link:](marionette/marionette.d.ts) [Marionette](https://github.com/marionettejs) by [Zeeshan Hamid](https://github.com/zhamid), [Natan Vivo](https://github.com/nvivo), [Sven Tschui](https://github.com/sventschui) * [:link:](marked/marked.d.ts) [Marked](https://github.com/chjj/marked) by [William Orr](https://github.com/worr) * [:link:](maskedinput/maskedinput.d.ts) [Masked Input plugin for jQuery](http://digitalbush.com/projects/masked-input-plugin) by [Lokesh Peta](https://github.com/lokeshpeta) @@ -521,6 +532,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](mkpath/mkpath.d.ts) [mkpath](https://www.npmjs.com/package/mkpath) by [Jared Klopper](https://github.com/optical) * [:link:](mocha/mocha.d.ts) [mocha](http://mochajs.org) by [Kazi Manzur Rashid](https://github.com/kazimanzurrashid), [otiai10](https://github.com/otiai10), [jt000](https://github.com/jt000) * [:link:](mocha-phantomjs/mocha-phantomjs.d.ts) [mocha-phantomjs](http://metaskills.net/mocha-phantomjs) by [Erik Schierboom](https://github.com/ErikSchierboom) +* [:link:](mock-fs/mock-fs.d.ts) [mock-fs](https://github.com/tschaub/mock-fs) by [Wim Looman](https://github.com/Nemo157) * [:link:](mockery/mockery.d.ts) [mockery](https://github.com/mfncooper/mockery) by [jt000](https://github.com/jt000) * [:link:](modernizr/modernizr.d.ts) [Modernizr](http://modernizr.com) by [Boris Yankov](https://github.com/borisyankov), [Theodore Brown](https://github.com/theodorejb) * [:link:](moment-timezone/moment-timezone.d.ts) [moment-timezone.js](http://momentjs.com/timezone) by [Michel Salib](https://github.com/michelsalib) @@ -537,6 +549,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](localForage/localForage.d.ts) [Mozilla's localForage](https://github.com/mozilla/localforage) by [david pichsenmeister](https://github.com/3x14159265) * [:link:](msgpack/msgpack.d.ts) [msgpack.js - MessagePack JavaScript Implementation](https://github.com/uupaa/msgpack.js) by [Shinya Mochizuki](https://github.com/enrapt-mochizuki) * [:link:](msnodesql/msnodesql.d.ts) [msnodesql](https://github.com/WindowsAzure/node-sqlserver) by [Boris Yankov](https://github.com/borisyankov), [Maxime LUCE](https://github.com/SomaticIT) +* [:link:](mssql/mssql.d.ts) [mssql](https://www.npmjs.com/package/mssql) by [COLSA Corporation](http://www.colsa.com) * [:link:](mu2/mu2.d.ts) [mu2](http://github.com/raycmorgan/mu) by [Jeff Goddard](https://github.com/jedigo) * [:link:](multer/multer.d.ts) [multer](https://github.com/expressjs/multer) by [jt000](https://github.com/jt000) * [:link:](mustache/mustache.d.ts) [Mustache](https://github.com/janl/mustache.js) by [Mark Ashley Bell](https://github.com/markashleybell) @@ -582,12 +595,15 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](nodeunit/nodeunit.d.ts) [nodeunit](https://github.com/caolan/nodeunit) by [Jeff Goddard](https://github.com/jedigo) * [:link:](nomnom/nomnom.d.ts) [nomnom](https://github.com/harthur/nomnom) by [Paul Vick](https://github.com/panopticoncentral) * [:link:](nopt/nopt.d.ts) [nopt](https://github.com/npm/nopt) by [jbondc](https://github.com/jbondc) -* [:link:](notify/notify.d.ts) [Notify.js](https://github.com/jpillora/notifyjs) by [Xiaohan Zhang](https://github.com/hellochar) * [:link:](notifyjs/notifyjs.d.ts) [notify.js](https://github.com/alexgibson/notify.js) by [soundTricker](https://github.com/soundTricker) +* [:link:](notify/notify.d.ts) [Notify.js](https://github.com/jpillora/notifyjs) by [Xiaohan Zhang](https://github.com/hellochar) +* [:link:](nouislider/nouislider.d.ts) [nouislider](https://github.com/leongersen/noUiSlider) by [Corey Jepperson](https://github.com/acoreyj) +* [:link:](wnumb/wnumb.d.ts) [nouislider](https://github.com/leongersen/wnumb) by [Corey Jepperson](https://github.com/acoreyj) * [:link:](noVNC/noVNC.d.ts) [noVNC](https://github.com/kanaka/noVNC) by [Ken Smith](https://github.com/smithkl42) * [:link:](npm/npm.d.ts) [npm](https://github.com/npm/npm) by [Maxime LUCE](https://github.com/SomaticIT) -* [:link:](nprogress/nprogress.d.ts) [NProgress](https://github.com/rstacruz/nprogress) by [Judah Gabriel Himango](http://debuggerdotbreak.wordpress.com) +* [:link:](nprogress/NProgress.d.ts) [NProgress](https://github.com/rstacruz/nprogress) by [Judah Gabriel Himango](http://debuggerdotbreak.wordpress.com) * [:link:](numeraljs/numeraljs.d.ts) [Numeral.js](https://github.com/adamwdraper/Numeral-js) by [Vincent Bortone](https://github.com/vbortone) +* [:link:](object-hash/object-hash.d.ts) [object-hash](https://github.com/puleos/object-hash) by [Michael Zabka](https://github.com/misak113) * [:link:](object-path/object-path.d.ts) [objectPath](https://github.com/mariocasciaro/object-path) by [Paulo Cesar](https://github.com/pocesar) * [:link:](oboe/oboe.d.ts) [oboe](https://github.com/jimhigson/oboe.js) by [Jared Klopper](https://github.com/optical) * [:link:](oclazyload/oclazyload.d.ts) [oc.LazyLoad](https://github.com/ocombe/ocLazyLoad) by [Roland Zwaga](https://github.com/rolandzwaga) @@ -602,7 +618,9 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](passport/passport.d.ts) [Passport](http://passportjs.org) by [Horiuchi_H](https://github.com/horiuchi) * [:link:](passport-strategy/passport-strategy.d.ts) [Passport Strategy module](https://github.com/jaredhanson/passport-strategy) by [Lior Mualem](https://github.com/liorm) * [:link:](passport-facebook/passport-facebook.d.ts) [passport-facebook](https://github.com/jaredhanson/passport-facebook) by [James Roland Cabresos](https://github.com/staticfunction) +* [:link:](passport-facebook-token/passport-facebook-token.d.ts) [passport-facebook-token](https://github.com/drudge/passport-facebook-token) by [Ray Martone](https://github.com/rmartone) * [:link:](passport-local/passport-local.d.ts) [passport-local](https://github.com/jaredhanson/passport-local) by [Maxime LUCE](https://github.com/SomaticIT) +* [:link:](path-to-regexp/path-to-regexp.d.ts) [path-to-regexp](https://github.com/pillarjs/path-to-regexp) by [xica](https://github.com/xica) * [:link:](pathwatcher/pathwatcher.d.ts) [pathwatcher](https://github.com/atom/node-pathwatcher) by [vvakame](https://github.com/vvakame) * [:link:](pdf/pdf.d.ts) [PDF.js](https://github.com/mozilla/pdf.js) by [Josh Baldwin](https://github.com/jbaldwin) * [:link:](peerjs/peerjs.d.ts) [PeerJS](http://peerjs.com) by [Toshiya Nakakura](https://github.com/nakakura) @@ -623,8 +641,8 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](podcast/podcast.d.ts) [podcast](http://github.com/maxnowack/node-podcast) by [Niklas Mollenhauer](https://github.com/nikeee) * [:link:](poly2tri/poly2tri.d.ts) [poly2tri](http://github.com/r3mi/poly2tri.js) by [Elemar Junior](https://github.com/elemarjr) * [:link:](polymer/polymer.d.ts) [polymer](https://github.com/polymer) by [Louis Grignon](https://github.com/lgrignon) -* [:link:](polymer/polymer.core-drawer-panel.d.ts) [polymer's paper-toast](https://github.com/Polymer/core-drawer-panel) by [Louis Grignon](https://github.com/lgrignon) * [:link:](polymer/polymer.paper-toast.d.ts) [polymer's paper-toast](https://github.com/Polymer/paper-toast) by [Louis Grignon](https://github.com/lgrignon) +* [:link:](polymer/polymer.core-drawer-panel.d.ts) [polymer's paper-toast](https://github.com/Polymer/core-drawer-panel) by [Louis Grignon](https://github.com/lgrignon) * [:link:](popcorn/popcorn.d.ts) [Popcorn](https://github.com/mozilla/popcorn-js) by [grapswiz](https://github.com/grapswiz) * [:link:](pouchDB/pouch.d.ts) [Pouch](http://pouchdb.com) by [Bill Sears](https://github.com/MrBigDog2U) * [:link:](power-assert/power-assert.d.ts) [power-assert](https://github.com/twada/power-assert) by [vvakame](https://github.com/vvakame) @@ -645,15 +663,15 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](qajax/qajax.d.ts) [Qajax](https://github.com/gre/qajax) by [Boltmade](https://github.com/Boltmade) * [:link:](qunit/qunit.d.ts) [QUnit](http://qunitjs.com) by [Diullei Gomes](https://github.com/diullei) * [:link:](rabbit.js/rabbit.js.d.ts) [rabbit.js](https://github.com/squaremo/rabbit.js) by [Wonshik Kim](https://github.com/wokim) -* [:link:](ractive/ractive.d.ts) [Ractive 0.7.0 edge f22ab8ad0a640591b1c263f57e21d1565cb26bf5](http://ractivejs.org) by [Han Lin Yap](http://yap.nu) +* [:link:](ractive/ractive.d.ts) [Ractive](http://ractivejs.org) by [Han Lin Yap](http://yap.nu) * [:link:](raphael/raphael.d.ts) [Raphael](http://raphaeljs.com) by [CheCoxshall](https://github.com/CheCoxshall) * [:link:](rappid/rappid.d.ts) [Rappid](http://jointjs.com/about-rappid) by [Ewout Van Gossum](https://github.com/DenEwout) * [:link:](ravenjs/ravenjs.d.ts) [Raven.js](https://github.com/getsentry/raven-js) by [Santi Albo](https://github.com/santialbo) +* [:link:](react/react.d.ts) [React (external module)](http://facebook.github.io/react) by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com) +* [:link:](react/react-global.d.ts) [React (internal module)](http://facebook.github.io/react) by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com) * [:link:](react-router/react-router.d.ts) [React Router](https://github.com/rackt/react-router) by [Yuichi Murata](https://github.com/mrk21) -* [:link:](react/react.d.ts) [React v0.13.0 RC2 (external module)](http://facebook.github.io/react) by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com) -* [:link:](react/react-global.d.ts) [React v0.13.0 RC2 (internal module)](http://facebook.github.io/react) by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com) -* [:link:](react/react-addons.d.ts) [ReactWithAddons v0.13.0 RC2 (external module)](http://facebook.github.io/react) by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com) -* [:link:](react/react-addons-global.d.ts) [ReactWithAddons v0.13.0 RC2 (internal module)](http://facebook.github.io/react) by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com) +* [:link:](react/react-addons.d.ts) [ReactWithAddons (external module)](http://facebook.github.io/react) by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com) +* [:link:](react/react-addons-global.d.ts) [ReactWithAddons (internal module)](http://facebook.github.io/react) by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com) * [:link:](readdir-stream/readdir-stream.d.ts) [readdir-stream](https://github.com/logicalparadox/readdir-stream) by [Bart van der Schoor](https://github.com/Bartvds) * [:link:](redis/redis.d.ts) [redis](https://github.com/mranney/node_redis) by [Carlos Ballesteros Velasco](https://github.com/soywiz), [Peter Harris](https://github.com/CodeAnimal) * [:link:](ref/ref.d.ts) [ref](https://github.com/TooTallNate/ref) by [Paul Loyd](https://github.com/loyd) @@ -662,6 +680,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](ref-union/ref-union.d.ts) [ref-union](https://github.com/TooTallNate/ref-union) by [Paul Loyd](https://github.com/loyd) * [:link:](request/request.d.ts) [request](https://github.com/mikeal/request) by [Carlos Ballesteros Velasco](https://github.com/soywiz), [bonnici](https://github.com/bonnici), [Bart van der Schoor](https://github.com/Bartvds) * [:link:](requirejs/require.d.ts) [RequireJS](http://requirejs.org) by [Josh Baldwin](https://github.com/jbaldwin) +* [:link:](response-time/response-time.d.ts) [response-time](https://github.com/expressjs/response-time) by [Uros Smolnik](https://github.com/urossmolnik) * [:link:](rest/rest.d.ts) [rest.js](https://github.com/cujojs/rest) by [Wim Looman](https://github.com/Nemo157) * [:link:](restangular/restangular.d.ts) [Restangular](https://github.com/mgonto/restangular) by [Boris Yankov](https://github.com/borisyankov) * [:link:](rethinkdb/rethinkdb.d.ts) [Rethinkdb](http://rethinkdb.com) by [Sean Hess](https://seanhess.github.io) @@ -686,6 +705,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](rx/rx.testing.d.ts) [RxJS-Testing](https://github.com/Reactive-Extensions/RxJS) by [Igor Oleinikov](https://github.com/Igorbek) * [:link:](rx/rx.time.d.ts) [RxJS-Time](http://rx.codeplex.com) by [Carl de Billy](http://carl.debilly.net), [Igor Oleinikov](https://github.com/Igorbek) * [:link:](rx/rx.virtualtime.d.ts) [RxJS-VirtualTime](http://rx.codeplex.com) by [gsino](http://www.codeplex.com/site/users/view/gsino), [Igor Oleinikov](https://github.com/Igorbek) +* [:link:](s3-uploader/s3-uploader.d.ts) [s3-uploader](https://www.npmjs.com/package/s3-uploader) by [COLSA Corporation](http://www.colsa.com) * [:link:](sammyjs/sammyjs.d.ts) [Sammy.js](http://sammyjs.org) by [Boris Yankov](https://github.com/borisyankov), [Oisin Grehan](https://github.com/oising) * [:link:](sanitize-filename/sanitize-filename.d.ts) [sanitize-filename](https://github.com/parshap/node-sanitize-filename) by [Wim Looman](https://github.com/Nemo157) * [:link:](sanitize-html/sanitize-html.d.ts) [sanitize-html](https://github.com/punkave/sanitize-html) by [Rogier Schouten](https://github.com/rogierschouten) @@ -697,6 +717,8 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](semver/semver.d.ts) [semver](https://github.com/isaacs/node-semver) by [Bart van der Schoor](https://github.com/Bartvds) * [:link:](sendgrid/sendgrid.d.ts) [sendgrid](https://github.com/sendgrid/sendgrid-nodejs) by [Maxime LUCE](https://github.com/SomaticIT) * [:link:](sequelize/sequelize.d.ts) [Sequelize 2.0.0 dev13](http://sequelizejs.com) by [samuelneff](https://github.com/samuelneff), [Peter Harris](https://github.com/codeanimal) +* [:link:](serve-favicon/serve-favicon.d.ts) [serve-favicon](https://github.com/expressjs/serve-favicon) by [Uros Smolnik](https://github.com/urossmolnik) +* [:link:](serve-static/serve-static.d.ts) [serve-static](https://github.com/expressjs/serve-static) by [Uros Smolnik](https://github.com/urossmolnik) * [:link:](sharedworker/SharedWorker.d.ts) [SharedWorker](http://www.w3.org/TR/workers) by [Toshiya Nakakura](https://github.com/nakakura) * [:link:](shelljs/shelljs.d.ts) [ShellJS](http://shelljs.org) by [Niklas Mollenhauer](https://github.com/nikeee) * [:link:](should-promised/should-promised.d.ts) [should-promised](https://github.com/shouldjs/promised) by [Yaroslav Admin](https://github.com/devoto13) @@ -731,7 +753,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](sprintf/sprintf.d.ts) [sprintff](https://github.com/maritz/node-sprintff) by [Carlos Ballesteros Velasco](https://github.com/soywiz) * [:link:](sharepoint/SharePoint.d.ts) [sptypescript](http://sptypescript.codeplex.com) by [Stanislav Vyshchepan](http://gandjustas.blogspot.ru), [Andrey Markeev](http://markeev.com) * [:link:](sqlite3/sqlite3.d.ts) [sqlite3](https://github.com/mapbox/node-sqlite3) by [Nick Malaguti](https://github.com/nmalaguti) -* [:link:](stack-mapper/stack-mapper.d.ts) [stack-mapper](https://github.com/thlorenz/stack-mapper) by [rogierschouten](https://github.com/rogierschouten) +* [:link:](stack-mapper/stack-mapper.d.ts) [stack-mapper](https://github.com/thlorenz/stack-mapper) by [Rogier Schouten](https://github.com/rogierschouten) * [:link:](stampit/stampit.d.ts) [stampit](https://github.com/ericelliott/stampit) by [Vasyl Boroviak](https://github.com/koresar) * [:link:](stats/stats.d.ts) [Stats.js r12](http://github.com/mrdoob/stats.js) by [Gregory Dalton](https://github.com/gregolai) * [:link:](status-bar/status-bar.d.ts) [status-bar](https://github.com/atom/status-bar) by [vvakame](https://github.com/vvakame) @@ -826,6 +848,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](webspeechapi/webspeechapi.d.ts) [Web Speech API](https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html) by [SaschaNaz](https://github.com/saschanaz) * [:link:](webcola/webcola.d.ts) [webcola](https://github.com/tgdwyer/WebCola) by [Qinfeng Chen](https://github.com/qinfchen) * [:link:](webcrypto/WebCrypto.d.ts) [WebCrypto](http://www.w3.org/TR/WebCryptoAPI) by [Lucas Dixon](https://github.com/iislucas) +* [:link:](webix/webix.d.ts) [Webix UI](http://webix.com) by [Maksim Kozhukh](http://github.com/mkozhukh) * [:link:](webrtc/MediaStream.d.ts) [WebRTC](http://dev.w3.org/2011/webrtc) by [Ken Smith](https://github.com/smithkl42) * [:link:](websocket/websocket.d.ts) [websocket](https://github.com/Worlize/WebSocket-Node) by [Paul Loyd](https://github.com/loyd) * [:link:](when/when.d.ts) [When](https://github.com/cujojs/when) by [Derek Cicerone](https://github.com/derekcicerone), [Wim Looman](https://github.com/Nemo157) From da74caeab8c15185a646d0090cd2c64bbe8a7ab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Morch=C3=B3n=20Poveda?= Date: Tue, 24 Mar 2015 17:42:07 +0100 Subject: [PATCH 43/71] Update knockout.d.ts Optional viewmodel on component registration --- knockout/knockout.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knockout/knockout.d.ts b/knockout/knockout.d.ts index c20207199..a906348a6 100644 --- a/knockout/knockout.d.ts +++ b/knockout/knockout.d.ts @@ -574,7 +574,7 @@ interface KnockoutComputedContext { declare module KnockoutComponentTypes { interface Config { - viewModel: ViewModelFunction | ViewModelSharedInstance | ViewModelFactoryFunction | AMDModule; + viewModel?: ViewModelFunction | ViewModelSharedInstance | ViewModelFactoryFunction | AMDModule; template: string | Node[]| DocumentFragment | TemplateElement | AMDModule; } From c7cb3bcbf71f92a527d18bde51ac7d892fb8076f Mon Sep 17 00:00:00 2001 From: Elad Zelingher Date: Tue, 24 Mar 2015 21:32:57 +0200 Subject: [PATCH 44/71] AutobahnJS definition --- autobahn/autobahn-tests.ts | 47 +++++++++ autobahn/autobahn.d.ts | 195 +++++++++++++++++++++++++++++++++++++ 2 files changed, 242 insertions(+) create mode 100644 autobahn/autobahn-tests.ts create mode 100644 autobahn/autobahn.d.ts diff --git a/autobahn/autobahn-tests.ts b/autobahn/autobahn-tests.ts new file mode 100644 index 000000000..ee9c41b3e --- /dev/null +++ b/autobahn/autobahn-tests.ts @@ -0,0 +1,47 @@ +/// + +class MyClass { + add2Count: number = 0; + session: autobahn.Session; + + constructor(session: autobahn.Session) { + this.session = session; + } + + add2(args: Array): number { + this.add2Count++; + return args[0] + args[1]; + } + + onEvent(args: Array): void { + console.log("Event:", args[0]); + } +} + +function test_client() { + var options: autobahn.IConnectionOptions = + { url: 'ws://127.0.0.1:8080/ws', realm: 'realm1' }; + + var connection = new autobahn.Connection(options); + + connection.onopen = session => { + var myInstance = new MyClass(session); + + // 1) subscribe to a topic + session.subscribe('com.myapp.hello', myInstance.onEvent); + + // 2) publish an event + session.publish('com.myapp.hello', ['Hello, world!']); + + // 3) register a procedure for remoting + session.register('com.myapp.add2', myInstance.add2); + + // 4) call a remote procedure + session.call('com.myapp.add2', [2, 3]).then( + res => { + console.log("Result:", res); + }); + }; + + connection.open(); +} \ No newline at end of file diff --git a/autobahn/autobahn.d.ts b/autobahn/autobahn.d.ts new file mode 100644 index 000000000..7191e9c4f --- /dev/null +++ b/autobahn/autobahn.d.ts @@ -0,0 +1,195 @@ +// Type definitions for AutobahnJS v0.9.6 +// Project: http://autobahn.ws/js/ +// Definitions by: Elad Zelingher +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// +declare module autobahn { + + export class Session { + id: number; + realm: string; + isOpen: boolean; + features: any; + caller_disclose_me: boolean; + publisher_disclose_me: boolean; + subscriptions: ISubscription[][]; + registrations: IRegistration[]; + + constructor(transport: ITransport, defer: DeferFactory, challenge: OnChallengeHandler); + + join(realm: string, authmethods: string[], authid: string): void; + + leave(reason: string, message: string): void; + + call(procedure: string, args?: any[], kwargs?: any, options?: ICallOptions): When.Promise; + + publish(topic: string, args?: any[], kwargs?: any, options?: IPublishOptions): When.Promise; + + subscribe(topic: string, handler: SubscribeHandler, options?: ISubscribeOptions): When.Promise; + + register(procedure: string, endpoint: RegisterEndpoint, options?: IRegisterOptions): When.Promise; + + unsubscribe(subscription: ISubscription): When.Promise; + + unregister(registration: IRegistration): When.Promise; + + prefix(prefix: string, uri: string): void; + + resolve(curie: string): string; + + onjoin: (roleFeatures: any) => void; + onleave: (reason: string, details: any) => void; + } + + interface IInvocation { + caller?: number; + progress?: boolean; + procedure: string; + } + + interface IEvent { + publication: number; + publisher?: number; + topic: string; + } + + interface IResult { + args: any[]; + kwargs: any; + } + + interface IError { + error: string; + args: any[]; + kwargs: any; + } + + type SubscribeHandler = (args?: any[], kwargs?: any, details?: IEvent) => void; + + interface ISubscription { + topic: string; + handler: SubscribeHandler; + options: ISubscribeOptions; + session: Session; + id: number; + active: boolean; + unsubscribe(): When.Promise; + } + + type RegisterEndpoint = (args?: any[], kwargs?: any, details?: IInvocation) => void; + + interface IRegistration { + procedure: string; + endpoint: RegisterEndpoint; + options: IRegisterOptions; + session: Session; + id: number; + active: boolean; + unregister(): When.Promise; + } + + interface IPublication { + id: number; + } + + interface ICallOptions { + timeout?: number; + receive_progress?: boolean; + disclose_me?: boolean; + } + + interface IPublishOptions { + exclude?: number[]; + eligible?: number[]; + disclose_me? : Boolean; + } + + interface ISubscribeOptions { + match? : string; + } + + interface IRegisterOptions { + disclose_caller?: boolean; + } + + export class Connection { + constructor(options?: IConnectionOptions); + + open(): void; + + close(reason: string, message: string): void; + + onopen: (session: Session, details: any) => void; + onclose: (reason: string, details: any) => boolean; + } + + interface ITransportDefinition { + url?: string; + protocols?: string[]; + type: string; + } + + type DeferFactory = () => any; + + type OnChallengeHandler = (session: Session, method: string, extra: any) => When.Promise; + + interface IConnectionOptions { + use_es6_promises?: boolean; + // use explicit deferred factory, e.g. jQuery.Deferred or Q.defer + use_deferred?: DeferFactory; + transports?: ITransportDefinition[]; + retry_if_unreachable?: boolean; + max_retries?: number; + initial_retry_delay?: number; + max_retry_delay?: number; + retry_delay_growth?: number; + retry_delay_jitter?: number; + url?: string; + protocols?: string[]; + onchallenge?: (session: Session, method: string, extra: any) => OnChallengeHandler; + realm?: string; + authmethods?: string[]; + authid?: string; + } + + interface ICloseEventDetails { + wasClean: boolean; + reason: string; + code: number; + } + + interface ITransport { + onopen: () => void; + onmessage: (message: any[]) => void; + onclose: (details: ICloseEventDetails) => void; + + send(message: any[]): void; + close(errorCode: number, reason?: string): void; + } + + interface ITransportFactory { + //constructor(options: any); + type: string; + create(): ITransport; + } + + interface ITransports { + register(name: string, factory: any): void; + isRegistered(name: string): boolean; + get(name: string): any; + list(): any[]; + } + + interface ILog { + debug(...args: any[]): void; + } + + interface IUtil { + assert(condition: boolean, message: string): void; + } + + var util: IUtil; + var log: ILog; + var transports: ITransports; +} \ No newline at end of file From 1e6120577ba9aba83008a3033569a3cf4cd8dd5c Mon Sep 17 00:00:00 2001 From: mbuesing Date: Tue, 24 Mar 2015 19:34:17 +0100 Subject: [PATCH 45/71] Fix axios definitions by removing enums and config generic --- axios/axios-tests.ts | 23 +++++++++-------------- axios/axios.d.ts | 29 ++++++++++++++--------------- 2 files changed, 23 insertions(+), 29 deletions(-) diff --git a/axios/axios-tests.ts b/axios/axios-tests.ts index a11421e19..93787cf3d 100644 --- a/axios/axios-tests.ts +++ b/axios/axios-tests.ts @@ -1,23 +1,18 @@ /// -interface InputBody { - random: number; -} +enum HttpMethod { GET, PUT, POST, DELETE, CONNECT, HEAD, OPTIONS, TRACE, PATCH } +enum ResponseType { arraybuffer, blob, document, json, text } interface Repository { id: number; name: string; } -function convenientGet () { - axios.get("https://api.github.com/repos/mzabriskie/axios") - .then(r => console.log(r.config.data.random)); -} +axios.get("https://api.github.com/repos/mzabriskie/axios") + .then(r => console.log(r.config.method)); -function get() { - axios({ - url: "https://api.github.com/repos/mzabriskie/axios", - method: Axios.HTTPMethod.GET, - headers: {}, - }).then(r => console.log("ID:" + r.data.id + " Name: " + r.data.name)); -} \ No newline at end of file +axios({ + url: "https://api.github.com/repos/mzabriskie/axios", + method: HttpMethod[HttpMethod.GET], + headers: {}, +}).then(r => console.log("ID:" + r.data.id + " Name: " + r.data.name)); diff --git a/axios/axios.d.ts b/axios/axios.d.ts index 5455ba167..c2a2873ea 100644 --- a/axios/axios.d.ts +++ b/axios/axios.d.ts @@ -6,8 +6,6 @@ /// declare module Axios { - export enum HTTPMethod { GET, PUT, POST, DELETE, CONNECT, HEAD, OPTIONS, TRACE, PATCH } - export enum ResponseType { arraybuffer, blob, document, json, text } /** * - request body data type @@ -46,7 +44,7 @@ declare module Axios { * indicates the type of data that the server will respond with * options are 'arraybuffer', 'blob', 'document', 'json', 'text' */ - responseType?: Axios.ResponseType; + responseType?: string; /** * name of the cookie to use as a value for xsrf token @@ -65,14 +63,15 @@ declare module Axios { */ interface AxiosXHRConfig extends AxiosXHRConfigBase { /** - * server URL that will be used for the request + * server URL that will be used for the request, options are: + * GET, PUT, POST, DELETE, CONNECT, HEAD, OPTIONS, TRACE, PATCH */ url: string; /** * request method to be used when making the request */ - method?: Axios.HTTPMethod; + method?: string; /** * data to be sent as the request body @@ -86,7 +85,7 @@ declare module Axios { * - expected response type, * - request body data type */ - interface AxiosXHR { + interface AxiosXHR { /** * Response that was provided by the server */ @@ -110,7 +109,7 @@ declare module Axios { /** * config that was provided to `axios` for the request */ - config: AxiosXHRConfig; + config: AxiosXHRConfig; } /** @@ -119,40 +118,40 @@ declare module Axios { */ interface AxiosStatic { - (config: AxiosXHRConfig): Promise>; + (config: AxiosXHRConfig): Promise>; - new (config: AxiosXHRConfig): Promise>; + new (config: AxiosXHRConfig): Promise>; /** * convenience alias, method = GET */ - get(url: string, config?: AxiosXHRConfigBase): Promise>; + get(url: string, config?: AxiosXHRConfigBase): Promise>; /** * convenience alias, method = DELETE */ - delete(url: string, config?: AxiosXHRConfigBase): Promise>; + delete(url: string, config?: AxiosXHRConfigBase): Promise>; /** * convenience alias, method = HEAD */ - head(url: string, config?: AxiosXHRConfigBase): Promise>; + head(url: string, config?: AxiosXHRConfigBase): Promise>; /** * convenience alias, method = POST */ - post(url: string, data?: any, config?: AxiosXHRConfigBase): Promise>; + post(url: string, data?: any, config?: AxiosXHRConfigBase): Promise>; /** * convenience alias, method = PUT */ - put(url: string, data?: any, config?: AxiosXHRConfigBase): Promise>; + put(url: string, data?: any, config?: AxiosXHRConfigBase): Promise>; /** * convenience alias, method = PATCH */ - patch(url: string, data?: any, config?: AxiosXHRConfigBase): Promise>; + patch(url: string, data?: any, config?: AxiosXHRConfigBase): Promise>; } } From f95f0eee795e7de4b86f213825f1c0d42711c1b2 Mon Sep 17 00:00:00 2001 From: Rogier Schouten Date: Wed, 25 Mar 2015 15:02:21 +0100 Subject: [PATCH 46/71] Add definitions for ftp and ftpd. --- CONTRIBUTORS.md | 2 + ftp/ftp-tests.ts | 28 +++++ ftp/ftp.d.ts | 294 +++++++++++++++++++++++++++++++++++++++++++++ ftpd/ftpd-tests.ts | 32 +++++ ftpd/ftpd.d.ts | 202 +++++++++++++++++++++++++++++++ 5 files changed, 558 insertions(+) create mode 100644 ftp/ftp-tests.ts create mode 100644 ftp/ftp.d.ts create mode 100644 ftpd/ftpd-tests.ts create mode 100644 ftpd/ftpd.d.ts diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 73a873bfa..c8f458501 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -239,6 +239,8 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](fs-finder/fs-finder.d.ts) [fs-finder](https://github.com/sakren/node-fs-finder) by [Michael Zabka](https://github.com/misak113) * [:link:](fs-mock/fs-mock.d.ts) [fs-mock](https://github.com/sakren/node-fs-mock) by [Rogier Schouten](https://github.com/rogierschouten) * [:link:](ftdomdelegate/ftdomdelegate.d.ts) [ftdomdelegate](https://github.com/ftlabs/ftdomdelegate) by [Christian Holm Nielsen](https://github.com/dotnetnerd) +* [:link:](ftp/ftp.d.ts) [ftp](https://github.com/mscdex/node-ftp) by [Rogier Schouten](https://github.com/rogierschouten) +* [:link:](ftpd/ftpd.d.ts) [ftp](https://github.com/sstur/nodeftpd) by [Rogier Schouten](https://github.com/rogierschouten) * [:link:](fullCalendar/fullCalendar.d.ts) [FullCalendar](http://arshaw.com/fullcalendar) by [Neil Stalker](https://github.com/nestalk) * [:link:](fuse/fuse.d.ts) [Fuse.js](https://github.com/krisk/Fuse) by [Greg Smith](https://github.com/smrq) * [:link:](jquery-galleria/jquery-galleria.d.ts) [galleria.js](https://github.com/aino/galleria) by [Robert Imig](https://github.com/rimig) diff --git a/ftp/ftp-tests.ts b/ftp/ftp-tests.ts new file mode 100644 index 000000000..2e37e53f9 --- /dev/null +++ b/ftp/ftp-tests.ts @@ -0,0 +1,28 @@ +/// +/// + +import Client = require("ftp"); +import fs = require("fs"); + +var c = new Client(); +c.on('ready', (): void => { + c.get('foo.txt', function(err: Error, stream: NodeJS.ReadableStream): void { + if (err) throw err; + stream.once('close', function(): void { + c.end(); + }); + stream.pipe(fs.createWriteStream('foo.local-copy.txt')); + }); +}); +// connect to localhost:21 as anonymous +c.connect(); + +c.connect({ + host: "127.0.0.1", + port: 21, + username: "Boo", + password: "secret" +}); + + + diff --git a/ftp/ftp.d.ts b/ftp/ftp.d.ts new file mode 100644 index 000000000..764505037 --- /dev/null +++ b/ftp/ftp.d.ts @@ -0,0 +1,294 @@ +// Type definitions for ftp 0.3.8 +// Project: https://github.com/mscdex/node-ftp +// Definitions by: Rogier Schouten +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +declare module "ftp" { + + import events = require("events"); + import tls = require("tls"); + + module Client { + + /** + * Options for Client#connect() + */ + export interface Options { + /** + * The hostname or IP address of the FTP server. Default: 'localhost' + */ + host?: string; + /** + * The port of the FTP server. Default: 21 + */ + port?: number; + /** + * Set to true for both control and data connection encryption, 'control' for control connection encryption only, or 'implicit' for + * implicitly encrypted control connection (this mode is deprecated in modern times, but usually uses port 990) Default: false + */ + secure?: string|boolean; + /** + * Additional options to be passed to tls.connect(). Default: (none) + */ + secureOptions?: tls.ConnectionOptions; + /** + * Username for authentication. Default: 'anonymous' + */ + user?: string; + /** + * Password for authentication. Default: 'anonymous@' + */ + password?: string; + /** + * How long (in milliseconds) to wait for the control connection to be established. Default: 10000 + */ + connTimeout?: number; + /** + * How long (in milliseconds) to wait for a PASV data connection to be established. Default: 10000 + */ + pasvTimeout?: number; + /** + * How often (in milliseconds) to send a 'dummy' (NOOP) command to keep the connection alive. Default: 10000 + */ + keepalive?: number; + } + + /** + * Element returned by Client#list() + */ + export interface ListingElement { + /** + * A single character denoting the entry type: 'd' for directory, '-' for file (or 'l' for symlink on **\*NIX only**). + */ + "type": string; + /** + * The name of the entry + */ + name: string; + /** + * The size of the entry in bytes + */ + size: string; + /** + * The last modified date of the entry + */ + date: Date; + /** + * The various permissions for this entry **(*NIX only)** + */ + rights?: { + /** + * An empty string or any combination of 'r', 'w', 'x'. + */ + user: string; + /** + * An empty string or any combination of 'r', 'w', 'x'. + */ + group: string; + /** + * An empty string or any combination of 'r', 'w', 'x'. + */ + other: string; + }; + /** + * The user name or ID that this entry belongs to **(*NIX only)**. + */ + owner?: string; + /** + * The group name or ID that this entry belongs to **(*NIX only)**. + */ + group?: string; + /** + * For symlink entries, this is the symlink's target **(*NIX only)**. + */ + target?: string; + /** + * True if the sticky bit is set for this entry **(*NIX only)**. + */ + sticky?: boolean; + } + } + + + /** + * FTP client. + * + * Events: + * @event greeting(< string >msg) - Emitted after connection. msg is the text the server sent upon connection. + * @event ready() - Emitted when connection and authentication were sucessful. + * @event close(< boolean >hadErr) - Emitted when the connection has fully closed. + * @event end() - Emitted when the connection has ended. + * @event error(< Error >err) - Emitted when an error occurs. In case of protocol-level errors, err contains + * a 'code' property that references the related 3-digit FTP response code. + */ + class Client extends events.EventEmitter { + + /** + * Creates and returns a new FTP client instance. + */ + constructor(); + + /** + * Connects to an FTP server. + */ + connect(config?: Client.Options): void; + + /** + * Closes the connection to the server after any/all enqueued commands have been executed. + */ + end(): void; + + /** + * Closes the connection to the server immediately. + */ + destroy(): void; + + /** + * Retrieves the directory listing of path. + * @param path defaults to the current working directory. + * @param useCompression defaults to false. + */ + list(path: string, useCompression: boolean, callback: (error: Error, listing: Client.ListingElement[]) => void): void; + list(path: string, callback: (error: Error, listing: Client.ListingElement[]) => void): void; + list(useCompression: boolean, callback: (error: Error, listing: Client.ListingElement[]) => void): void; + list(callback: (error: Error, listing: Client.ListingElement[]) => void): void; + + /** + * Retrieves a file at path from the server. useCompression defaults to false + */ + get(path: string, callback: (error: Error, stream: NodeJS.ReadableStream) => void): void; + get(path: string, useCompression: boolean, callback: (error: Error, stream: NodeJS.ReadableStream) => void): void; + + /** + * Sends data to the server to be stored as destPath. + * @param input can be a ReadableStream, a Buffer, or a path to a local file. + * @param destPath + * @param useCompression defaults to false. + */ + put(input: NodeJS.ReadableStream|Buffer|string, destPath: string, useCompression: boolean, callback: (error: Error) => void): void; + put(input: NodeJS.ReadableStream|Buffer|string, destPath: string, callback: (error: Error) => void): void; + + /** + * Same as put(), except if destPath already exists, it will be appended to instead of overwritten. + * @param input can be a ReadableStream, a Buffer, or a path to a local file. + * @param destPath + * @param useCompression defaults to false. + */ + append(input: NodeJS.ReadableStream|Buffer|string, destPath: string, useCompression: boolean, callback: (error: Error) => void): void; + append(input: NodeJS.ReadableStream|Buffer|string, destPath: string, callback: (error: Error) => void): void; + + /** + * Renames oldPath to newPath on the server + */ + rename(oldPath: string, newPath: string, callback: (error: Error) => void): void; + + /** + * Logout the user from the server. + */ + logout(callback: (error: Error) => void): void; + + /** + * Delete a file on the server + */ + delete(path: string, callback: (error: Error) => void): void; + + /** + * Changes the current working directory to path. callback has 2 parameters: < Error >err, < string >currentDir. + * Note: currentDir is only given if the server replies with the path in the response text. + */ + cwd(path: string, callback: (error: Error, currentDir?: string) => void): void; + + /** + * Aborts the current data transfer (e.g. from get(), put(), or list()) + */ + abort(callback: (error: Error) => void): void; + + /** + * Sends command (e.g. 'CHMOD 755 foo', 'QUOTA') using SITE. callback has 3 parameters: + * < Error >err, < _string >responseText, < integer >responseCode. + */ + site(command: string, callback: (error: Error, responseText: string, responseCode: number) => void): void; + + /** + * Retrieves human-readable information about the server's status. + */ + status(callback: (error: Error, status: string) => void): void; + + /** + * Sets the transfer data type to ASCII. + */ + ascii(callback: (error: Error) => void): void; + + /** + * Sets the transfer data type to binary (default at time of connection). + */ + binary(callback: (error: Error) => void): void; + + /** + * Optional "standard" commands (RFC 959) + * Creates a new directory, path, on the server. recursive is for enabling a 'mkdir -p' algorithm and defaults to false + */ + mkdir(path: string, recursive: boolean, callback: (error: Error) => void): void; + mkdir(path: string, callback: (error: Error) => void): void; + + + /** + * Optional "standard" commands (RFC 959) + * Removes a directory, path, on the server. If recursive, this call will delete the contents of the directory if it is not empty + */ + rmdir(path: string, recursive: boolean, callback: (error: Error) => void): void; + rmdir(path: string, callback: (error: Error) => void): void; + + /** + * Optional "standard" commands (RFC 959) + * Changes the working directory to the parent of the current directory + */ + cdup(callback: (error: Error) => void): void; + + /** + * Optional "standard" commands (RFC 959) + * Retrieves the current working directory + */ + pwd(callback: (error: Error, path: string) => void): void; + + /** + * Optional "standard" commands (RFC 959) + * Retrieves the server's operating system. + */ + system(callback: (error: Error, OS: string) => void): void; + + /** + * Optional "standard" commands (RFC 959) + * Similar to list(), except the directory is temporarily changed to path to retrieve the directory listing. + * This is useful for servers that do not handle characters like spaces and quotes in directory names well for the LIST command. + * This function is "optional" because it relies on pwd() being available. + */ + listSafe(path: string, useCompression: boolean, callback: (error: Error, listing: Client.ListingElement[]) => void): void; + listSafe(path: string, callback: (error: Error, listing: Client.ListingElement[]) => void): void; + listSafe(useCompression: boolean, callback: (error: Error, listing: Client.ListingElement[]) => void): void; + listSafe(callback: (error: Error, listing: Client.ListingElement[]) => void): void; + + /** + * Extended commands (RFC 3659) + * Retrieves the size of path + */ + size(path: string, callback: (error: Error, size: number) => void): void; + + /** + * Extended commands (RFC 3659) + * Retrieves the last modified date and time for path + */ + lastMod(path: string, callback: (error: Error, lastMod: Date) => void): void; + + /** + * Extended commands (RFC 3659) + * Sets the file byte offset for the next file transfer action (get/put) to byteOffset + */ + restart(byteOffset: number, callback: (error: Error) => void): void; + + } + + export = Client; +} diff --git a/ftpd/ftpd-tests.ts b/ftpd/ftpd-tests.ts new file mode 100644 index 000000000..9d8485a9e --- /dev/null +++ b/ftpd/ftpd-tests.ts @@ -0,0 +1,32 @@ +/// + +import ftpd = require("ftpd"); + +var options: ftpd.FtpServerOptions = { + pasvPortRangeStart: 4000, + pasvPortRangeEnd: 5000, + getInitialCwd: function(connection: ftpd.FtpConnection, callback: (error: Error, path: string) => void): void { + callback(null, "boo"); + }, + getRoot: function(connection: ftpd.FtpConnection): string { + return '/'; + } +}; + +var host: string = '10.0.0.42'; + +var server = new ftpd.FtpServer(host, options); + +server.on('client:connected', function(conn: ftpd.FtpConnection): void { + conn.on('command:user', function(user: string, success: () => void, failure: () => void): void { + success(); + }); + conn.on('command:pass', function( + pass: string, + success: (username: string, fs?: ftpd.FtpFileSystem) => void, + failure: () => void) { + success("Rogier"); + }); +}); + +server.listen(21); diff --git a/ftpd/ftpd.d.ts b/ftpd/ftpd.d.ts new file mode 100644 index 000000000..ac0123256 --- /dev/null +++ b/ftpd/ftpd.d.ts @@ -0,0 +1,202 @@ +// Type definitions for ftpd 0.2.11 +// Project: https://github.com/sstur/nodeftpd +// Definitions by: Rogier Schouten +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +declare module "ftpd" { + + import events = require("events"); + import fs = require("fs"); + import net = require("net"); + import tls = require("tls"); + + /** + * Options for FtpServer constructor + */ + export interface FtpServerOptions { + /** + * Gets the initial working directory for the user. Called after user is authenticated + * Typical cases where you would want/need the callback involve retrieving configurations from external datasources and suchlike. + */ + getInitialCwd: (connection: FtpConnection, callback?: (error: Error, path: string) => void) => void|string; + /** + * Gets the root directory for the user relative to the CWD. Called after getInitialCwd. The user is not able to escape this directory. + * Typical cases where you would want/need the callback involve retrieving configurations from external datasources and suchlike. + */ + getRoot: (connection: FtpConnection, callback?: (error: Error, path: string) => void) => void|string; + /** + * If set to true, then files which the client uploads are buffered in memory and then written to disk using writeFile. + * If false, files are written using writeStream. + */ + useWriteFile?: boolean; + /** + * If set to true, then files which the client uploads are slurped using 'readFile'. + * If false, files are read using readStream. + */ + useReadFile?: boolean; + /** + * Determines the maximum file size (in bytes) for which uploads are buffered in memory before being written to disk. + * Has an effect only if useWriteFile is set to true. + * If uploadMaxSlurpSize is not set, then there is no limit on buffer size. + */ + uploadMaxSlurpSize?: number; + /** + * The maximum number of concurrent calls to fs.stat which will be made when processing a LIST request. Default 5. + */ + maxStatsAtOnce?: number; + /** + * A function which can be used as the argument of an array's sort method. Used to sort filenames for directory listings. + * See [https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/sort] for more info. + */ + filenameSortFunc?: (a: string, b: string) => number; + /** + * A function which is applied to each filename before sorting. + * If set to false, filenames are unaltered. + */ + filenameSortMap?: ((a: string) => string) | boolean; + /** + * If this is set, then filenames are not sorted in responses to the LIST and NLST commands. + */ + dontSortFilenames?: boolean; + /** + * If set to true, then LIST and NLST treat the characters ? and * as literals instead of as wildcards. + */ + noWildcards?: boolean; + /** + * If this is set, the server will allow explicit TLS authentication. Value should be a dictionary which is suitable as the options argument of tls.createServer. + */ + tlsOptions?: tls.TlsOptions; + /** + * If this is set to true, and tlsOptions is also set, then the server will not allow logins over non-secure connections. + * Default false + */ + tlsOnly?: boolean; + /** + * I obviously set this to true when tlsOnly is on -someone needs to update this. + */ + allowUnauthorizedTls?: boolean; + /** + * Integer, specifies the lower-bound port (min port) for creating PASV connections + */ + pasvPortRangeStart?: number; + /** + * Integer, specifies the upper-bound port (max port) for creating PASV connections + */ + pasvPortRangeEnd?: number; + } + + /** + * Represents one Ftp connection. Incomplete type definition. + * + * @event command:user (username: string, success: () => void, failure: () => void) + * @event command:pass (password: string, success: (username: string, fs?: FtpFileSystem) => void, failure: () => void) + * The server raises a command:pass event which is given pass, success and failure arguments. + * On successful login, success should be called with a username argument. It may also optionally + * be given a second argument, which should be an object providing an implementation of the API for Node's fs module. + */ + export class FtpConnection extends events.EventEmitter { + server: FtpServer; + socket: net.Socket; + pasv: net.Server; + dataSocket: net.Socket; // the actual data socket + mode: string; + username: string; + cwd: string; + root: string; + hasQuit: boolean; + // State for handling TLS upgrades. + secure: boolean; + pbszReceived: boolean; + } + + + /** + * Optional mock fs implementation to set in the command:pass event of FtpConnection + */ + export interface FtpFileSystem { + unlink: (path: string, callback?: (err?: NodeJS.ErrnoException) => void) => void; + readdir: (path: string, callback?: (err: NodeJS.ErrnoException, files: string[]) => void) => void; + mkdir: ((path: string, callback?: (err?: NodeJS.ErrnoException) => void) => void) + | ((path: string, mode: number, callback?: (err?: NodeJS.ErrnoException) => void) => void) + | ((path: string, mode: string, callback?: (err?: NodeJS.ErrnoException) => void) => void); + open: ((path: string, flags: string, callback?: (err: NodeJS.ErrnoException, fd: number) => any) => void) + | ((path: string, flags: string, mode: number, callback?: (err: NodeJS.ErrnoException, fd: number) => any) => void) + | ((path: string, flags: string, mode: string, callback?: (err: NodeJS.ErrnoException, fd: number) => any) => void); + close: (fd: number, callback?: (err?: NodeJS.ErrnoException) => void) => void; + rmdir: (path: string, callback?: (err?: NodeJS.ErrnoException) => void) => void; + rename: (oldPath: string, newPath: string, callback?: (err?: NodeJS.ErrnoException) => void) => void; + /** + * specific object properties: { mode, isDirectory(), size, mtime } + */ + stat: (path: string, callback?: (err: NodeJS.ErrnoException, stats: fs.Stats) => any) => void; + /** + * if useReadFile option is not set or is false + */ + createReadStream?: (path: string, options?: { + flags?: string; + encoding?: string; + fd?: string; + mode?: string; + bufferSize?: number; + }) => fs.ReadStream; + /** + * if useWriteFile option is not set or is false + */ + createWriteStream?: (path: string, options?: { + flags?: string; + encoding?: string; + string?: string; + }) => fs.WriteStream; + /** + * if useReadFile option is set to 'true' + */ + readFile?: + ((filename: string, encoding: string, callback: (err: NodeJS.ErrnoException, data: string) => void) => void) + | ((filename: string, options: { encoding: string; flag?: string; }, callback: (err: NodeJS.ErrnoException, data: string) => void) => void) + | ((filename: string, options: { flag?: string; }, callback: (err: NodeJS.ErrnoException, data: Buffer) => void) => void) + | ((filename: string, callback: (err: NodeJS.ErrnoException, data: Buffer) => void ) => void); + /** + * if useWriteFile option is set to 'true' + */ + writeFile?: + ((filename: string, data: any, callback?: (err: NodeJS.ErrnoException) => void) => void) + | ((filename: string, data: any, options: { encoding?: string; mode?: number; flag?: string; }, callback?: (err: NodeJS.ErrnoException) => void) => void) + | ((filename: string, data: any, options: { encoding?: string; mode?: string; flag?: string; }, callback?: (err: NodeJS.ErrnoException) => void) => void); + + } + + /** + * FTP server + * + * Events: + * @event close net.Server close event + * @event error net.Server error event + * @event client:connected (connection: FtpConnection) + */ + export class FtpServer extends events.EventEmitter { + + /** + * @param host host is a string representation of the IP address clients use to connect to the FTP server. + * It's imperative that this actually reflects the remote IP the clients use to access the server, + * as this IP will be used in the establishment of PASV data connections. If this IP is not the one clients use to connect, + * you will see some strange behavior from the client side (hangs). + * @param options See test.js for a simple example. + */ + constructor(host: string, options: FtpServerOptions); + + /** + * Start listening, see net.Server.listen() + */ + public listen(port: number, host?: string, backlog?: number, listeningListener?: () => void): void; + + /** + * Stop listening + */ + public close(callback?: () => void): void; + } + + + +} From c7b467e42e5d876aee69e4430d0cd6252134289a Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Wed, 25 Mar 2015 21:07:30 +0700 Subject: [PATCH 47/71] mocha.d.ts: Boolean should be boolean. --- mocha/mocha.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mocha/mocha.d.ts b/mocha/mocha.d.ts index 6a2a53959..3f5d3e571 100644 --- a/mocha/mocha.d.ts +++ b/mocha/mocha.d.ts @@ -37,10 +37,10 @@ interface MochaSetupOptions { reporter?: any; // bail on the first test failure - bail?: Boolean; + bail?: boolean; // ignore global leaks - ignoreLeaks?: Boolean; + ignoreLeaks?: boolean; // grep string or regexp to filter tests with grep?: any; From 00ac8bd29c2b32f964616ed607b8f7b4dc4d8a16 Mon Sep 17 00:00:00 2001 From: Jason Saelhof Date: Wed, 25 Mar 2015 09:41:19 -0600 Subject: [PATCH 48/71] Add registerSounds method declaration --- soundjs/soundjs.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/soundjs/soundjs.d.ts b/soundjs/soundjs.d.ts index f719be5b3..90e50200d 100644 --- a/soundjs/soundjs.d.ts +++ b/soundjs/soundjs.d.ts @@ -177,6 +177,7 @@ declare module createjs { static registerManifest(manifest: Object[], basePath: string): Object; static registerPlugins(plugins: any[]): boolean; static registerSound(src: string | Object, id?: string, data?: number | Object, basePath?: string): Object; + static registerSounds(sounds: Object[], basePath?: string): Object[]; static removeAllSounds(): void; static removeManifest(manifest: any[], basePath: string): Object; static removeSound(src: string | Object, basePath: string): boolean; From ce9ef6f36e1cf68e8486949a8c52330bdb3f795f Mon Sep 17 00:00:00 2001 From: Tobias Bengfort Date: Wed, 25 Mar 2015 16:55:12 +0100 Subject: [PATCH 49/71] fix capitalization error --- leaflet/leaflet.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leaflet/leaflet.d.ts b/leaflet/leaflet.d.ts index ed6b2dbcf..4696e1f55 100644 --- a/leaflet/leaflet.d.ts +++ b/leaflet/leaflet.d.ts @@ -947,7 +947,7 @@ declare module L { * used in GeoJSON for points. If reverse is set to true, the numbers will be interpreted * as (longitude, latitude). */ - coordsToLatlng(coords: number[], reverse?: boolean): LatLng; + coordsToLatLng(coords: number[], reverse?: boolean): LatLng; /** * Creates a multidimensional array of LatLng objects from a GeoJSON coordinates @@ -955,7 +955,7 @@ declare module L { * 1 for an array of arrays of points, etc., 0 by default). If reverse is set to * true, the numbers will be interpreted as (longitude, latitude). */ - coordsToLatlngs(coords: number[], levelsDeep?: number, reverse?: boolean): LatLng[]; + coordsToLatLngs(coords: number[], levelsDeep?: number, reverse?: boolean): LatLng[]; } export var GeoJSON: GeoJSONStatic; From 1fa293c651fa77b3e5160ccfbcc61526d3b53606 Mon Sep 17 00:00:00 2001 From: Tobias Bengfort Date: Wed, 25 Mar 2015 16:55:49 +0100 Subject: [PATCH 50/71] coordsToLatLngs may take number[] or number[][] or number[][][]... --- leaflet/leaflet.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leaflet/leaflet.d.ts b/leaflet/leaflet.d.ts index 4696e1f55..efe8f8ebf 100644 --- a/leaflet/leaflet.d.ts +++ b/leaflet/leaflet.d.ts @@ -955,7 +955,7 @@ declare module L { * 1 for an array of arrays of points, etc., 0 by default). If reverse is set to * true, the numbers will be interpreted as (longitude, latitude). */ - coordsToLatLngs(coords: number[], levelsDeep?: number, reverse?: boolean): LatLng[]; + coordsToLatLngs(coords: any[], levelsDeep?: number, reverse?: boolean): any[]; } export var GeoJSON: GeoJSONStatic; From 7e957ea49b987ced50d4ee517cc52ab1c97b24c0 Mon Sep 17 00:00:00 2001 From: Tobias Bengfort Date: Wed, 25 Mar 2015 16:56:11 +0100 Subject: [PATCH 51/71] Strip Whitespace --- leaflet/leaflet.d.ts | 868 +++++++++++++++++++++---------------------- 1 file changed, 434 insertions(+), 434 deletions(-) diff --git a/leaflet/leaflet.d.ts b/leaflet/leaflet.d.ts index efe8f8ebf..1708a9d10 100644 --- a/leaflet/leaflet.d.ts +++ b/leaflet/leaflet.d.ts @@ -3,7 +3,7 @@ // Definitions by: Vladimir Zotov // Definitions: https://github.com/borisyankov/DefinitelyTyped - + declare module L { export interface AttributionOptions { @@ -13,16 +13,16 @@ declare module L { * Default value: 'bottomright'. */ position?: string; - + /** * The HTML text shown before the attributions. Pass false to disable. * Default value: 'Powered by Leaflet'. */ prefix?: string; - + } } - + declare module L { /** @@ -56,49 +56,49 @@ declare module L { * Extends the bounds to contain the given point. */ extend(point: Point): void; - + /** * Returns the center point of the bounds. */ getCenter(): Point; - + /** * Returns true if the rectangle contains the given one. */ contains(otherBounds: Bounds): boolean; - + /** * Returns true if the rectangle contains the given point. */ contains(point: Point): boolean; - + /** * Returns true if the rectangle intersects the given bounds. */ intersects(otherBounds: Bounds): boolean; - + /** * Returns true if the bounds are properly initialized. */ isValid(): boolean; - + /** * Returns the size of the given bounds. */ getSize(): Point; - + /** * The top left corner of the rectangle. */ min: Point; - + /** * The bottom right corner of the rectangle. */ max: Point; } } - + declare module L { module Browser { @@ -107,73 +107,73 @@ declare module L { * true for all Internet Explorer versions. */ export var ie: boolean; - + /** * true for Internet Explorer 6. */ export var ie6: boolean; - + /** * true for Internet Explorer 6. */ export var ie7: boolean; - + /** * true for webkit-based browsers like Chrome and Safari (including mobile * versions). */ export var webkit: boolean; - + /** * true for webkit-based browsers that support CSS 3D transformations. */ export var webkit3d: boolean; - + /** * true for Android mobile browser. */ export var android: boolean; - + /** * true for old Android stock browsers (2 and 3). */ export var android23: boolean; - + /** * true for modern mobile browsers (including iOS Safari and different Android * browsers). */ export var mobile: boolean; - + /** * true for mobile webkit-based browsers. */ export var mobileWebkit: boolean; - + /** * true for mobile Opera. */ export var mobileOpera: boolean; - + /** * true for all browsers on touch devices. */ export var touch: boolean; - + /** * true for browsers with Microsoft touch model (e.g. IE10). */ export var msTouch: boolean; - + /** * true for devices with Retina screens. */ export var retina: boolean; - + } } - - + + declare module L { /** @@ -196,17 +196,17 @@ declare module L { * Returns the current geographical position of the circle. */ getLatLng(): LatLng; - + /** * Returns the current radius of a circle. Units are in meters. */ getRadius(): number; - + /** * Sets the position of a circle to a new location. */ setLatLng(latlng: LatLng): Circle; - + /** * Sets the radius of a circle. Units are in meters. */ @@ -219,7 +219,7 @@ declare module L { } } - + declare module L { /** @@ -245,7 +245,7 @@ declare module L { * Sets the position of a circle marker to a new location. */ setLatLng(latlng: LatLng): CircleMarker; - + /** * Sets the radius of a circle marker. Units are in pixels. */ @@ -261,24 +261,24 @@ declare module L { declare module L { export interface ClassExtendOptions { /** - * options is a special property that unlike other objects that you pass - * to extend will be merged with the parent one instead of overriding it - * completely, which makes managing configuration of objects and default + * options is a special property that unlike other objects that you pass + * to extend will be merged with the parent one instead of overriding it + * completely, which makes managing configuration of objects and default * values convenient. */ options?: any; /** - * includes is a special class property that merges all specified objects + * includes is a special class property that merges all specified objects * into the class (such objects are called mixins). A good example of this - * is L.Mixin.Events that event-related methods like on, off and fire + * is L.Mixin.Events that event-related methods like on, off and fire * to the class. */ includes?: any; /** - * statics is just a convenience property that injects specified object - * properties as the static properties of the class, useful for defining + * statics is just a convenience property that injects specified object + * properties as the static properties of the class, useful for defining * constants. */ static?: any; @@ -491,7 +491,7 @@ declare module L { export function scale(options?: ScaleOptions): L.Control.Scale; } } - + declare module L { export interface ControlOptions { @@ -505,7 +505,7 @@ declare module L { } } - + declare module L { module CRS { @@ -516,28 +516,28 @@ declare module L { * Map's crs option. */ export var EPSG3857: ICRS; - + /** * A common CRS among GIS enthusiasts. Uses simple Equirectangular projection. */ export var EPSG4326: ICRS; - + /** * Rarely used by some commercial tile providers. Uses Elliptical Mercator * projection. */ export var EPSG3395: ICRS; - + /** * A simple CRS that maps longitude and latitude into x and y directly. May be * used for maps of flat surfaces (e.g. game maps). Note that the y axis should * still be inverted (going from bottom to top). */ export var Simple: ICRS; - + } } - + declare module L { /** @@ -556,7 +556,7 @@ declare module L { export interface DivIcon extends Icon { } } - + declare module L { export interface DivIconOptions { @@ -565,7 +565,7 @@ declare module L { * Size of the icon in pixels. Can be also set through CSS. */ iconSize?: Point; - + /** * The coordinates of the "tip" of the icon (relative to its top left corner). * The icon will be aligned so that this point is at the marker's geographical @@ -573,24 +573,24 @@ declare module L { * with negative margins. */ iconAnchor?: Point; - + /** * A custom class name to assign to the icon. * * Default value: 'leaflet-div-icon'. */ className?: string; - + /** * A custom HTML code to put inside the div element. * * Default value: ''. */ html?: string; - + } } - + declare module L { export interface DomEvent { @@ -601,13 +601,13 @@ declare module L { */ addListener(el: HTMLElement, type: string, fn: (e: Event) => void, context?: any): DomEvent; on(el: HTMLElement, type: string, fn: (e: Event) => void, context?: any): DomEvent; - + /** * Removes an event listener from the element. */ removeListener(el: HTMLElement, type: string, fn: (e: Event) => void, context?: any): DomEvent; off(el: HTMLElement, type: string, fn: (e: Event) => void, context?: any): DomEvent; - + /** * Stop the given event from propagation to parent elements. Used inside the * listener functions: @@ -617,41 +617,41 @@ declare module L { * }); */ stopPropagation(e: Event): DomEvent; - + /** * Prevents the default action of the event from happening (such as following * a link in the href of the a element, or doing a POST request with page reload * when form is submitted). Use it inside listener functions. */ preventDefault(e: Event): DomEvent; - + /** * Does stopPropagation and preventDefault at the same time. */ stop(e: Event): DomEvent; - + /** * Adds stopPropagation to the element's 'click', 'doubleclick', 'mousedown' * and 'touchstart' events. */ disableClickPropagation(el: HTMLElement): DomEvent; - + /** * Gets normalized mouse position from a DOM event relative to the container * or to the whole page if not specified. */ getMousePosition(e: Event, container?: HTMLElement): Point; - + /** * Gets normalized wheel delta from a mousewheel DOM event. */ getWheelDelta(e: Event): number; - + } export var DomEvent: DomEvent; } - + declare module L { module DomUtil { @@ -661,74 +661,74 @@ declare module L { * the element if it was passed directly. */ export function get(id: string): HTMLElement; - + /** * Returns the value for a certain style attribute on an element, including * computed values or values set through CSS. */ export function getStyle(el: HTMLElement, style: string): string; - + /** * Returns the offset to the viewport for the requested element. */ export function getViewportOffset(el: HTMLElement): Point; - + /** * Creates an element with tagName, sets the className, and optionally appends * it to container element. */ export function create(tagName: string, className: string, container?: HTMLElement): HTMLElement; - + /** * Makes sure text cannot be selected, for example during dragging. */ export function disableTextSelection(): void; - + /** * Makes text selection possible again. */ export function enableTextSelection(): void; - + /** * Returns true if the element class attribute contains name. */ export function hasClass(el: HTMLElement, name: string): boolean; - + /** * Adds name to the element's class attribute. */ export function addClass(el: HTMLElement, name: string): void; - + /** * Removes name from the element's class attribute. */ export function removeClass(el: HTMLElement, name: string): void; - + /** * Set the opacity of an element (including old IE support). Value must be from * 0 to 1. */ export function setOpacity(el: HTMLElement, value: number): void; - + /** * Goes through the array of style names and returns the first name that is a valid * style name for an element. If no such name is found, it returns false. Useful * for vendor-prefixed styles like transform. */ export function testProp(props: string[]): any; - + /** * Returns a CSS transform string to move an element by the offset provided in * the given point. Uses 3D translate on WebKit for hardware-accelerated transforms * and 2D on other browsers. */ export function getTranslateString(point: Point): string; - + /** * Returns a CSS transform string to scale an element (with the given scale origin). */ export function getScaleString(scale: number, origin: Point): string; - + /** * Sets the position of an element to coordinates specified by point, using * CSS translate or top/left positioning depending on the browser (used by @@ -736,25 +736,25 @@ declare module L { * if disable3D is true. */ export function setPosition(el: HTMLElement, point: Point, disable3D?: boolean): void; - + /** * Returns the coordinates of an element previously positioned with setPosition. */ export function getPosition(el: HTMLElement): Point; - + /** * Vendor-prefixed transition style name (e.g. 'webkitTransition' for WebKit). */ export var TRANSITION: string; - + /** * Vendor-prefixed transform style name. */ export var TRANSFORM: string; - + } } - + declare module L { /** @@ -778,12 +778,12 @@ declare module L { * Enables the dragging ability. */ enable(): void; - + /** * Disables the dragging ability. */ disable(): void; - + //////////////// //////////////// addEventListener(type: string, fn: (e: LeafletEvent) => void, context?: any): Draggable; @@ -801,10 +801,10 @@ declare module L { on(eventMap: any, context?: any): Draggable; off(eventMap?: any, context?: any): Draggable; } -} - - - +} + + + declare module L { /** @@ -827,23 +827,23 @@ declare module L { * group that has a bindPopup method. */ bindPopup(htmlContent: string, options?: PopupOptions): FeatureGroup; - + /** * Returns the LatLngBounds of the Feature Group (created from bounds and coordinates * of its children). */ getBounds(): LatLngBounds; - + /** * Sets the given path options to each layer of the group that has a setStyle method. */ setStyle(style: PathOptions): FeatureGroup; - + /** * Brings the layer group to the top of all other layers. */ bringToFront(): FeatureGroup; - + /** * Brings the layer group to the bottom of all other layers. */ @@ -857,13 +857,13 @@ declare module L { * Called on map.addLayer(layer). */ onAdd(map: Map): void; - + /** * Should contain all clean up code that removes the overlay's elements from * the DOM and removes listeners previously added in onAdd. Called on map.removeLayer(layer). */ onRemove(map: Map): void; - + //////////////// //////////////// addEventListener(type: string, fn: (e: LeafletEvent) => void, context?: any): FeatureGroup; @@ -882,7 +882,7 @@ declare module L { off(eventMap?: any, context?: any): FeatureGroup; } } - + declare module L { export interface FitBoundsOptions extends ZoomPanOptions { @@ -899,14 +899,14 @@ declare module L { /** * The same for bottom right corner of the map. - * + * * Default value: [0, 0]. */ paddingBottomRight?: Point; /** * Equivalent of setting both top left and bottom right padding to the same value. - * + * * Default value: [0, 0]. */ padding?: Point; @@ -919,7 +919,7 @@ declare module L { maxZoom?: number; } } - + declare module L { /** @@ -961,20 +961,20 @@ declare module L { export interface GeoJSON extends FeatureGroup { /** - * Adds a GeoJSON object to the layer. + * Adds a GeoJSON object to the layer. */ addData(data: any): boolean; - + /** * Changes styles of GeoJSON vector layers with the given style function. */ setStyle(style: (featureData: any) => any): GeoJSON; - + /** * Changes styles of GeoJSON vector layers with the given style options. */ setStyle(style: PathOptions): GeoJSON; - + /** * Resets the the given vector layer's style to the original GeoJSON style, * useful for resetting style after hover events. @@ -1017,9 +1017,9 @@ declare module L { } } - - - + + + declare module L { /** @@ -1056,7 +1056,7 @@ declare module L { } } } - + declare module L { export interface IconOptions { @@ -1066,18 +1066,18 @@ declare module L { * path). */ iconUrl?: string; - + /** * The URL to a retina sized version of the icon image (absolute or relative to * your script path). Used for Retina screen devices. */ iconRetinaUrl?: string; - + /** * Size of the icon image in pixels. */ iconSize?: Point; - + /** * The coordinates of the "tip" of the icon (relative to its top left corner). * The icon will be aligned so that this point is at the marker's geographical @@ -1085,43 +1085,43 @@ declare module L { * with negative margins. */ iconAnchor?: Point; - + /** * The URL to the icon shadow image. If not specified, no shadow image will be * created. */ shadowUrl?: string; - + /** * The URL to the retina sized version of the icon shadow image. If not specified, * no shadow image will be created. Used for Retina screen devices. */ shadowRetinaUrl?: string; - + /** * Size of the shadow image in pixels. */ shadowSize?: Point; - + /** * The coordinates of the "tip" of the shadow (relative to its top left corner) * (the same as iconAnchor if not specified). */ shadowAnchor?: Point; - + /** * The coordinates of the point from which popups will "open", relative to the * icon anchor. */ popupAnchor?: Point; - + /** * A custom class name to assign to both icon and shadow images. Empty by default. */ className?: string; } } - + declare module L { export interface IControl { @@ -1132,7 +1132,7 @@ declare module L { * containing the control. Called on map.addControl(control) or control.addTo(map). */ onAdd(map: Map): HTMLElement; - + /** * Optional, should contain all clean up code (e.g. removes control's event * listeners). Called on map.removeControl(control) or control.removeFrom(map). @@ -1141,7 +1141,7 @@ declare module L { onRemove(map: Map): void; } } - + declare module L { export interface ICRS { @@ -1150,35 +1150,35 @@ declare module L { * Projection that this CRS uses. */ projection: IProjection; - + /** * Transformation that this CRS uses to turn projected coordinates into screen * coordinates for a particular tile service. */ transformation: Transformation; - + /** * Standard code name of the CRS passed into WMS services (e.g. 'EPSG:3857'). */ code: string; - + /** * Projects geographical coordinates on a given zoom into pixel coordinates. */ latLngToPoint(latlng: LatLng, zoom: number): Point; - + /** * The inverse of latLngToPoint. Projects pixel coordinates on a given zoom * into geographical coordinates. */ pointToLatLng(point: Point, zoom: number): LatLng; - + /** * Projects geographical coordinates into coordinates in units accepted * for this CRS (e.g. meters for EPSG:3857, for passing it to WMS services). */ project(latlng: LatLng): Point; - + /** * Returns the scale used when transforming projected coordinates into pixel * coordinates for a particular zoom. For example, it returns 256 * 2^zoom for @@ -1190,10 +1190,10 @@ declare module L { * Returns the size of the world in pixels for a particular zoom. */ getSize(zoom: number): Point; - + } } - + declare module L { export interface IEventPowered { @@ -1205,7 +1205,7 @@ declare module L { * dblclick'). */ addEventListener(type: string, fn: (e: LeafletEvent) => void, context?: any): T; - + /** * The same as above except the listener will only get fired once and then removed. */ @@ -1214,29 +1214,29 @@ declare module L { * Adds a set of type/listener pairs, e.g. {click: onClick, mousemove: onMouseMove} */ addEventListener(eventMap: any, context?: any): T; - + /** * Removes a previously added listener function. If no function is specified, * it will remove all the listeners of that particular event from the object. */ removeEventListener(type: string, fn?: (e: LeafletEvent) => void, context?: any): T; - + /** * Removes a set of type/listener pairs. */ removeEventListener(eventMap?: any, context?: any): T; - + /** * Returns true if a particular event type has some listeners attached to it. */ hasEventListeners(type: string): boolean; - + /** * Fires an event of the specified type. You can optionally provide an data object * — the first argument of the listener function will contain its properties. */ fireEvent(type: string, data?: any): T; - + /** * Removes all listeners to all events on the object. */ @@ -1266,14 +1266,14 @@ declare module L { * Alias to removeEventListener. */ off(eventMap?: any, context?: any): T; - + /** * Alias to fireEvent. */ fire(type: string, data?: any): T; } } - + declare module L { export interface IHandler { @@ -1282,12 +1282,12 @@ declare module L { * Enables the handler. */ enable(): void; - + /** * Disables the handler. */ disable(): void; - + /** * Returns true if the handler is enabled. */ @@ -1298,7 +1298,7 @@ declare module L { initialize(map: Map): void; } } - + declare module L { export interface ILayer { @@ -1309,7 +1309,7 @@ declare module L { * Called on map.addLayer(layer). */ onAdd(map: Map): void; - + /** * Should contain all clean up code that removes the overlay's elements from * the DOM and removes listeners previously added in onAdd. Called on map.removeLayer(layer). @@ -1326,7 +1326,7 @@ declare module L { export var Events: LeafletMixinEvents; } } - + declare module L { /** @@ -1349,7 +1349,7 @@ declare module L { * Adds the overlay to the map. */ addTo(map: Map): ImageOverlay; - + /** * Sets the opacity of the overlay. */ @@ -1358,13 +1358,13 @@ declare module L { /** * Changes the URL of the image. */ - setUrl(imageUrl: string): ImageOverlay; - + setUrl(imageUrl: string): ImageOverlay; + /** * Brings the layer to the top of all overlays. */ bringToFront(): ImageOverlay; - + /** * Brings the layer to the bottom of all overlays. */ @@ -1378,7 +1378,7 @@ declare module L { * Called on map.addLayer(layer). */ onAdd(map: Map): void; - + /** * Should contain all clean up code that removes the overlay's elements from * the DOM and removes listeners previously added in onAdd. Called on map.removeLayer(layer). @@ -1386,7 +1386,7 @@ declare module L { onRemove(map: Map): void; } } - + declare module L { export interface ImageOverlayOptions { @@ -1397,7 +1397,7 @@ declare module L { opacity?: number; } } - + declare module L { export interface IProjection { @@ -1406,14 +1406,14 @@ declare module L { * Projects geographical coordinates into a 2D point. */ project(latlng: LatLng): Point; - + /** * The inverse of project. Projects a 2D point into geographical location. */ unproject(point: Point): LatLng; } } - + declare module L { /** @@ -1427,7 +1427,7 @@ declare module L { */ export function noConflict(): typeof L; } - + declare module L { /** * Creates an object representing a geographical point with the given latitude @@ -1483,29 +1483,29 @@ declare module L { * Haversine formula. See description on wikipedia */ distanceTo(otherLatlng: LatLng): number; - + /** * Returns true if the given LatLng point is at the same position (within a small * margin of error). */ equals(otherLatlng: LatLng): boolean; - + /** * Returns a string representation of the point (for debugging purposes). */ toString(): string; - + /** * Returns a new LatLng object with the longitude wrapped around left and right * boundaries (-180 to 180 by default). */ wrap(left: number, right: number): LatLng; - + /** * Latitude in degrees. */ lat: number; - + /** * Longitude in degrees. */ @@ -1547,7 +1547,7 @@ declare module L { * Extends the bounds to contain the given point. */ extend(latlng: LatLng): LatLngBounds; - + /** * Extends the bounds to contain the given bounds. */ @@ -1557,68 +1557,68 @@ declare module L { * Returns the south-west point of the bounds. */ getSouthWest(): LatLng; - + /** * Returns the north-east point of the bounds. */ getNorthEast(): LatLng; - + /** * Returns the north-west point of the bounds. */ getNorthWest(): LatLng; - + /** * Returns the south-east point of the bounds. */ getSouthEast(): LatLng; - + /** * Returns the center point of the bounds. */ getCenter(): LatLng; - + /** * Returns true if the rectangle contains the given one. */ contains(otherBounds: LatLngBounds): boolean; - + /** * Returns true if the rectangle contains the given point. */ contains(latlng: LatLng): boolean; - + /** * Returns true if the rectangle intersects the given bounds. */ intersects(otherBounds: LatLngBounds): boolean; - + /** * Returns true if the rectangle is equivalent (within a small margin of error) * to the given bounds. */ equals(otherBounds: LatLngBounds): boolean; - + /** * Returns a string with bounding box coordinates in a 'southwest_lng,southwest_lat,northeast_lng,northeast_lat' * format. Useful for sending requests to web services that return geo data. */ toBBoxString(): string; - + /** * Returns bigger bounds created by extending the current bounds by a given * percentage in each direction. */ pad(bufferRatio: number): LatLngBounds; - + /** * Returns true if the bounds are properly initialized. */ isValid(): boolean; - + } } - + declare module L { /** @@ -1640,17 +1640,17 @@ declare module L { * Adds the group of layers to the map. */ addTo(map: Map): LayerGroup; - + /** * Adds a given layer to the group. */ addLayer(layer: T): LayerGroup; - + /** * Removes a given layer from the group. */ removeLayer(layer: T): LayerGroup; - + /** * Removes a given layer of the given id from the group. */ @@ -1675,7 +1675,7 @@ declare module L { * Removes all the layers from the group. */ clearLayers(): LayerGroup; - + /** * Iterates over the layers of the group, optionally specifying context of * the iterator function. @@ -1695,7 +1695,7 @@ declare module L { * Called on map.addLayer(layer). */ onAdd(map: Map): void; - + /** * Should contain all clean up code that removes the overlay's elements from * the DOM and removes listeners previously added in onAdd. Called on map.removeLayer(layer). @@ -1703,8 +1703,8 @@ declare module L { onRemove(map: Map): void; } } - - + + declare module L { export interface LayersOptions { @@ -1715,7 +1715,7 @@ declare module L { * Default value: 'topright'. */ position?: string; - + /** * If true, the control will be collapsed into an icon and expanded on mouse hover * or touch. @@ -1723,7 +1723,7 @@ declare module L { * Default value: true. */ collapsed?: boolean; - + /** * If true, the control will assign zIndexes in increasing order to all of its * layers so that the order is preserved when switching them on/off. @@ -1731,10 +1731,10 @@ declare module L { * Default value: true. */ autoZIndex?: boolean; - + } } - + declare module L { export interface LeafletErrorEvent extends LeafletEvent { @@ -1743,14 +1743,14 @@ declare module L { * Error message. */ message: string; - + /** * Error code (if applicable). */ code: number; } } - + declare module L { export interface LeafletEvent { @@ -1766,7 +1766,7 @@ declare module L { target: any; } } - + declare module L { export interface LeafletGeoJSONEvent extends LeafletEvent { @@ -1775,24 +1775,24 @@ declare module L { * The layer for the GeoJSON feature that is being added to the map. */ layer: ILayer; - + /** * GeoJSON properties of the feature. */ properties: any; - + /** * GeoJSON geometry type of the feature. */ geometryType: string; - + /** * GeoJSON ID of the feature (if present). */ id: string; } } - + declare module L { export interface LeafletLayerEvent extends LeafletEvent { @@ -1803,7 +1803,7 @@ declare module L { layer: ILayer; } } - + declare module L { export interface LeafletLocationEvent extends LeafletEvent { @@ -1812,13 +1812,13 @@ declare module L { * Detected geographical location of the user. */ latlng: LatLng; - + /** * Geographical bounds of the area user is located in (with respect to the accuracy * of location). */ bounds: LatLngBounds; - + /** * Accuracy of location in meters. */ @@ -1848,10 +1848,10 @@ declare module L { * The time when the position was acquired. */ timestamp: number; - + } } - + declare module L { export interface LeafletMouseEvent extends LeafletEvent { @@ -1860,26 +1860,26 @@ declare module L { * The geographical point where the mouse event occured. */ latlng: LatLng; - + /** * Pixel coordinates of the point where the mouse event occured relative to * the map layer. */ layerPoint: Point; - + /** * Pixel coordinates of the point where the mouse event occured relative to * the map сontainer. */ containerPoint: Point; - + /** * The original DOM mouse event fired by the browser. */ originalEvent: MouseEvent; } } - + declare module L { export interface LeafletPopupEvent extends LeafletEvent { @@ -1901,7 +1901,7 @@ declare module L { distance: number; } } - + declare module L { export interface LeafletResizeEvent extends LeafletEvent { @@ -1910,14 +1910,14 @@ declare module L { * The old size before resize event. */ oldSize: Point; - + /** * The new size after the resize event. */ newSize: Point; } } - + declare module L { export interface LeafletTileEvent extends LeafletEvent { @@ -1926,14 +1926,14 @@ declare module L { * The tile element (image). */ tile: HTMLElement; - + /** * The source URL of the tile. */ url: string; } } - + declare module L { module LineUtil { @@ -1947,27 +1947,27 @@ declare module L { * released as a separated micro-library Simplify.js. */ export function simplify(points: Point[], tolerance: number): Point[]; - + /** * Returns the distance between point p and segment p1 to p2. */ export function pointToSegmentDistance(p: Point, p1: Point, p2: Point): number; - + /** * Returns the closest point from a point p on a segment p1 to p2. */ export function closestPointOnSegment(p: Point, p1: Point, p2: Point): number; - + /** * Clips the segment a to b by rectangular bounds (modifying the segment points * directly!). Used by Leaflet to only show polyline points that are on the screen * or near, increasing performance. */ export function clipSegment(a: Point, b: Point, bounds: Bounds): void; - + } } - + declare module L { export interface LocateOptions { @@ -1980,7 +1980,7 @@ declare module L { * Default value: false. */ watch?: boolean; - + /** * If true, automatically sets the map view to the user location with respect * to detection accuracy, or to world view if geolocation failed. @@ -1988,14 +1988,14 @@ declare module L { * Default value: false. */ setView?: boolean; - + /** * The maximum zoom for automatic view setting when using `setView` option. * * Default value: Infinity. */ maxZoom?: number; - + /** * Number of millisecond to wait for a response from geolocation before firing * a locationerror event. @@ -2003,7 +2003,7 @@ declare module L { * Default value: 10000. */ timeout?: number; - + /** * Maximum age of detected location. If less than this amount of milliseconds * passed since last geolocation response, locate will return a cached location. @@ -2011,7 +2011,7 @@ declare module L { * Default value: 0. */ maximumAge?: number; - + /** * Enables high accuracy, see description in the W3C spec. * @@ -2020,7 +2020,7 @@ declare module L { enableHighAccuracy?: boolean; } } - + declare module L { /** @@ -2063,17 +2063,17 @@ declare module L { * animation options. */ setView(center: LatLng, zoom?: number, options?: ZoomPanOptions): Map; - + /** * Sets the zoom of the map. */ setZoom(zoom: number, options?: ZoomOptions): Map; - + /** * Increases the zoom of the map by delta (1 by default). */ zoomIn(delta?: number, options?: ZoomOptions): Map; - + /** * Decreases the zoom of the map by delta (1 by default). */ @@ -2084,43 +2084,43 @@ declare module L { * (e.g. used internally for scroll zoom and double-click zoom). */ setZoomAround(latlng: LatLng, zoom: number, options?: ZoomOptions): Map; - + /** * Sets a map view that contains the given geographical bounds with the maximum * zoom level possible. */ fitBounds(bounds: LatLngBounds, options?: FitBoundsOptions): Map; - + /** * Sets a map view that mostly contains the whole world with the maximum zoom * level possible. */ fitWorld(options?: FitBoundsOptions): Map; - + /** * Pans the map to a given center. Makes an animated pan if new center is not more * than one screen away from the current one. */ panTo(latlng: LatLng, options?: PanOptions): Map; - + /** * Pans the map to the closest view that would lie inside the given bounds (if * it's not already). */ panInsideBounds(bounds: LatLngBounds): Map; - + /** * Pans the map by a given number of pixels (animated). */ panBy(point: Point, options?: PanOptions): Map; - + /** * Checks if the map container size changed and updates the map if so — call it * after you've changed the map size dynamically, also animating pan by default. * If options.pan is false, panning will not occur. */ invalidateSize(options: ZoomPanOptions): Map; - + /** * Checks if the map container size changed and updates the map if so — call it * after you've changed the map size dynamically, also animating pan by default. @@ -2132,7 +2132,7 @@ declare module L { * passing the given animation options through to `setView`, if required. */ setMaxBounds(bounds: LatLngBounds, options?: ZoomPanOptions): Map; - + /** * Tries to locate the user using Geolocation API, firing locationfound event * with location data on success or locationerror event on failure, and optionally @@ -2141,7 +2141,7 @@ declare module L { * details. */ locate(options?: LocateOptions): Map; - + /** * Stops watching location previously initiated by map.locate({watch: true}) * and aborts resetting the map view if map.locate was called with {setView: true}. @@ -2152,34 +2152,34 @@ declare module L { * Destroys the map and clears all related event listeners. */ remove(): Map; - + // Methods for Getting Map State /** * Returns the geographical center of the map view. */ getCenter(): LatLng; - + /** * Returns the current zoom of the map view. */ getZoom(): number; - + /** * Returns the minimum zoom level of the map. */ getMinZoom(): number; - + /** * Returns the maximum zoom level of the map. */ getMaxZoom(): number; - + /** * Returns the LatLngBounds of the current map view. */ getBounds(): LatLngBounds; - + /** * Returns the maximum zoom level on which the given bounds fit to the map view * in its entirety. If inside (optional) is set to true, the method instead returns @@ -2187,24 +2187,24 @@ declare module L { * entirety. */ getBoundsZoom(bounds: LatLngBounds, inside?: boolean): number; - + /** * Returns the current size of the map container. */ getSize(): Point; - + /** * Returns the bounds of the current map view in projected pixel coordinates * (sometimes useful in layer and overlay implementations). */ getPixelBounds(): Bounds; - + /** * Returns the projected pixel coordinates of the top left point of the map layer * (useful in custom layer and overlay implementations). */ getPixelOrigin(): Point; - + // Methods for Layers and Controls /** @@ -2212,31 +2212,31 @@ declare module L { * the layer is inserted under all others (useful when switching base tile layers). */ addLayer(layer: ILayer, insertAtTheBottom?: boolean): Map; - + /** * Removes the given layer from the map. */ removeLayer(layer: ILayer): Map; - + /** * Returns true if the given layer is currently added to the map. */ hasLayer(layer: ILayer): boolean; - + /** * Opens the specified popup while closing the previously opened (to make sure * only one is opened at one time for usability). */ openPopup(popup: Popup): Map; - + /** - * Creates a popup with the specified options and opens it in the given point + * Creates a popup with the specified options and opens it in the given point * on a map. */ openPopup(html: string, latlng: LatLng, options?: PopupOptions): Map; - + /** - * Creates a popup with the specified options and opens it in the given point + * Creates a popup with the specified options and opens it in the given point * on a map. */ openPopup(el: HTMLElement, latlng: LatLng, options?: PopupOptions): Map; @@ -2245,17 +2245,17 @@ declare module L { * Closes the popup previously opened with openPopup (or the given one). */ closePopup(popup?: Popup): Map; - + /** * Adds the given control to the map. */ addControl(control: IControl): Map; - + /** * Removes the given control from the map. */ removeControl(control: IControl): Map; - + // Conversion Methods /** @@ -2263,116 +2263,116 @@ declare module L { * (useful for placing overlays on the map). */ latLngToLayerPoint(latlng: LatLng): Point; - + /** * Returns the geographical coordinates of a given map layer point. */ layerPointToLatLng(point: Point): LatLng; - + /** * Converts the point relative to the map container to a point relative to the * map layer. */ containerPointToLayerPoint(point: Point): Point; - + /** * Converts the point relative to the map layer to a point relative to the map * container. */ layerPointToContainerPoint(point: Point): Point; - + /** * Returns the map container point that corresponds to the given geographical * coordinates. */ latLngToContainerPoint(latlng: LatLng): Point; - + /** * Returns the geographical coordinates of a given map container point. */ containerPointToLatLng(point: Point): LatLng; - + /** * Projects the given geographical coordinates to absolute pixel coordinates * for the given zoom level (current zoom level by default). */ project(latlng: LatLng, zoom?: number): Point; - + /** * Projects the given absolute pixel coordinates to geographical coordinates * for the given zoom level (current zoom level by default). */ unproject(point: Point, zoom?: number): LatLng; - + /** * Returns the pixel coordinates of a mouse click (relative to the top left corner * of the map) given its event object. */ mouseEventToContainerPoint(event: LeafletMouseEvent): Point; - + /** * Returns the pixel coordinates of a mouse click relative to the map layer given * its event object. */ mouseEventToLayerPoint(event: LeafletMouseEvent): Point; - + /** * Returns the geographical coordinates of the point the mouse clicked on given * the click's event object. */ mouseEventToLatLng(event: LeafletMouseEvent): LatLng; - + // Other Methods /** * Returns the container element of the map. */ getContainer(): HTMLElement; - + /** * Returns an object with different map panes (to render overlays in). */ getPanes(): MapPanes; - + // REVIEW: Should we make it more flexible declaring parameter 'fn' as Function? /** * Runs the given callback when the map gets initialized with a place and zoom, * or immediately if it happened already, optionally passing a function context. */ whenReady(fn: (map: Map) => void, context?: any): Map; - + // Properties /** * Map dragging handler (by both mouse and touch). */ dragging: IHandler; - + /** * Touch zoom handler. */ touchZoom: IHandler; - + /** * Double click zoom handler. */ doubleClickZoom: IHandler; - + /** * Scroll wheel zoom handler. */ scrollWheelZoom: IHandler; - + /** * Box (shift-drag with mouse) zoom handler. */ boxZoom: IHandler; - + /** * Keyboard navigation handler. */ keyboard: IHandler; - + /** * Mobile touch hacks (quick tap and touch hold) handler. */ @@ -2421,27 +2421,27 @@ declare module L { * Initial geographical center of the map. */ center?: LatLng; - + /** * Initial map zoom. */ zoom?: number; - + /** * Layers that will be added to the map initially. */ layers?: ILayer[]; - + /** * Minimum zoom level of the map. Overrides any minZoom set on map layers. */ minZoom?: number; - + /** * Maximum zoom level of the map. This overrides any maxZoom set on map layers. */ maxZoom?: number; - + /** * When this option is set, the map restricts the view to the given geographical * bounds, bouncing the user back when he tries to pan outside the view, and also @@ -2449,7 +2449,7 @@ declare module L { * on the map size). To set the restriction dynamically, use setMaxBounds method */ maxBounds?: LatLngBounds; - + /** * Coordinate Reference System to use. Don't change this if you're not sure * what it means. @@ -2457,7 +2457,7 @@ declare module L { * Default value: L.CRS.EPSG3857. */ crs?: ICRS; - + // Interaction Options /** @@ -2466,14 +2466,14 @@ declare module L { * Default value: true. */ dragging?: boolean; - + /** * Whether the map can be zoomed by touch-dragging with two fingers. * * Default value: true. */ touchZoom?: boolean; - + /** * Whether the map can be zoomed by using the mouse wheel. * If passed 'center', it will zoom to the center of the view regardless of @@ -2482,7 +2482,7 @@ declare module L { * Default value: true. */ scrollWheelZoom?: boolean; - + /** * Whether the map can be zoomed in by double clicking on it and zoomed out * by double clicking while holding shift. @@ -2523,7 +2523,7 @@ declare module L { * Default value: true. */ trackResize?: boolean; - + /** * With this option enabled, the map tracks when you pan to another "copy" of * the world and seamlessly jumps to the original one so that all overlays like @@ -2532,14 +2532,14 @@ declare module L { * Default value: false. */ worldCopyJump?: boolean; - + /** * Set it to false if you don't want popups to close when user clicks the map. * * Default value: true. */ closePopupOnClick?: boolean; - + // Keyboard Navigation Options /** @@ -2549,21 +2549,21 @@ declare module L { * Default value: true. */ keyboard?: boolean; - + /** * Amount of pixels to pan when pressing an arrow key. * * Default value: 80. */ keyboardPanOffset?: number; - + /** * Number of zoom levels to change when pressing + or - key. * * Default value: 1. */ keyboardZoomOffset?: number; - + // Panning Inertia Options /** @@ -2574,21 +2574,21 @@ declare module L { * Default value: true. */ inertia?: boolean; - + /** * The rate with which the inertial movement slows down, in pixels/second2. * * Default value: 3000. */ inertiaDeceleration?: number; - + /** * Max speed of the inertial movement, in pixels/second. * * Default value: 1500. */ inertiaMaxSpeed?: number; - + /** * Amount of milliseconds that should pass between stopping the movement and * releasing the mouse or touch to prevent inertial movement. @@ -2596,7 +2596,7 @@ declare module L { * Default value: 32 for touch devices and 14 for the rest. */ inertiaThreshold?: number; - + // Control options /** @@ -2605,14 +2605,14 @@ declare module L { * Default value: true. */ zoomControl?: boolean; - + /** * Whether the attribution control is added to the map by default. * * Default value: true. */ attributionControl?: boolean; - + // Animation options /** @@ -2620,7 +2620,7 @@ declare module L { * browsers that support CSS3 Transitions except Android. */ fadeAnimation?: boolean; - + /** * Whether the tile zoom animation is enabled. By default it's enabled in all * browsers that support CSS3 Transitions except Android. @@ -2650,7 +2650,7 @@ declare module L { bounceAtZoomLimits?: boolean; } } - + declare module L { export interface MapPanes { @@ -2691,7 +2691,7 @@ declare module L { popupPane: HTMLElement; } } - + declare module L { /** @@ -2713,44 +2713,44 @@ declare module L { * Adds the marker to the map. */ addTo(map: Map): Marker; - + /** * Returns the current geographical position of the marker. */ getLatLng(): LatLng; - + /** * Changes the marker position to the given point. */ setLatLng(latlng: LatLng): Marker; - + /** * Changes the marker icon. */ setIcon(icon: Icon): Marker; - + /** * Changes the zIndex offset of the marker. */ setZIndexOffset(offset: number): Marker; - + /** * Changes the opacity of the marker. */ setOpacity(opacity: number): Marker; - + /** * Updates the marker position, useful if coordinates of its latLng object * were changed directly. */ update(): Marker; - + /** * Binds a popup with a particular HTML content to a click on this marker. You * can also open the bound popup with the Marker openPopup method. */ bindPopup(html: string, options?: PopupOptions): Marker; - + /** * Binds a popup with a particular HTML content to a click on this marker. You * can also open the bound popup with the Marker openPopup method. @@ -2767,7 +2767,7 @@ declare module L { * Unbinds the popup previously bound to the marker with bindPopup. */ unbindPopup(): Marker; - + /** * Opens the popup previously bound by the bindPopup method. */ @@ -2776,8 +2776,8 @@ declare module L { /** * Returns the popup previously bound by the bindPopup method. */ - getPopup(): Popup; - + getPopup(): Popup; + /** * Closes the bound popup of the marker if it's opened. */ @@ -2816,13 +2816,13 @@ declare module L { * Called on map.addLayer(layer). */ onAdd(map: Map): void; - + /** * Should contain all clean up code that removes the overlay's elements from * the DOM and removes listeners previously added in onAdd. Called on map.removeLayer(layer). */ onRemove(map: Map): void; - + //////////////// //////////////// addEventListener(type: string, fn: (e: LeafletEvent) => void, context?: any): Marker; @@ -2841,7 +2841,7 @@ declare module L { off(eventMap?: any, context?: any): Marker; } } - + declare module L { export interface MarkerOptions { @@ -2853,7 +2853,7 @@ declare module L { * Default value: new L.Icon.Default(). */ icon?: Icon; - + /** * If false, the marker will not emit mouse events and will act as a part of the * underlying map. @@ -2861,7 +2861,7 @@ declare module L { * Default value: true. */ clickable?: boolean; - + /** * Whether the marker is draggable with mouse/touch or not. * @@ -2875,7 +2875,7 @@ declare module L { * Default value: true. */ keyboard?: boolean; - + /** * Text for the browser tooltip that appear on marker hover (no tooltip by default). * @@ -2889,7 +2889,7 @@ declare module L { * Default value: ''. */ alt?: string; - + /** * By default, marker images zIndex is set automatically based on its latitude. * You this option if you want to put the marker on top of all others (or below), @@ -2898,21 +2898,21 @@ declare module L { * Default value: 0. */ zIndexOffset?: number; - + /** * The opacity of the marker. * * Default value: 1.0. */ opacity?: number; - + /** * If true, the marker will get on top of others when you hover the mouse over it. * * Default value: false. */ riseOnHover?: boolean; - + /** * The z-index offset used for the riseOnHover feature. * @@ -2921,7 +2921,7 @@ declare module L { riseOffset?: number; } } - + declare module L { /** @@ -2964,7 +2964,7 @@ declare module L { toGeoJSON(): any; } } - + declare module L { /** @@ -3005,7 +3005,7 @@ declare module L { toGeoJSON(): any; } } - + declare module L { export interface PanOptions { @@ -3013,14 +3013,14 @@ declare module L { /** * If true, panning will always be animated if possible. If false, it will not * animate panning, either resetting the map view if panning more than a screen - * away, or just setting a new offset for the map pane (except for `panBy` + * away, or just setting a new offset for the map pane (except for `panBy` * which always does the latter). */ animate?: boolean; /** * Duration of animated panning. - * + * * Default value: 0.25. */ duration?: number; @@ -3035,13 +3035,13 @@ declare module L { /** * If true, panning won't fire movestart event on start (used internally for panning inertia). - * + * * Default value: false. */ noMoveStart?: boolean; } } - + declare module L { export interface Path extends ILayer, IEventPowered { @@ -3050,12 +3050,12 @@ declare module L { * Adds the layer to the map. */ addTo(map: Map): Path; - + /** * Binds a popup with a particular HTML content to a click on this path. */ bindPopup(html: string, options?: PopupOptions): Path; - + /** * Binds a popup with a particular HTML content to a click on this path. */ @@ -3070,38 +3070,38 @@ declare module L { * Unbinds the popup previously bound to the path with bindPopup. */ unbindPopup(): Path; - + /** * Opens the popup previously bound by the bindPopup method in the given point, * or in one of the path's points if not specified. */ openPopup(latlng?: LatLng): Path; - + /** * Closes the path's bound popup if it is opened. */ closePopup(): Path; - + /** * Changes the appearance of a Path based on the options in the Path options object. */ setStyle(object: PathOptions): Path; - + /** * Returns the LatLngBounds of the path. */ getBounds(): LatLngBounds; - + /** * Brings the layer to the top of all path layers. */ bringToFront(): Path; - + /** * Brings the layer to the bottom of all path layers. */ bringToBack(): Path; - + /** * Redraws the layer. Sometimes useful after you changed the coordinates that * the path uses. @@ -3115,13 +3115,13 @@ declare module L { * Called on map.addLayer(layer). */ onAdd(map: Map): void; - + /** * Should contain all clean up code that removes the overlay's elements from * the DOM and removes listeners previously added in onAdd. Called on map.removeLayer(layer). */ onRemove(map: Map): void; - + //////////////// //////////////// addEventListener(type: string, fn: (e: LeafletEvent) => void, context?: any): Path; @@ -3181,48 +3181,48 @@ declare module L { * Default value: true. */ stroke?: boolean; - + /** * Stroke color. * * Default value: '#03f'. */ color?: string; - + /** * Stroke width in pixels. * * Default value: 5. */ weight?: number; - + /** * Stroke opacity. * * Default value: 0.5. */ opacity?: number; - + /** * Whether to fill the path with color. Set it to false to disable filling on polygons * or circles. */ fill?: boolean; - + /** * Fill color. * * Default value: same as color. */ fillColor?: string; - + /** * Fill opacity. * * Default value: 0.2. */ fillOpacity?: number; - + /** * A string that defines the stroke dash pattern. Doesn't work on canvas-powered * layers (e.g. Android 2). @@ -3242,7 +3242,7 @@ declare module L { * Default: null. */ lineJoin?: string; - + /** * If false, the vector will not emit mouse events and will act as a part of the * underlying map. @@ -3262,10 +3262,10 @@ declare module L { * Default value: ''. */ className?: string; - + } } - + declare module L { /** @@ -3288,48 +3288,48 @@ declare module L { * Returns the result of addition of the current and the given points. */ add(otherPoint: Point): Point; - + /** * Returns the result of subtraction of the given point from the current. */ subtract(otherPoint: Point): Point; - + /** * Returns the result of multiplication of the current point by the given number. */ multiplyBy(number: number): Point; - + /** * Returns the result of division of the current point by the given number. If * optional round is set to true, returns a rounded result. */ divideBy(number: number, round?: boolean): Point; - + /** * Returns the distance between the current and the given points. */ distanceTo(otherPoint: Point): number; - + /** * Returns a copy of the current point. */ clone(): Point; - + /** * Returns a copy of the current point with rounded coordinates. */ round(): Point; - + /** * Returns true if the given point has the same coordinates. */ equals(otherPoint: Point): boolean; - + /** * Returns a string representation of the point for debugging purposes. */ toString(): string; - + /** * The x coordinate. */ @@ -3341,7 +3341,7 @@ declare module L { y: number; } } - + declare module L { /** @@ -3369,7 +3369,7 @@ declare module L { export interface Polygon extends Polyline { } } - + declare module L { /** @@ -3392,24 +3392,24 @@ declare module L { * Adds a given point to the polyline. */ addLatLng(latlng: LatLng): Polyline; - + /** * Replaces all the points in the polyline with the given array of geographical * points. */ setLatLngs(latlngs: LatLng[]): Polyline; - + /** * Returns an array of the points in the path. */ getLatLngs(): LatLng[]; - + /** * Allows adding, removing or replacing points in the polyline. Syntax is the * same as in Array#splice. Returns the array of removed points (if any). */ spliceLatLngs(index: number, pointsToRemove: number, ...latlngs: LatLng[]): LatLng[]; - + /** * Returns the LatLngBounds of the polyline. */ @@ -3421,7 +3421,7 @@ declare module L { toGeoJSON(): any; } } - + declare module L { export interface PolylineOptions { @@ -3433,7 +3433,7 @@ declare module L { * Default value: 1.0. */ smoothFactor?: number; - + /** * Disabled polyline clipping. * @@ -3442,7 +3442,7 @@ declare module L { noClip?: boolean; } } - + declare module L { module PolyUtil { @@ -3456,7 +3456,7 @@ declare module L { export function clipPolygon(points: Point[], bounds: Bounds): Point[]; } } - + declare module L { /** @@ -3481,17 +3481,17 @@ declare module L { * Adds the popup to the map. */ addTo(map: Map): Popup; - + /** * Adds the popup to the map and closes the previous one. The same as map.openPopup(popup). */ openOn(map: Map): Popup; - + /** * Sets the geographical point where the popup will open. */ setLatLng(latlng: LatLng): Popup; - + /** * Returns the geographical point of popup. */ @@ -3521,7 +3521,7 @@ declare module L { * Called on map.addLayer(layer). */ onAdd(map: Map): void; - + /** * Should contain all clean up code that removes the overlay's elements from * the DOM and removes listeners previously added in onAdd. Called on map.removeLayer(layer). @@ -3535,7 +3535,7 @@ declare module L { update(): Popup; } } - + declare module L { export interface PopupOptions { @@ -3546,20 +3546,20 @@ declare module L { * Default value: 300. */ maxWidth?: number; - + /** * Min width of the popup. * * Default value: 50. */ minWidth?: number; - + /** * If set, creates a scrollable container of the given height inside a popup * if its content exceeds it. */ maxHeight?: number; - + /** * Set it to false if you don't want the map to do panning animation to fit the opened * popup. @@ -3567,14 +3567,14 @@ declare module L { * Default value: true. */ autoPan?: boolean; - + /** * Controls the presense of a close button in the popup. * * Default value: true. */ closeButton?: boolean; - + /** * The offset of the popup position. Useful to control the anchor of the popup * when opening it on some overlays. @@ -3598,7 +3598,7 @@ declare module L { * Default value: null. */ autoPanPaddingBottomRight?: Point; - + /** * The margin between the popup and the edges of the map view after autopanning * was performed. @@ -3606,7 +3606,7 @@ declare module L { * Default value: new Point(5, 5). */ autoPanPadding?: Point; - + /** * Whether to animate the popup on zoom. Disable it if you have problems with * Flash content inside popups. @@ -3616,14 +3616,14 @@ declare module L { zoomAnimation?: boolean; /** - * Set it to false if you want to override the default behavior of the popup + * Set it to false if you want to override the default behavior of the popup * closing when user clicks the map (set globally by the Map closePopupOnClick * option). */ closeOnClick?: boolean; } } - + declare module L { export interface PosAnimationStatic extends ClassStatic { @@ -3641,7 +3641,7 @@ declare module L { * of the cubic bezier curve, 0.5 by default) */ run(element: HTMLElement, newPos: Point, duration?: number, easeLinearity?: number): PosAnimation; - + //////////////// //////////////// addEventListener(type: string, fn: (e: LeafletEvent) => void, context?: any): PosAnimation; @@ -3660,7 +3660,7 @@ declare module L { off(eventMap?: any, context?: any): PosAnimation; } } - + declare module L { module Projection { @@ -3671,14 +3671,14 @@ declare module L { * is a sphere. Used by the EPSG:3857 CRS. */ export var SphericalMercator: IProjection; - + /** * Elliptical Mercator projection — more complex than Spherical Mercator. * Takes into account that Earth is a geoid, not a perfect sphere. Used by the * EPSG:3395 CRS. */ export var Mercator: IProjection; - + /** * Equirectangular, or Plate Carree projection — the most simple projection, * mostly used by GIS enthusiasts. Directly maps x as longitude, and y as latitude. @@ -3688,7 +3688,7 @@ declare module L { export var LonLat: IProjection; } } - + declare module L { /** @@ -3713,8 +3713,8 @@ declare module L { setBounds(bounds: LatLngBounds): Rectangle; } } - - + + declare module L { export interface ScaleOptions { @@ -3724,26 +3724,26 @@ declare module L { * Default value: 'bottomleft'. */ position?: string; - + /** * Maximum width of the control in pixels. The width is set dynamically to show * round values (e.g. 100, 200, 500). * Default value: 100. */ maxWidth?: number; - + /** * Whether to show the metric scale line (m/km). * Default value: true. */ metric?: boolean; - + /** * Whether to show the imperial scale line (mi/ft). * Default value: true. */ imperial?: boolean; - + /** * If true, the control is updated on moveend, otherwise it's always up-to-date * (updated on move). @@ -3752,7 +3752,7 @@ declare module L { updateWhenIdle?: boolean; } } - + declare module L { export interface TileLayerStatic extends ClassStatic { @@ -3784,32 +3784,32 @@ declare module L { * Adds the layer to the map. */ addTo(map: Map): TileLayer; - + /** * Brings the tile layer to the top of all tile layers. */ bringToFront(): TileLayer; - + /** * Brings the tile layer to the bottom of all tile layers. */ bringToBack(): TileLayer; - + /** * Changes the opacity of the tile layer. */ setOpacity(opacity: number): TileLayer; - + /** * Sets the zIndex of the tile layer. */ setZIndex(zIndex: number): TileLayer; - + /** * Causes the layer to clear all the tiles and request them again. */ redraw(): TileLayer; - + /** * Updates the layer's URL template and redraws it. */ @@ -3828,13 +3828,13 @@ declare module L { * Called on map.addLayer(layer). */ onAdd(map: Map): void; - + /** * Should contain all clean up code that removes the overlay's elements from * the DOM and removes listeners previously added in onAdd. Called on map.removeLayer(layer). */ onRemove(map: Map): void; - + //////////////// //////////////// addEventListener(type: string, fn: (e: LeafletEvent) => void, context?: any): TileLayer; @@ -3879,7 +3879,7 @@ declare module L { } export interface TileLayerFactory { - + /** * Instantiates a tile layer object given a URL template and optionally an options * object. @@ -3900,7 +3900,7 @@ declare module L { export var tileLayer: TileLayerFactory; } - + declare module L { export interface TileLayerOptions { @@ -3911,7 +3911,7 @@ declare module L { * Default value: 0. */ minZoom?: number; - + /** * Maximum zoom number. * @@ -3927,14 +3927,14 @@ declare module L { * Default value: null. */ maxNativeZoom?: number; - + /** * Tile size (width and height in pixels, assuming tiles are square). * * Default value: 256. */ tileSize?: number; - + /** * Subdomains of the tile service. Can be passed in the form of one string (where * each letter is a subdomain name) or an array of strings. @@ -3942,14 +3942,14 @@ declare module L { * Default value: 'abc'. */ subdomains?: string[]; - + /** * URL to the tile image to show in place of the tile that failed to load. * * Default value: ''. */ errorTileUrl?: string; - + /** * e.g. "© CloudMade" — the string used by the attribution control, describes * the layer data. @@ -3957,14 +3957,14 @@ declare module L { * Default value: ''. */ attribution?: string; - + /** * If true, inverses Y axis numbering for tiles (turn this on for TMS services). * * Default value: false. */ tms?: boolean; - + /** * If set to true, the tile coordinates won't be wrapped by world width (-180 * to 180 longitude) or clamped to lie within world height (-90 to 90). Use this @@ -3974,7 +3974,7 @@ declare module L { * Default value: false. */ continuousWorld?: boolean; - + /** * If set to true, the tiles just won't load outside the world width (-180 to 180 * longitude) instead of repeating. @@ -3982,14 +3982,14 @@ declare module L { * Default value: false. */ noWrap?: boolean; - + /** * The zoom number used in tile URLs will be offset with this value. * * Default value: 0. */ zoomOffset?: number; - + /** * If set to true, the zoom number used in tile URLs will be reversed (maxZoom * - zoom instead of zoom) @@ -3997,31 +3997,31 @@ declare module L { * Default value: false. */ zoomReverse?: boolean; - + /** * The opacity of the tile layer. * * Default value: 1.0. */ opacity?: number; - + /** * The explicit zIndex of the tile layer. Not set by default. */ zIndex?: number; - + /** * If true, all the tiles that are not visible after panning are removed (for * better performance). true by default on mobile WebKit, otherwise false. */ unloadInvisibleTiles?: boolean; - + /** * If false, new tiles are loaded during panning, otherwise only after it (for * better performance). true by default on mobile WebKit, otherwise false. */ updateWhenIdle?: boolean; - + /** * If true and user is on a retina display, it will request four tiles of half the * specified size and a bigger zoom level in place of one to utilize the high resolution. @@ -4029,7 +4029,7 @@ declare module L { * Default value: false. */ detectRetina?: boolean; - + /** * If true, all the tiles that are not visible after panning are placed in a reuse * queue from which they will be fetched when new tiles become visible (as opposed @@ -4058,7 +4058,7 @@ declare module L { * Only accepts real L.Point instances, not arrays. */ transform(point: Point, scale?: number): Point; - + /** * Returns the reverse transformation of the given point, optionally divided * by the given scale. Only accepts real L.Point instances, not arrays. @@ -4066,7 +4066,7 @@ declare module L { untransform(point: Point, scale?: number): Point; } } - + declare module L { module Util { @@ -4076,18 +4076,18 @@ declare module L { * and returns the latter. Has an L.extend shortcut. */ export function extend(dest: any, ...sources: any[]): any; - + /** * Returns a function which executes function fn with the given scope obj (so * that this keyword refers to obj inside the function code). Has an L.bind shortcut. */ export function bind(fn: T, obj: any): T; - + /** * Applies a unique key to the object and returns that key. Has an L.stamp shortcut. */ export function stamp(obj: any): string; - + /** * Returns a wrapper around the function fn that makes sure it's called not more * often than a certain time interval time, but as fast as possible otherwise @@ -4096,46 +4096,46 @@ declare module L { * be called. */ export function limitExecByInterval(fn: T, time: number, context?: any): T; - + /** * Returns a function which always returns false. */ export function falseFn(): () => boolean; - + /** * Returns the number num rounded to digits decimals. */ export function formatNum(num: number, digits: number): number; - + /** * Trims and splits the string on whitespace and returns the array of parts. */ export function splitWords(str: string): string[]; - + /** * Merges the given properties to the options of the obj object, returning the * resulting options. See Class options. Has an L.setOptions shortcut. */ export function setOptions(obj: any, options: any): any; - + /** * Converts an object into a parameter URL string, e.g. {a: "foo", b: "bar"} * translates to '?a=foo&b=bar'. */ export function getParamString(obj: any): string; - + /** * Simple templating facility, creates a string by applying the values of the * data object of a form {a: 'foo', b: 'bar', …} to a template string of the form * 'Hello {a}, {b}' — in this example you will get 'Hello foo, bar'. */ export function template(str: string, data: any): string; - + /** * Returns true if the given object is an array. */ export function isArray(obj: any): boolean; - + /** * Trims the whitespace from both ends of the string and returns the result. */ @@ -4149,8 +4149,8 @@ declare module L { export var emptyImageUrl: string; } } - - + + declare module L { export interface WMSOptions { @@ -4161,37 +4161,37 @@ declare module L { * Default value: ''. */ layers?: string; - + /** * Comma-separated list of WMS styles. * * Default value: 'image/jpeg'. */ styles?: string; - + /** * WMS image format (use 'image/png' for layers with transparency). * * Default value: false. */ format?: string; - + /** * If true, the WMS service will return images with transparency. * * Default value: '1.1.1'. */ transparent?: boolean; - + /** * Version of the WMS service to use. */ version?: string; - + } } - - + + declare module L { export interface ZoomOptions { @@ -4204,7 +4204,7 @@ declare module L { position?: string; } } - + declare module L { export interface ZoomPanOptions { @@ -4237,10 +4237,10 @@ declare module L { debounceMoveend?: boolean; } } - + /** - * Forces Leaflet to use the Canvas back-end (if available) for vector layers - * instead of SVG. This can increase performance considerably in some cases + * Forces Leaflet to use the Canvas back-end (if available) for vector layers + * instead of SVG. This can increase performance considerably in some cases * (e.g. many thousands of circle markers on the map). */ declare var L_PREFER_CANVAS: boolean; @@ -4251,11 +4251,11 @@ declare var L_PREFER_CANVAS: boolean; declare var L_NO_TOUCH: boolean; /** - * Forces Leaflet to not use hardware-accelerated CSS 3D transforms for positioning + * Forces Leaflet to not use hardware-accelerated CSS 3D transforms for positioning * (which may cause glitches in some rare environments) even if they're supported. */ declare var L_DISABLE_3D: boolean; - + declare module "leaflet" { export = L; } From 609b0436871f42a8a5ff13ed3104ee688ec55538 Mon Sep 17 00:00:00 2001 From: ray Date: Wed, 25 Mar 2015 13:14:20 -0400 Subject: [PATCH 52/71] adding def for loggly --- loggly/loggly-tests.ts | 12 ++++++++++++ loggly/loggly-tests.ts.tscparams | 1 + loggly/loggly.d.ts | 25 +++++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 loggly/loggly-tests.ts create mode 100644 loggly/loggly-tests.ts.tscparams create mode 100644 loggly/loggly.d.ts diff --git a/loggly/loggly-tests.ts b/loggly/loggly-tests.ts new file mode 100644 index 000000000..bf022999f --- /dev/null +++ b/loggly/loggly-tests.ts @@ -0,0 +1,12 @@ +/// +import loggly = require("loggly"); + +var options: loggly.LogglyOptions = { + token: "YOUR_TOKEN", + subdomain: "YOUR_DOMAIN", + tags: ["NodeJS"], + json: true +}; + +var client: loggly.Loggly = loggly.createClient(options) +client.log('hello world'); diff --git a/loggly/loggly-tests.ts.tscparams b/loggly/loggly-tests.ts.tscparams new file mode 100644 index 000000000..5f84b9777 --- /dev/null +++ b/loggly/loggly-tests.ts.tscparams @@ -0,0 +1 @@ +--noImplicitAny --module commonjs --target es5 diff --git a/loggly/loggly.d.ts b/loggly/loggly.d.ts new file mode 100644 index 000000000..40724f855 --- /dev/null +++ b/loggly/loggly.d.ts @@ -0,0 +1,25 @@ +// Type definitions for loggly 1.0.8 +// Project: https://github.com/nodejitsu/node-loggly +// Definitions by: Ray Martone +// Definitions: https://github.com/borisyankov/DefinitelyTyped +declare module "loggly" { + + interface LogglyOptions { + token: string; + subdomain: string; + tags?: string[]; + json?: boolean; + host?: string; + auth?: { + username: string; + password: string; + } + } + + interface Loggly { + log(message: any, tags?: string[], callback?: (err: any, results: any) => void): void; + log(message: any, callback?: (err: any, results: any) => void): void; + } + + function createClient(options: LogglyOptions): Loggly; +} From 775c2cbc24f54eae286017f5915f5ebd8255603d Mon Sep 17 00:00:00 2001 From: Michael Hohl Date: Thu, 26 Mar 2015 10:26:58 +0100 Subject: [PATCH 53/71] Model extends NodeJS.EventEmitter - see #3968 --- mongoose/mongoose.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongoose/mongoose.d.ts b/mongoose/mongoose.d.ts index 8c60b638f..fedd8fec6 100644 --- a/mongoose/mongoose.d.ts +++ b/mongoose/mongoose.d.ts @@ -128,7 +128,7 @@ declare module "mongoose" { versionKey?: boolean; } - export interface Model { + export interface Model extends NodeJS.EventEmitter { new(doc: Object): T; aggregate(...aggregations: Object[]): Aggregate; From f5855b4d5b3903e999e880fcf0e47eeccd8b5ce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20M=C3=BCnch?= Date: Thu, 26 Mar 2015 14:37:10 +0100 Subject: [PATCH 54/71] restangular: Add missing save method --- restangular/restangular.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/restangular/restangular.d.ts b/restangular/restangular.d.ts index 8b8fd9d2f..c3a1178bf 100644 --- a/restangular/restangular.d.ts +++ b/restangular/restangular.d.ts @@ -113,6 +113,7 @@ declare module restangular { options(queryParams?: any, headers?: any): IPromise; patch(queryParams?: any, headers?: any): IPromise; withHttpConfig(httpConfig: IRequestConfig): IElement; + save(queryParams?: any, headers?: any): IPromise; getRestangularUrl(): string; } From b707d6fbddb55e5f6b8f8fce37406e2b76b6c5c0 Mon Sep 17 00:00:00 2001 From: Adi Dahiya Date: Thu, 26 Mar 2015 14:08:35 -0400 Subject: [PATCH 55/71] Add Drop.createContext typing --- drop/drop.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drop/drop.d.ts b/drop/drop.d.ts index 18568afdd..e3615d510 100644 --- a/drop/drop.d.ts +++ b/drop/drop.d.ts @@ -9,6 +9,12 @@ declare module drop { interface DropStatic { new(options: IDropOptions): Drop; + createContext(options: IDropContextOptions): DropStatic; + } + + interface IDropContextOptions { + classPrefix?: string; + defaults?: IDropOptions; } interface IDropOptions { From 300d87447e61fd5e153bec8ec08333b9ce597651 Mon Sep 17 00:00:00 2001 From: Sam Herrmann Date: Thu, 26 Mar 2015 22:34:59 -0400 Subject: [PATCH 56/71] Add missing plain and clone method to restangular IElement See https://github.com/mgonto/restangular#element-methods for documentation on the methods. --- restangular/restangular-tests.ts | 3 +++ restangular/restangular.d.ts | 2 ++ 2 files changed, 5 insertions(+) diff --git a/restangular/restangular-tests.ts b/restangular/restangular-tests.ts index 11d7a086d..82dfcd805 100644 --- a/restangular/restangular-tests.ts +++ b/restangular/restangular-tests.ts @@ -82,6 +82,9 @@ myApp.controller('TestCtrl', ( Restangular.one('accounts', 123).getList('buildings'); Restangular.one('accounts', 123).getList('buildings'); + var accountData = Restangular.one('accounts', 123).plain(); + var accountClone: restangular.IElement = Restangular.one('accounts', 123).clone(); + baseAccounts.getList().then(function (accounts) { var firstAccount = accounts[0]; $scope.buildings = firstAccount.getList("buildings"); diff --git a/restangular/restangular.d.ts b/restangular/restangular.d.ts index 8b8fd9d2f..84f167302 100644 --- a/restangular/restangular.d.ts +++ b/restangular/restangular.d.ts @@ -112,6 +112,8 @@ declare module restangular { trace(queryParams?: any, headers?: any): IPromise; options(queryParams?: any, headers?: any): IPromise; patch(queryParams?: any, headers?: any): IPromise; + clone(): IElement; + plain(): any; withHttpConfig(httpConfig: IRequestConfig): IElement; getRestangularUrl(): string; } From 070ce8218c8ab3f923d96d165e715b92e64dd07f Mon Sep 17 00:00:00 2001 From: kubo-takaichi Date: Sat, 14 Mar 2015 16:54:33 +0900 Subject: [PATCH 57/71] Create files --- knex/knex-test.ts | 3 +++ knex/knex.d.ts | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 knex/knex-test.ts create mode 100644 knex/knex.d.ts diff --git a/knex/knex-test.ts b/knex/knex-test.ts new file mode 100644 index 000000000..c3612f036 --- /dev/null +++ b/knex/knex-test.ts @@ -0,0 +1,3 @@ +/// + +import Knex = require('knex'); diff --git a/knex/knex.d.ts b/knex/knex.d.ts new file mode 100644 index 000000000..17885ec20 --- /dev/null +++ b/knex/knex.d.ts @@ -0,0 +1,36 @@ +// Type definitions for Knex.js +// Project: https://github.com/tgriesser/knex +// Definitions by: Qubo +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module "knex" { + interface KnexStatic { + Clients: Clients; + new(): Knex; + } + + interface Knex { + + } + + interface Clients { + "mysql": Function; + "mysql2": Function; + "maria": Function; + "mariadb": Function; + "mariasql": Function; + "oracle": Function; + "pg": Function; + "postgres": Function; + "postgresql": Function; + "sqlite": Function; + "sqlite3": Function; + "strong-oracle": Function; + "websql": Function; + "fdbsql": Function; + } + + + var _: KnexStatic; + export = _; +} From 11d3d8db09de7b03eeca23e472551111be752180 Mon Sep 17 00:00:00 2001 From: kubo_takaichi Date: Fri, 27 Mar 2015 23:48:19 +0900 Subject: [PATCH 58/71] Add sample code --- knex/knex-test.ts | 562 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 561 insertions(+), 1 deletion(-) diff --git a/knex/knex-test.ts b/knex/knex-test.ts index c3612f036..4cd7ec0d7 100644 --- a/knex/knex-test.ts +++ b/knex/knex-test.ts @@ -1,3 +1,563 @@ /// - +/// import Knex = require('knex'); +import _ = require('lodash'); +'use strict'; +// Initializing the Library +var knex = Knex({ + client: 'sqlite3', + connection: { + filename: "./mydb.sqlite" + } +}); + +var knex = Knex({ + client: 'mysql', + connection: { + socketPath : '/path/to/socket.sock', + user : 'your_database_user', + password : 'your_database_password', + database : 'myapp_test' + } +}); + +// Pooling +var knex = Knex({ + client: 'mysql', + connection: { + host : '127.0.0.1', + user : 'your_database_user', + password : 'your_database_password', + database : 'myapp_test' + }, + pool: { + min: 0, + max: 7 + } +}); + +// Migrations +var knex = Knex({ + client: 'mysql', + connection: { + host : '127.0.0.1', + user : 'your_database_user', + password : 'your_database_password', + database : 'myapp_test' + }, + migrations: { + tableName: 'migrations' + } +}); + +// Knex Query Builder +knex.select('title', 'author', 'year').from('books'); +knex.select().table('books'); + +knex.avg('sum_column1').from(function() { + this.sum('column1 as sum_column1').from('t1').groupBy('column1').as('t1') +}).as('ignored_alias'); + +knex.column('title', 'author', 'year').select().from('books'); +knex.column(['title', 'author', 'year']).select().from('books'); +knex.select('*').from('users'); + +knex('users').where({ + first_name: 'Test', + last_name: 'User' +}).select('id'); + +knex('users').where('id', 1); + +knex('users').where(() => { + this.where('id', 1).orWhere('id', '>', 10) +}).orWhere({name: 'Tester'}); + +knex('users').where('votes', '>', 100); + +var subquery = knex('users').where('votes', '>', 100).andWhere('status', 'active').orWhere('name', 'John').select('id'); +knex('accounts').where('id', 'in', subquery); + +knex.select('name').from('users') + .whereIn('id', [1, 2, 3]) + .orWhereIn('id', [4, 5, 6]); + +var subquery = knex.select('id').from('accounts'); +knex.select('name').from('users') + .whereIn('account_id', subquery); + +knex('users') + .where('name', '=', 'John') + .orWhere(function() { + this.where('votes', '>', 100).andWhere('title', '<>', 'Admin'); + }); + +knex('users').whereNotIn('id', [1, 2, 3]); + +knex('users').where('name', 'like', '%Test%').orWhereNotIn('id', [1, 2, 3]); + +knex('users').whereNull('updated_at'); + +knex('users').whereNotNull('created_at'); + +knex('users').whereExists(function() { + this.select('*').from('accounts').whereRaw('users.account_id = accounts.id'); +}); + +knex('users').whereExists(knex.select('*').from('accounts').whereRaw('users.account_id = accounts.id')); + +knex('users').whereNotExists(function() { + this.select('*').from('accounts').whereRaw('users.account_id = accounts.id'); +}); + +knex('users').whereBetween('votes', [1, 100]); + +knex('users').whereNotBetween('votes', [1, 100]); + +knex('users').whereRaw('id = ?', [1]); + +// Join methods +knex('users') + .join('contacts', 'users.id', '=', 'contacts.user_id') + .select('users.id', 'contacts.phone'); + +knex('users') + .join('contacts', 'users.id', 'contacts.user_id') + .select('users.id', 'contacts.phone'); + +knex.select('*').from('users').join('accounts', function() { + this.on('accounts.id', '=', 'users.account_id').orOn('accounts.owner_id', '=', 'users.id') +}); + +knex.select('*').from('users').join('accounts', 'accounts.type', knex.raw('?', ['admin'])); + +knex.from('users').innerJoin('accounts', 'users.id', 'accounts.user_id'); + +knex.table('users').innerJoin('accounts', 'users.id', '=', 'accounts.user_id'); + +knex('users').innerJoin('accounts', function() { + this.on('accounts.id', '=', 'users.account_id').orOn('accounts.owner_id', '=', 'users.id') +}); + +knex.select('*').from('users').leftJoin('accounts', 'users.id', 'accounts.user_id'); + +knex.select('*').from('users').leftJoin('accounts', function() { + this.on('accounts.id', '=', 'users.account_id').orOn('accounts.owner_id', '=', 'users.id') +}); + +knex.select('*').from('users').leftOuterJoin('accounts', 'users.id', 'accounts.user_id'); + +knex.select('*').from('users').leftOuterJoin('accounts', function() { + this.on('accounts.id', '=', 'users.account_id').orOn('accounts.owner_id', '=', 'users.id') +}); + +knex.select('*').from('users').rightJoin('accounts', 'users.id', 'accounts.user_id'); + +knex.select('*').from('users').rightJoin('accounts', function() { + this.on('accounts.id', '=', 'users.account_id').orOn('accounts.owner_id', '=', 'users.id') +}); + +knex.select('*').from('users').rightOuterJoin('accounts', 'users.id', 'accounts.user_id'); + +knex.select('*').from('users').rightOuterJoin('accounts', function() { + this.on('accounts.id', '=', 'users.account_id').orOn('accounts.owner_id', '=', 'users.id') +}); + +knex.select('*').from('users').outerJoin('accounts', 'users.id', 'accounts.user_id'); + +knex.select('*').from('users').outerJoin('accounts', function() { + this.on('accounts.id', '=', 'users.account_id').orOn('accounts.owner_id', '=', 'users.id') +}); + +knex.select('*').from('users').fullOuterJoin('accounts', 'users.id', 'accounts.user_id'); + +knex.select('*').from('users').fullOuterJoin('accounts', function() { + this.on('accounts.id', '=', 'users.account_id').orOn('accounts.owner_id', '=', 'users.id') +}); + +knex.select('*').from('users').crossJoin('accounts', 'users.id', 'accounts.user_id'); + +knex.select('*').from('accounts').joinRaw('natural full join table1').where('id', 1); + +knex.select('*').from('accounts').join(knex.raw('natural full join table1')).where('id', 1); + +knex('customers') + .distinct('first_name', 'last_name') + .select(); + +knex('users').groupBy('count'); + +knex.select('year', knex.raw('SUM(profit)')).from('sales').groupByRaw('year WITH ROLLUP'); + +knex('users').orderBy('name', 'desc'); + +knex.select('*').from('table').orderByRaw('col NULLS LAST DESC'); + +knex('books').insert({title: 'Slaughterhouse Five'}); + +knex('coords').insert([{x: 20}, {y: 30}, {x: 10, y: 20}]); + +knex.insert([{title: 'Great Gatsby'}, {title: 'Fahrenheit 451'}], 'id').into('books'); + +knex('books') + .returning('id') + .insert({title: 'Slaughterhouse Five'}); + +knex('books') + .returning('id') + .insert([{title: 'Great Gatsby'}, {title: 'Fahrenheit 451'}]); + +knex('books') + .where('published_date', '<', 2000) + .update({ + status: 'archived' + }); + +knex('books').update('title', 'Slaughterhouse Five'); + +knex('accounts') + .where('activated', false) + .del(); + +var someExternalMethod: Function; + +knex.transaction(function(trx) { + knex('books').transacting(trx).insert({name: 'Old Books'}) + .then(function(resp) { + var id = resp[0]; + return someExternalMethod(id, trx); + }) + .then(trx.commit) + .catch(trx.rollback); + +}).then(function() { + console.log('Transaction complete.'); +}).catch(function(err) { + console.error(err); +}); + +knex.transaction(function(trx) { + knex('tableName') + .transacting(trx) + .forUpdate() + .select('*'); + + knex('tableName') + .transacting(trx) + .forShare() + .select('*') +}); + +knex('users').count('active'); + +knex('users').min('age'); + +knex('users').min('age as a'); + +knex('users').max('age'); + +knex('users').max('age as a'); + +knex('users').sum('products'); + +knex('users').sum('products as p'); + +knex('users').avg('age'); + +knex('users').avg('age as a'); + +knex('accounts') + .where('userid', '=', 1) + .increment('balance', 10); + +knex('accounts').where('userid', '=', 1).decrement('balance', 5); + +knex('accounts').truncate(); + +knex.table('users').pluck('id').then(function(ids) { + console.log(ids); +}); + +knex.table('users').first('id', 'name').then(function(row) { + console.log(row); +}); + +// Using trx as a query builder: +knex.transaction(function(trx) { + + var info: any; + var books: any[] = [ + {title: 'Canterbury Tales'}, + {title: 'Moby Dick'}, + {title: 'Hamlet'} + ]; + + return trx + .insert({name: 'Old Books'}, 'id') + .into('catalogues') + .then(function(ids) { + return Promise.map(books, function(book) { + book.catalogue_id = ids[0]; + // Some validation could take place here. + return trx.insert(info).into('books'); + }); + }); +}) +.then(function(inserts) { + console.log(inserts.length + ' new books saved.'); +}) +.catch(function(error) { + // If we get here, that means that neither the 'Old Books' catalogues insert, + // nor any of the books inserts will have taken place. + console.error(error); +}); + +// Using trx as a transaction object: +knex.transaction(function(trx) { + + var info: any; + var books: any[] = [ + {title: 'Canterbury Tales'}, + {title: 'Moby Dick'}, + {title: 'Hamlet'} + ]; + + knex.insert({name: 'Old Books'}, 'id') + .into('catalogues') + .transacting(trx) + .then(function(ids) { + return Promise.map(books, function(book) { + book.catalogue_id = ids[0]; + + // Some validation could take place here. + + return knex.insert(info).into('books').transacting(trx); + }); + }) + .then(trx.commit) + .catch(trx.rollback); +}) +.then(function(inserts) { + console.log(inserts.length + ' new books saved.'); +}) +.catch(function(error) { + // If we get here, that means that neither the 'Old Books' catalogues insert, + // nor any of the books inserts will have taken place. + console.error(error); +}); + +knex.schema.createTable('users', function (table) { + table.increments(); + table.string('name'); + table.timestamps(); +}); + +knex.schema.renameTable('users', 'old_users'); + +knex.schema.dropTable('users'); + +knex.schema.hasTable('users').then(function(exists) { + if (!exists) { + return knex.schema.createTable('users', function(t) { + t.increments('id').primary(); + t.string('first_name', 100); + t.string('last_name', 100); + t.text('bio'); + }); + } +}); + +var tableName: string; +var columnName: string; +knex.schema.hasColumn(tableName, columnName); + +knex.schema.dropTableIfExists('users'); + +knex.schema.table('users', function (table) { + table.dropColumn('name'); + table.string('first_name'); + table.string('last_name'); +}); + +knex.schema.raw("SET sql_mode='TRADITIONAL'") +.table('users', function (table) { + table.dropColumn('name'); + table.string('first_name'); + table.string('last_name'); +}); + +knex('users') + .select(knex.raw('count(*) as user_count, status')) + .where(knex.raw(1)) + .orWhere(knex.raw('status <> ?', [1])) + .groupBy('status'); + + knex.raw('select * from users where id = ?', [1]).then(function(resp) { + // ... + }); + +(() => { + var subcolumn = knex.raw('select avg(salary) from employee where dept_no = e.dept_no') + .wrap('(', ') avg_sal_dept'); + + knex.select('e.lastname', 'e.salary', subcolumn) + .from('employee as e') + .whereRaw('dept_no = e.dept_no'); +})(); + +(() => { + var subcolumn = knex.avg('salary') + .from('employee') + .whereRaw('dept_no = e.dept_no') + .as('avg_sal_dept'); + + knex.select('e.lastname', 'e.salary', subcolumn) + .from('employee as e') + .whereRaw('dept_no = e.dept_no'); +})(); + +var x: number; +knex.select('name').from('users') + .where('id', '>', 20) + .andWhere('id', '<', 200) + .limit(10) + .offset(x) + .then(function(rows: any) { + return _.pluck(rows, 'name'); + }) + .then(function(names: any) { + return knex.select('id').from('nicknames').whereIn('nickname', names); + }) + .then(function(rows) { + console.log(rows); + }) + .catch(function(error) { + console.error(error) + }); + +knex.select('*').from('users').where({name: 'Tim'}) + .then(function(rows) { + return knex.insert({user_id: rows[0].id, name: 'Test'}, 'id').into('accounts'); + }).then(function(id) { + console.log('Inserted Account ' + id); + }).catch(function(error) { + console.error(error); + }); + +knex.insert({id: 1, name: 'Test'}, 'id').into('accounts') + .catch(function(error) { + console.error(error); + }).then(function() { + return knex.select('*').from('accounts').where('id', 1); + }).then(function(rows) { + console.log(rows[0]); + }).catch(function(error) { + console.error(error); + }); + +var query: any; +query.then(function(x: any) { + // doSideEffectsHere(x); + return x; +}); + +knex.select('name').from('users').limit(10).map(function(row: any) { + return row.name; +}).then(function(names) { + console.log(names); +}).catch(function(e) { + console.error(e); +}); + +knex.select('name').from('users').limit(10).reduce(function(memo: any, row: any) { + memo.names.push(row.name); + memo.count++; + return memo; +}, {count: 0, names: []}).then(function(obj) { + console.log(obj); +}).catch(function(e) { + console.error(e); +}); + +knex.select('name').from('users') + .limit(10) + .bind(console) + .then(console.log) + .catch(console.error); + +var values: any[]; +// Without return: +knex.insert(values).into('users') + .then(function() { + return {inserted: true}; + }); + +knex.insert(values).into('users').return({inserted: true}); + +knex.select('name').from('users') + .where('id', '>', 20) + .andWhere('id', '<', 200) + .limit(10) + .offset(x) + .exec(function(err: any, rows: any[]) { + if (err) return console.error(err); + knex.select('id').from('nicknames').whereIn('nickname', _.pluck(rows, 'name')) + .exec(function(err: any, rows: any[]) { + if (err) return console.error(err); + console.log(rows); + }); + }); + +// Retrieve the stream: +var stream = knex.select('*').from('users').stream(); +var writableStream: any; +stream.pipe(writableStream); + +// With options: +var stream = knex.select('*').from('users').stream({highWaterMark: 5}); +stream.pipe(writableStream); + +// Use as a promise: +(() => { + +var stream = knex.select('*').from('users').where(knex.raw('id = ?', [1])).stream(function(stream: any) { + stream.pipe(writableStream); +}).then(function() { + // ... +}).catch(function(e: Error) { + console.error(e); +}); + +})(); + +var stream = knex.select('*').from('users').pipe(writableStream); +var app: any; + +knex.select('*') + .from('users') + .on('query', function(data: any) { + app.log(data); + }) + .then(function() { + // ... + }); + + knex.select('*').from('users').where(knex.raw('id = ?', [1])).toString(); + + knex.select('*').from('users').where(knex.raw('id = ?', [1])).toSQL(); + +// +// Migrations +// +var config = { }; +knex.migrate.make(name, [config]); + +knex.migrate.latest([config]); + +knex.migrate.rollback([config]); + +knex.migrate.currentversion([config]); + +knex.seed.make(name, [config]); + +knex.seed.run([config]); From 837b520227f05ca910cda34d47ca4b84079bd441 Mon Sep 17 00:00:00 2001 From: kubo_takaichi Date: Fri, 27 Mar 2015 23:48:38 +0900 Subject: [PATCH 59/71] Add definitions --- knex/knex.d.ts | 457 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 439 insertions(+), 18 deletions(-) diff --git a/knex/knex.d.ts b/knex/knex.d.ts index 17885ec20..d3216acf9 100644 --- a/knex/knex.d.ts +++ b/knex/knex.d.ts @@ -3,33 +3,454 @@ // Definitions by: Qubo // Definitions: https://github.com/borisyankov/DefinitelyTyped +/// +/// + declare module "knex" { - interface KnexStatic { - Clients: Clients; - new(): Knex; + import Promise = require("bluebird"); + import events = require("events"); + + type Callback = Function; + type Client = Function; + type Value = string|number|boolean|Date; + type ColumnName = string|Raw|QueryBuilder; + + module KnexStatic { + interface ConfigStatic { } } + interface KnexStatic { + (config: Config): Knex; + } + + interface Knex extends QueryInterface { } + interface Knex { + (tableName?: string): QueryBuilder; + VERSION: string; + __knex__: string; + raw: RawBuilder; + transaction: (transactionScope: ((trx: Transaction) => void)) => Promise; + destroy(callback: Function): void; + destroy(): Promise; + + client: any; + migrate: any; + seed: any; + fn: any; } - interface Clients { - "mysql": Function; - "mysql2": Function; - "maria": Function; - "mariadb": Function; - "mariasql": Function; - "oracle": Function; - "pg": Function; - "postgres": Function; - "postgresql": Function; - "sqlite": Function; - "sqlite3": Function; - "strong-oracle": Function; - "websql": Function; - "fdbsql": Function; + // + // QueryInterface + // + + interface QueryInterface { + select: Select; + as: As; + columns: Select; + column: Select; + from: Table; + into: Table; + table: Table; + distinct: Distinct; + + // Joins + join: Join; + joinRaw: JoinRaw; + innerJoin: Join; + leftJoin: Join; + leftOuterJoin: Join; + rightJoin: Join; + rightOuterJoin: Join; + outerJoin: Join; + fullOuterJoin: Join; + crossJoin: Join; + + // Wheres + where: Where; + andWhere: Where; + orWhere: Where; + whereRaw: WhereRaw; + whereWrapped: WhereWrapped; + havingWrapped: WhereWrapped; + orWhereRaw: WhereRaw; + whereExists: WhereExists; + orWhereExists: WhereExists; + whereNotExists: WhereExists; + orWhereNotExists: WhereExists; + whereIn: WhereIn; + orWhereIn: WhereIn; + whereNotIn: WhereIn; + orWhereNotIn: WhereIn; + whereNull: WhereNull; + orWhereNull: WhereNull; + whereNotNull: WhereNull; + orWhereNotNull: WhereNull; + whereBetween: WhereBetween; + whereNotBetween: WhereBetween; + orWhereBetween: WhereBetween; + orWhereNotBetween: WhereBetween; + + // Group by + groupBy: GroupBy; + groupByRaw: RawQueryBuilder; + + // Order by + orderBy: OrderBy; + orderByRaw: RawQueryBuilder; + + // Union + union: Union; + unionAll(callback: Function): QueryBuilder; + + // Having + having: Having; + havingRaw: RawQueryBuilder; + orHaving: Having; + orHavingRaw: RawQueryBuilder; + + // Paging + offset(offset: number): QueryBuilder; + limit(limit: number): QueryBuilder; + + // Aggregation + count(columnName?: string): QueryBuilder; + min(columnName: string): QueryBuilder; + max(columnName: string): QueryBuilder; + sum(columnName: string): QueryBuilder; + avg(columnName: string): QueryBuilder; + increment(columnName: string, amount?: number): QueryBuilder; + decrement(columnName: string, amount?: number): QueryBuilder; + + // Others + first(...columns: string[]): QueryBuilder; + + debug(enabled?: boolean): QueryBuilder; + pluck(column: string): QueryBuilder; + + insert(data: any, returning?: string): QueryBuilder; + update(data: any, returning?: string): QueryBuilder; + update(columnName: string, value: Value, returning?: string): QueryBuilder; + returning(column: string): QueryBuilder; + + del(returning?: string): QueryBuilder; + delete(returning?: string): QueryBuilder; + truncate(): QueryBuilder; + + transacting(trx: Transaction): QueryBuilder; + connection(connection: any): QueryBuilder; } + interface As { + (columnName: string): QueryBuilder; + } + + interface Select extends ColumnNameQueryBuilder { + } + + interface Table { + (tableName: string): QueryBuilder; + (callback: Function): QueryBuilder; + } + + interface Distinct extends ColumnNameQueryBuilder { + } + + interface Join { + (raw: Raw): QueryBuilder; + (tableName: string, callback: Function): QueryBuilder; + (tableName: string, column1: string, column2: string): QueryBuilder; + (tableName: string, column1: string, raw: Raw): QueryBuilder; + (tableName: string, column1: string, operator: string, column2: string): QueryBuilder; + } + + interface JoinRaw { + (tableName: string, binding?: Value): QueryBuilder; + } + + interface Where extends WhereRaw, WhereWrapped, WhereNull { + (object: Object): QueryBuilder; + (columnName: string, value: Value): QueryBuilder; + (columnName: string, operator: string, value: Value): QueryBuilder; + (columnName: string, operator: string, query: QueryBuilder): QueryBuilder; + } + + interface WhereRaw extends RawQueryBuilder { + (condition: boolean): QueryBuilder; + } + + interface WhereWrapped { + (callback: Function): QueryBuilder; + } + + interface WhereNull { + (columnName: string): QueryBuilder; + } + + interface WhereIn { + (columnName: string, values: Value[]): QueryBuilder; + (columnName: string, callback: Function): QueryBuilder; + (columnName: string, query: QueryBuilder): QueryBuilder; + } + + interface WhereBetween { + (columnName: string, range: [Value, Value]): QueryBuilder; + } + + interface WhereExists { + (callback: Function): QueryBuilder; + (query: QueryBuilder): QueryBuilder; + } + + interface WhereNull { + (columnName: string): QueryBuilder; + } + + interface WhereIn { + (columnName: string, values: Value[]): QueryBuilder; + } + + interface GroupBy extends RawQueryBuilder, ColumnNameQueryBuilder { + } + + interface OrderBy { + (columnName: string, direction?: string): QueryBuilder; + } + + interface Union { + (callback: Function, wrap?: boolean): QueryBuilder; + (callbacks: Function[], wrap?: boolean): QueryBuilder; + (...callbacks: Function[]): QueryBuilder; + // (...callbacks: Function[], wrap?: boolean): QueryInterface; + } + + interface Having extends RawQueryBuilder, WhereWrapped { + (tableName: string, column1: string, operator: string, column2: string): QueryBuilder; + } + + // commons + + interface ColumnNameQueryBuilder { + (...columnNames: ColumnName[]): QueryBuilder; + (columnNames: ColumnName[]): QueryBuilder; + } + + interface RawQueryBuilder { + (sql: string, ...bindings: Value[]): QueryBuilder; + (sql: string, bindings: Value[]): QueryBuilder; + (raw: Raw): QueryBuilder; + } + + // Raw + + interface Raw extends events.EventEmitter, ChainableInterface { + wrap(before: string, after: string): Raw; + } + + interface RawBuilder { + (value: Value): Raw; + (sql: string, ...bindings: Value[]): Raw; + (sql: string, bindings: Value[]): Raw; + } + + // + // QueryBuilder + // + + interface QueryBuilder extends QueryInterface, ChainableInterface { + or: QueryBuilder; + and: QueryBuilder; + + //TODO: Promise? + columnInfo(column?: string): Promise; + + forUpdate(): QueryBuilder; + forShare(): QueryBuilder; + + toSQL(): Sql; + + on(event: string, callback: Function): QueryBuilder; + } + + interface Sql { + method: string; + options: any; + bindings: Value[]; + sql: string; + } + + // + // Chainable interface + // + + interface ChainableInterface extends Promise { + toQuery(): string; + options(options: any): QueryBuilder; + stream(options?: any, callback?: (builder: QueryBuilder) => any): QueryBuilder; + stream(callback?: (builder: QueryBuilder) => any): QueryBuilder; + pipe(writable: any): QueryBuilder; + exec(callback: Function): QueryBuilder; + } + + interface Transaction extends QueryBuilder { + commit: any; + rollback: any; + } + + // + // Schema builder + // + + interface Knex { + schema: SchemaBuilder; + } + + interface SchemaBuilder { + createTable(tableName: string, callback: (tableBuilder: CreateTableBuilder) => any): void; + renameTable(oldTableName: string, newTableName: string): void; + dropTable(tableName: string): void; + hasTable(tableName: string): Promise; + hasColumn(tableName: string, columnName: string): Promise; + table(tableName: string, callback: (tableBuilder: AlterTableBuilder) => any): void; + dropTableIfExists(tableName: string): void; + raw(statement: string): SchemaBuilder; + } + + interface TableBuilder { + increments(columnName?: string): ColumnBuilder; + dropColumn(columnName: string): TableBuilder; + dropColumns(...columnNames: string[]): TableBuilder; + renameColumn(from: string, to: string): ColumnBuilder; + integer(columnName: string): ColumnBuilder; + bigInteger(columnName: string): ColumnBuilder; + text(columnName: string, textType?: string): ColumnBuilder; + string(columnName: string, length?: number): ColumnBuilder; + float(columnName: string, precision?: number, scale?: number): ColumnBuilder; + decimal(columnName: string, precision?: number, scale?: number): ColumnBuilder; + boolean(columnName: string): ColumnBuilder; + date(columnName: string): ColumnBuilder; + dateTime(columnName: string): ColumnBuilder; + time(columnName: string): ColumnBuilder; + timestamp(columnName: string): ColumnBuilder; + timestamps(): ColumnBuilder; + binary(columnName: string): ColumnBuilder; + enum(columnName: string): ColumnBuilder; + enu(columnName: string): ColumnBuilder; + json(columnName: string): ColumnBuilder; + uuid(columnName: string): ColumnBuilder; + comment(val: string): TableBuilder; + specificType(columnName: string, type: string): ColumnBuilder; + } + + interface CreateTableBuilder extends TableBuilder { + } + + interface MySqlTableBuilder extends CreateTableBuilder { + engine(val: string): CreateTableBuilder; + charset(val: string): CreateTableBuilder; + collate(val: string): CreateTableBuilder; + } + + interface AlterTableBuilder extends TableBuilder { + } + + interface MySqlAlterTableBuilder extends AlterTableBuilder { + } + + interface ColumnBuilder { + index(indexName?: string): ColumnBuilder; + primary(): ColumnBuilder; + unique(): ColumnBuilder; + references(columnName: string): ReferencingColumnBuilder; + onDelete(command: string): ColumnBuilder; + onUpdate(command: string): ColumnBuilder; + defaultTo(value: Value): ColumnBuilder; + unsigned(): ColumnBuilder; + notNullable(): ColumnBuilder; + nullable(): ColumnBuilder; + comment(value: string): ColumnBuilder; + } + + interface PostgreSqlColumnBuilder extends ColumnBuilder { + index(indexName?: string, indexType?: string): ColumnBuilder; + } + + interface ReferencingColumnBuilder { + inTable(tableName: string): ColumnBuilder; + } + + interface AlterColumnBuilder extends ColumnBuilder { + } + + interface MySqlAlterColumnBuilder extends AlterColumnBuilder { + first(): AlterColumnBuilder; + after(columnName: string): AlterColumnBuilder; + } + + // + // Configurations + // + + interface ColumnInfo { + defaultValue: Value; + type: string; + maxLength: number; + nullable: boolean; + } + + interface Config { + client?: string; + dialect?: string; + connection: string|ConnectionConfig| + Sqlite3ConnectionConfig|SocketConnectionConfig; + pool?: PoolConfig; + migrations?: MigrationConfig; + } + + interface ConnectionConfig { + host: string; + user: string; + password: string; + database: string; + debug?: boolean; + } + + /** Used with SQLite3 adapter */ + interface Sqlite3ConnectionConfig { + filename: string; + debug?: boolean; + } + + interface SocketConnectionConfig { + socketPath: string; + user: string; + password: string; + database: string; + debug?: boolean; + } + + interface PoolConfig { + name?: string; + create?: Function; + destroy?: Function; + min?: number; + max?: number; + refreshIdle?: boolean; + idleTimeoutMillis?: number; + reapIntervalMillis?: number; + returnToHead?: boolean; + priorityRange?: number; + validate?: Function; + log?: boolean; + } + + interface MigrationConfig { + database?: string; + directory?: string; + extension?: string; + tableName?: string; + } var _: KnexStatic; export = _; From 16b8577157db59d0341b638abc09bd70e2063d37 Mon Sep 17 00:00:00 2001 From: kubo_takaichi Date: Fri, 27 Mar 2015 23:57:27 +0900 Subject: [PATCH 60/71] Modify migration samples --- knex/knex-test.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/knex/knex-test.ts b/knex/knex-test.ts index 4cd7ec0d7..39b441d6b 100644 --- a/knex/knex-test.ts +++ b/knex/knex-test.ts @@ -550,14 +550,20 @@ knex.select('*') // Migrations // var config = { }; -knex.migrate.make(name, [config]); +knex.migrate.make(name, config); +knex.migrate.make(name); -knex.migrate.latest([config]); +knex.migrate.latest(config); +knex.migrate.latest(); -knex.migrate.rollback([config]); +knex.migrate.rollback(config); +knex.migrate.rollback(); -knex.migrate.currentversion([config]); +knex.migrate.currentversion(config); +knex.migrate.currentversion(); -knex.seed.make(name, [config]); +knex.seed.make(name, config); +knex.seed.make(name); -knex.seed.run([config]); +knex.seed.run(config); +knex.seed.run(); From 3f4a36cbdce84b0fa086000b4541d8b7e55304a1 Mon Sep 17 00:00:00 2001 From: aaron Date: Sat, 28 Mar 2015 15:39:24 -0400 Subject: [PATCH 61/71] fix youtube addEventListener signature --- youtube/youtube.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube/youtube.d.ts b/youtube/youtube.d.ts index cfdba0efb..85f96b22f 100644 --- a/youtube/youtube.d.ts +++ b/youtube/youtube.d.ts @@ -146,7 +146,7 @@ declare module YT { getPlaylistIndex(): number; // Event Listener - addEventListener(event: string, listener: string): void; + addEventListener(event: string, handler: EventHandler): void; } export enum PlayerState { From 119a642d1a30e1d4131febde7bc55450d28c9ef4 Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Sat, 28 Mar 2015 20:30:52 +0100 Subject: [PATCH 62/71] Add typescript-deferred header & test. --- .../typescript-deferred-tests.ts | 61 +++++++++++++++++++ typescript-deferred/typescript-deferred.d.ts | 47 ++++++++++++++ 2 files changed, 108 insertions(+) create mode 100644 typescript-deferred/typescript-deferred-tests.ts create mode 100644 typescript-deferred/typescript-deferred.d.ts diff --git a/typescript-deferred/typescript-deferred-tests.ts b/typescript-deferred/typescript-deferred-tests.ts new file mode 100644 index 000000000..0bfa82582 --- /dev/null +++ b/typescript-deferred/typescript-deferred-tests.ts @@ -0,0 +1,61 @@ +/// + +import tsd = require('typescript-deferred'); + +var t1: tsd.PromiseInterface = tsd.when(10) + .then(() => tsd.when('foo')); + +var t2: tsd. PromiseInterface = tsd.when(10) + .then(() => 'foo'); + +var t3: tsd.PromiseInterface = tsd.when(10) + .then(() => 'foo', () => tsd.when('bar')); + +var t4: tsd.PromiseInterface = tsd.when(10) + .then(() => 'foo', () => 'bar'); + +var t5: tsd.PromiseInterface = tsd.when(10) + .then(() => tsd.when('foo'), () => 'bar'); + +var t6: tsd.PromiseInterface = tsd.when(10) + .then(() => tsd.when('foo'), () => tsd.when('bar')); + +var t7: tsd.PromiseInterface = tsd.when(10) + .always(() => 'foo'); + +var t8: tsd.PromiseInterface = tsd.when(10) + .always(() => tsd.when('foo')); + +var t9: tsd.PromiseInterface = tsd.when(10) + .otherwise(() => 11); + +var t10: tsd.PromiseInterface = tsd.when(10) + .otherwise(() => tsd.when(11)); + +var t11: tsd.PromiseInterface = tsd.when('foo'); + +var t12: tsd.PromiseInterface = tsd.when(tsd.when('foo')); + +var t13: tsd.PromiseInterface = tsd.create() + .promise; + +var t14: tsd.DeferredInterface = tsd.create(); + +var t15: tsd.ThenableInterface = tsd.when('foo'); + +var t16: tsd.PromiseInterface = tsd.when( >tsd.when('foo')); + +var t17: tsd.PromiseInterface = tsd.when(10) + .then(() => >tsd.when('foo'), () => >tsd.when('bar')); + +var t18: tsd.PromiseInterface = tsd.create() + .resolve('foo') + .promise; + +var t19: tsd.PromiseInterface = tsd.create() + .resolve(tsd.when('foo')) + .promise; + +var t20: tsd.PromiseInterface = tsd.create() + .reject(new Error('foo')) + .promise; diff --git a/typescript-deferred/typescript-deferred.d.ts b/typescript-deferred/typescript-deferred.d.ts new file mode 100644 index 000000000..bffc65b70 --- /dev/null +++ b/typescript-deferred/typescript-deferred.d.ts @@ -0,0 +1,47 @@ +// Type definitions for typescript-deferred v0.1.5 +// Project: https://github.com/DirtyHairy/typescript-deferred +// Definitions by: Christian Speckner +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module "typescript-deferred" { + + export interface ImmediateSuccessCB { + (value: T): TP; + } + export interface ImmediateErrorCB { + (err: any): TP; + } + export interface DeferredSuccessCB { + (value: T): ThenableInterface; + } + export interface DeferredErrorCB { + (error: any): ThenableInterface; + } + export interface ThenableInterface { + then(successCB?: DeferredSuccessCB, errorCB?: DeferredErrorCB): ThenableInterface; + then(successCB?: DeferredSuccessCB, errorCB?: ImmediateErrorCB): ThenableInterface; + then(successCB?: ImmediateSuccessCB, errorCB?: DeferredErrorCB): ThenableInterface; + then(successCB?: ImmediateSuccessCB, errorCB?: ImmediateErrorCB): ThenableInterface; + } + export interface PromiseInterface extends ThenableInterface { + then(successCB?: DeferredSuccessCB, errorCB?: DeferredErrorCB): PromiseInterface; + then(successCB?: DeferredSuccessCB, errorCB?: ImmediateErrorCB): PromiseInterface; + then(successCB?: ImmediateSuccessCB, errorCB?: DeferredErrorCB): PromiseInterface; + then(successCB?: ImmediateSuccessCB, errorCB?: ImmediateErrorCB): PromiseInterface; + otherwise(errorCB?: DeferredErrorCB): PromiseInterface; + otherwise(errorCB?: ImmediateErrorCB): PromiseInterface; + always(errorCB?: DeferredErrorCB): PromiseInterface; + always(errorCB?: ImmediateErrorCB): PromiseInterface; + } + export interface DeferredInterface { + resolve(value?: ThenableInterface): DeferredInterface; + resolve(value?: T): DeferredInterface; + reject(error?: any): DeferredInterface; + promise: PromiseInterface; + } + export function create(): DeferredInterface; + export function when(value?: ThenableInterface): PromiseInterface; + export function when(value?: T): PromiseInterface; + + +} From 7c0ed32587d0563179f2665bf69beac95be9e7d8 Mon Sep 17 00:00:00 2001 From: rafw87 Date: Sun, 29 Mar 2015 00:48:59 +0100 Subject: [PATCH 63/71] Update angular.d.ts $q.all() - separate overloads for array and hash version --- angularjs/angular.d.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index bc7fa9de0..f3aadc9f7 100755 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -930,11 +930,19 @@ declare module angular { /** * Combines multiple promises into a single promise that is resolved when all of the input promises are resolved. * - * Returns a single promise that will be resolved with an array/hash of values, each value corresponding to the promise at the same index/key in the promises array/hash. If any of the promises is resolved with a rejection, this resulting promise will be rejected with the same rejection value. + * Returns a single promise that will be resolved with an array of values, each value corresponding to the promise at the same index in the promises array. If any of the promises is resolved with a rejection, this resulting promise will be rejected with the same rejection value. * - * @param promises An array or hash of promises. + * @param promises An array of promises. */ - all(promises: IPromise[]|{ [id: string]: IPromise; }): IPromise; + all(promises: IPromise[]): IPromise; + /** + * Combines multiple promises into a single promise that is resolved when all of the input promises are resolved. + * + * Returns a single promise that will be resolved with a hash of values, each value corresponding to the promise at the same key in the promises hash. If any of the promises is resolved with a rejection, this resulting promise will be rejected with the same rejection value. + * + * @param promises A hash of promises. + */ + all(promises: { [id: string]: IPromise; }): IPromise<{ [id: string]: any; }>; /** * Creates a Deferred object which represents a task which will finish in the future. */ From fbb8c672d56d1cfe677b81c300f8506a31e0404c Mon Sep 17 00:00:00 2001 From: vvakame Date: Sun, 29 Mar 2015 23:18:12 +0900 Subject: [PATCH 64/71] update CONTRIBUTORS.md --- CONTRIBUTORS.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index c8f458501..c2a12283a 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -57,6 +57,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](atpl/atpl.d.ts) [atpl](https://github.com/soywiz/atpl.js) by [Carlos Ballesteros Velasco](https://github.com/soywiz) * [:link:](auth0/auth0.d.ts) [Auth0.js](http://auth0.com) by [Robert McLaws](https://github.com/advancedrei) * [:link:](auth0.widget/auth0.widget.d.ts) [Auth0Widget.js](http://auth0.com) by [Robert McLaws](https://github.com/advancedrei) +* [:link:](autobahn/autobahn.d.ts) [AutobahnJS](http://autobahn.ws/js) by [Elad Zelingher](https://github.com/darkl) * [:link:](aws-sdk/aws-sdk.d.ts) [aws-sdk](https://github.com/aws/aws-sdk-js) by [midknight41](https://github.com/midknight41) * [:link:](axios/axios.d.ts) [axios](https://github.com/mzabriskie/axios) by [Marcel Buesing](https://github.com/marcelbuesing) * [:link:](node-azure/azure.d.ts) [Azure SDK for Node](https://github.com/WindowsAzure/azure-sdk-for-node) by [Andrew Gaspar](https://github.com/AndrewGaspar), [Anti Veeranna](https://github.com/antiveeranna), [Maxime LUCE](https://github.com/SomaticIT) @@ -83,8 +84,8 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](bootstrap-notify/bootstrap-notify.d.ts) [bootstrap-notify](https://github.com/Nijikokun/bootstrap-notify) by [Blake Niemyjski](https://github.com/niemyjski) * [:link:](bootstrap.datepicker/bootstrap.datepicker.d.ts) [bootstrap.datepicker](https://github.com/eternicode/bootstrap-datepicker) by [Boris Yankov](https://github.com/borisyankov) * [:link:](bootstrap.paginator/bootstrap.paginator.d.ts) [bootstrap.paginator](https://github.com/lyonlai/bootstrap-paginator) by [derikwhittaker](https://github.com/derikwhittaker) -* [:link:](bootstrap.timepicker/bootstrap.timepicker.d.ts) [bootstrap.timepicker](https://github.com/jdewit/bootstrap-timepicker) by [derikwhittaker](https://github.com/derikwhittaker) * [:link:](box2d/box2dweb.d.ts) [bootstrap.timepicker](http://code.google.com/p/box2dweb) by [jbaldwin](https://github.com/jbaldwin) +* [:link:](bootstrap.timepicker/bootstrap.timepicker.d.ts) [bootstrap.timepicker](https://github.com/jdewit/bootstrap-timepicker) by [derikwhittaker](https://github.com/derikwhittaker) * [:link:](breeze/breeze.d.ts) [Breeze 1.5.x](http://www.breezejs.com) by [Boris Yankov](https://github.com/borisyankov), [IdeaBlade](https://github.com/IdeaBlade/Breeze) * [:link:](browser-harness/browser-harness.d.ts) [Browser Harness](https://github.com/scriby/browser-harness) by [Chris Scribner](https://github.com/scriby) * [:link:](browser-sync/browser-sync.d.ts) [browser-sync](http://www.browsersync.io) by [Asana](https://asana.com) @@ -240,7 +241,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](fs-mock/fs-mock.d.ts) [fs-mock](https://github.com/sakren/node-fs-mock) by [Rogier Schouten](https://github.com/rogierschouten) * [:link:](ftdomdelegate/ftdomdelegate.d.ts) [ftdomdelegate](https://github.com/ftlabs/ftdomdelegate) by [Christian Holm Nielsen](https://github.com/dotnetnerd) * [:link:](ftp/ftp.d.ts) [ftp](https://github.com/mscdex/node-ftp) by [Rogier Schouten](https://github.com/rogierschouten) -* [:link:](ftpd/ftpd.d.ts) [ftp](https://github.com/sstur/nodeftpd) by [Rogier Schouten](https://github.com/rogierschouten) +* [:link:](ftpd/ftpd.d.ts) [ftpd](https://github.com/sstur/nodeftpd) by [Rogier Schouten](https://github.com/rogierschouten) * [:link:](fullCalendar/fullCalendar.d.ts) [FullCalendar](http://arshaw.com/fullcalendar) by [Neil Stalker](https://github.com/nestalk) * [:link:](fuse/fuse.d.ts) [Fuse.js](https://github.com/krisk/Fuse) by [Greg Smith](https://github.com/smrq) * [:link:](jquery-galleria/jquery-galleria.d.ts) [galleria.js](https://github.com/aino/galleria) by [Robert Imig](https://github.com/rimig) @@ -273,9 +274,9 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](greensock/greensock.d.ts) [GreenSock Animation Platform](http://www.greensock.com/get-started-js) by [Robert S](https://github.com/codebelt) * [:link:](gridfs-stream/gridfs-stream.d.ts) [gridfs-stream](https://github.com/aheckmann/gridfs-stream) by [Lior Mualem](https://github.com/liorm) * [:link:](gruntjs/gruntjs.d.ts) [Grunt 0.4.x](http://gruntjs.com) by [Jeff May](https://github.com/jeffmay), [Basarat Ali Syed](https://github.com/basarat) -* [:link:](gsap/TweenLite.d.ts) [GSAP](http://greensock.com) by [VILIC VANE](https://vilic.github.io) -* [:link:](gsap/Ease.d.ts) [GSAP](http://greensock.com) by [VILIC VANE](https://vilic.github.io) * [:link:](gsap/Core.d.ts) [GSAP](http://greensock.com) by [VILIC VANE](https://vilic.github.io) +* [:link:](gsap/Ease.d.ts) [GSAP](http://greensock.com) by [VILIC VANE](https://vilic.github.io) +* [:link:](gsap/TweenLite.d.ts) [GSAP](http://greensock.com) by [VILIC VANE](https://vilic.github.io) * [:link:](gulp/gulp.d.ts) [Gulp v3.8.x](http://gulpjs.com) by [Drew Noakes](https://drewnoakes.com) * [:link:](gulp-autoprefixer/gulp-autoprefixer.d.ts) [gulp-autoprefixer](https://github.com/sindresorhus/gulp-autoprefixer) by [Asana](https://asana.com) * [:link:](gulp-concat/gulp-concat.d.ts) [gulp-concat](http://github.com/wearefractal/gulp-concat) by [Keita Kagurazaka](https://github.com/k-kagurazaka) @@ -451,6 +452,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](keymaster/keymaster.d.ts) [keymaster](https://github.com/madrobby/keymaster) by [Martin W. Kirst](https://github.com/nitram509) * [:link:](keypress/keypress.d.ts) [Keypress](https://github.com/dmauro/Keypress) by [Roger Chen](https://github.com/rcchen) * [:link:](kineticjs/kineticjs.d.ts) [KineticJS](http://kineticjs.com) by [Basarat Ali Syed](http://www.github.com/basarat), [Ralph de Ruijter](http://www.superdopey.nl/techblog) +* [:link:](knex/knex.d.ts) [Knex.js](https://github.com/tgriesser/knex) by [Qubo](https://github.com/tkQubo) * [:link:](knockback/knockback.d.ts) [Knockback.js](http://kmalakoff.github.io/knockback) by [Boris Yankov](https://github.com/borisyankov) * [:link:](knockout/knockout.d.ts) [Knockout](http://knockoutjs.com) by [Boris Yankov](https://github.com/borisyankov), [Igor Oleinikov](https://github.com/Igorbek), [Clément Bourgeois](https://github.com/moonpyk) * [:link:](knockout.deferred.updates/knockout.deferred.updates.d.ts) [Knockout Deferred Updates](https://github.com/mbest/knockout-deferred-updates) by [Sebastián Galiano](https://github.com/sgaliano) @@ -490,6 +492,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](log4javascript/log4javascript.d.ts) [log4javascript](http://log4javascript.org) by [Markus Wagner](https://github.com/Ritzlgrmft) * [:link:](log4js/log4js.d.ts) [log4js](https://github.com/nomiddlename/log4js-node) by [Kentaro Okuno](http://github.com/armorik83) * [:link:](logg/logg.d.ts) [logg](https://github.com/dpup/node-logg) by [Bret Little](https://github.com/blittle) +* [:link:](loggly/loggly.d.ts) [loggly](https://github.com/nodejitsu/node-loggly) by [Ray Martone](https://github.com/rmartone) * [:link:](logrotate-stream/logrotate-stream.d.ts) [logrotate-stream](https://github.com/dstokes/logrotate-stream) by [Rogier Schouten](https://github.com/rogierschouten) * [:link:](lolex/lolex.d.ts) [lolex](https://github.com/sinonjs/lolex) by [Wim Looman](https://github.com/Nemo157) * [:link:](long/long.d.ts) [Long.js](https://github.com/dcodeIO/Long.js) by [Toshihide Hara](https://github.com/kerug) @@ -820,6 +823,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](type-detect/type-detect.d.ts) [type-detect](https://github.com/chaijs/type-detect) by [Bart van der Schoor](https://github.com/Bartvds) * [:link:](typeahead/typeahead.d.ts) [typeahead.js](http://twitter.github.io/typeahead.js) by [Ivaylo Gochkov](https://github.com/igochkov), [Gidon Junge](https://github.com/gjunge) * [:link:](typescript/typescript.d.ts) [TypeScript API](http://www.typescriptlang.org) by [Microsoft TypeScript](http://typescriptlang.org) +* [:link:](typescript-deferred/typescript-deferred.d.ts) [typescript-deferred](https://github.com/DirtyHairy/typescript-deferred) by [Christian Speckner](https://github.com/DirtyHairy) * [:link:](typescript-services/typescriptServices.d.ts) [TypeScript-Services](https://www.npmjs.org/package/typescript-services) by [Basarat Ali Syed](http://github.com/basarat) * [:link:](unity-webapi/unity-webapi.d.ts) [Ubuntu Unity Web API](https://launchpad.net/libunity-webapps) by [John Vrbanac](jhttps://github.com/jmvrbanac) * [:link:](underscore/underscore.d.ts) [Underscore](http://underscorejs.org) by [Boris Yankov](https://github.com/borisyankov), [Josh Baldwin](https://github.com/jbaldwin) From f6a35d9ac841fa5b3425d89f81ad9c83dbdbc002 Mon Sep 17 00:00:00 2001 From: Kjartan Ferstl Date: Mon, 30 Mar 2015 13:10:14 +0200 Subject: [PATCH 65/71] underscore _.findIndex now returns the correct type (number instead of the element type) --- underscore/underscore.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/underscore/underscore.d.ts b/underscore/underscore.d.ts index 9f49bc47a..7ff9aa5eb 100644 --- a/underscore/underscore.d.ts +++ b/underscore/underscore.d.ts @@ -278,7 +278,7 @@ interface UnderscoreStatic { findIndex( list: _.List, iterator: _.ListIterator, - context?: any): T; + context?: any): number; /** From c673b469b7d1b5c55433e4bdf5466eff2ef919a2 Mon Sep 17 00:00:00 2001 From: Josh McCullough Date: Mon, 30 Mar 2015 16:24:42 -0400 Subject: [PATCH 66/71] Fixed type of assert.async()`. The function `assert.async` is not of type `any`, it is a parameterless, void function. --- qunit/qunit.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qunit/qunit.d.ts b/qunit/qunit.d.ts index dbf5d9c08..ddbf014e4 100644 --- a/qunit/qunit.d.ts +++ b/qunit/qunit.d.ts @@ -170,7 +170,7 @@ interface QUnitAssert { * resolution callback for each async operation. The callback returned from assert.async() * will throw an Error if is invoked more than once. */ - async(): any; + async(): () => void; /** * A deep recursive comparison assertion, working on primitive types, arrays, objects, From cfb41c331e005095dd134b69e176a0e45cdd78b0 Mon Sep 17 00:00:00 2001 From: Ricardo Franco Date: Mon, 30 Mar 2015 18:17:40 -0300 Subject: [PATCH 67/71] fix missing module 'ng' --- angularjs/angular.d.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index 9f7efea89..90822f603 100755 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -452,9 +452,9 @@ declare module angular { $invalid: boolean; $submitted: boolean; $error: any; - $addControl(control: ng.INgModelController): void; - $removeControl(control: ng.INgModelController): void; - $setValidity(validationErrorKey: string, isValid: boolean, control: ng.INgModelController): void; + $addControl(control: INgModelController): void; + $removeControl(control: INgModelController): void; + $setValidity(validationErrorKey: string, isValid: boolean, control: INgModelController): void; $setDirty(): void; $setPristine(): void; $commitViewValue(): void; @@ -509,7 +509,7 @@ declare module angular { } interface IAsyncModelValidators { - [index: string]: (...args: any[]) => ng.IPromise; + [index: string]: (...args: any[]) => IPromise; } interface IModelParser { @@ -1573,12 +1573,12 @@ declare module angular { * $delegate - The original service instance, which can be monkey patched, configured, decorated or delegated to. */ decorator(name: string, inlineAnnotatedFunction: any[]): void; - factory(name: string, serviceFactoryFunction: Function): ng.IServiceProvider; - factory(name: string, inlineAnnotatedFunction: any[]): ng.IServiceProvider; - provider(name: string, provider: ng.IServiceProvider): ng.IServiceProvider; - provider(name: string, serviceProviderConstructor: Function): ng.IServiceProvider; - service(name: string, constructor: Function): ng.IServiceProvider; - value(name: string, value: any): ng.IServiceProvider; + factory(name: string, serviceFactoryFunction: Function): IServiceProvider; + factory(name: string, inlineAnnotatedFunction: any[]): IServiceProvider; + provider(name: string, provider: IServiceProvider): IServiceProvider; + provider(name: string, serviceProviderConstructor: Function): IServiceProvider; + service(name: string, constructor: Function): IServiceProvider; + value(name: string, value: any): IServiceProvider; } } From 4d1663493e4994cdf025d237434b5916719b569d Mon Sep 17 00:00:00 2001 From: Ricardo Franco Date: Mon, 30 Mar 2015 18:22:58 -0300 Subject: [PATCH 68/71] rename module 'ng' to 'angular' --- angular-ui-bootstrap/angular-ui-bootstrap.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/angular-ui-bootstrap/angular-ui-bootstrap.d.ts b/angular-ui-bootstrap/angular-ui-bootstrap.d.ts index c9bf91c01..d7e65c77c 100644 --- a/angular-ui-bootstrap/angular-ui-bootstrap.d.ts +++ b/angular-ui-bootstrap/angular-ui-bootstrap.d.ts @@ -190,15 +190,15 @@ declare module angular.ui.bootstrap { /** * a promise that is resolved when a modal is closed and rejected when a modal is dismissed */ - result: ng.IPromise; + result: angular.IPromise; /** * a promise that is resolved when a modal gets opened after downloading content's template and resolving all variables */ - opened: ng.IPromise; + opened: angular.IPromise; } - interface IModalScope extends ng.IScope { + interface IModalScope extends angular.IScope { /** * Those methods make it easy to close a modal window without a need to create a dedicated controller */ @@ -623,7 +623,7 @@ declare module angular.ui.bootstrap { * * @return A promise that is resolved when the transition finishes. */ - (element: ng.IAugmentedJQuery, trigger: any, options?: ITransitionServiceOptions): ng.IPromise; + (element: angular.IAugmentedJQuery, trigger: any, options?: ITransitionServiceOptions): angular.IPromise; } interface ITransitionServiceOptions { From e30c79d328b268dd3a8d87688b4aeef57b7f243e Mon Sep 17 00:00:00 2001 From: vvakame Date: Thu, 2 Apr 2015 01:58:04 +0900 Subject: [PATCH 69/71] add posix and win32 object to node/path --- node/node.d.ts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/node/node.d.ts b/node/node.d.ts index 3838a2952..88745f468 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -1036,6 +1036,36 @@ declare module "path" { export var delimiter: string; export function parse(p: string): ParsedPath; export function format(pP: ParsedPath): string; + + export module posix { + export function normalize(p: string): string; + export function join(...paths: any[]): string; + export function resolve(...pathSegments: any[]): string; + export function isAbsolute(p: string): boolean; + export function relative(from: string, to: string): string; + export function dirname(p: string): string; + export function basename(p: string, ext?: string): string; + export function extname(p: string): string; + export var sep: string; + export var delimiter: string; + export function parse(p: string): ParsedPath; + export function format(pP: ParsedPath): string; + } + + export module win32 { + export function normalize(p: string): string; + export function join(...paths: any[]): string; + export function resolve(...pathSegments: any[]): string; + export function isAbsolute(p: string): boolean; + export function relative(from: string, to: string): string; + export function dirname(p: string): string; + export function basename(p: string, ext?: string): string; + export function extname(p: string): string; + export var sep: string; + export var delimiter: string; + export function parse(p: string): ParsedPath; + export function format(pP: ParsedPath): string; + } } declare module "string_decoder" { From e5d9227b59098c4ea38ce2caea154ac836987eef Mon Sep 17 00:00:00 2001 From: "Michael J. Bennett" Date: Wed, 1 Apr 2015 20:00:42 -0400 Subject: [PATCH 70/71] mariasql definitions are now a ghost module On branch mariasql modified: mariasql/mariasql-tests.ts modified: mariasql/mariasql.d.ts --- mariasql/mariasql-tests.ts | 2 +- mariasql/mariasql.d.ts | 161 +++++++++++++++++++------------------ 2 files changed, 84 insertions(+), 79 deletions(-) diff --git a/mariasql/mariasql-tests.ts b/mariasql/mariasql-tests.ts index 554d3d4a7..6700a0353 100644 --- a/mariasql/mariasql-tests.ts +++ b/mariasql/mariasql-tests.ts @@ -7,7 +7,7 @@ import util = require('util'); import Client = require('mariasql'); -var c:Client = new Client(), +var c:MARIASQL.MariaClient = new Client(), inspect = util.inspect; c.connect({ diff --git a/mariasql/mariasql.d.ts b/mariasql/mariasql.d.ts index 2c375a173..8b3d5551a 100644 --- a/mariasql/mariasql.d.ts +++ b/mariasql/mariasql.d.ts @@ -3,95 +3,100 @@ // Definitions by: MichaelBennett // Definitions: https://github.com/borisyankov/DefinitelyTyped +declare module MARIASQL { + export interface MariaCallBackError { + (error:Error):void + } -/** - */ -interface MariaCallBackError { - (error:Error):void -} + export interface MariaCallBackResult { + (result:MariaResult):void + } -interface MariaCallBackResult { - (result:MariaResult):void -} + export interface MariaCallBackRow { + (result:Array):void + } -interface MariaCallBackRow { - (result:Array):void -} + export interface MariaCallBackBoolean { + (result:boolean):void + } -interface MariaCallBackBoolean { - (result:boolean):void -} + export interface MariaCallBackObject { + (result:Object):void + } -interface MariaCallBackObject { - (result:Object):void -} + export interface MariaCallBackVoid { + ():void + } -interface MariaCallBackVoid { - ():void -} + export interface Dictionary { + [index: string]: any; + } -interface Dictionary { - [index: string]: any; -} + export interface MariaPreparedQuery { + (values:Dictionary):string; + (values:Array):string; + } -interface MariaPreparedQuery { - (values:Dictionary):string; - (values:Array):string; -} + export interface ClientConfig { + host: string; + user: string; + password: string; + db?: string; + port?: number; + unixSocket?: string; + keepQueries?: boolean; + multiStatements?: boolean; + connTimeout?: number; + pingInterval?: number; + secureAuth?: boolean; + compress?: boolean; + ssl?:any; + local_infile?: boolean; + read_default_group?: string; + charset?: string; + } -interface ClientConfig { - host: string; - user: string; - password: string; - db?: string; - port?: number; - unixSocket?: string; - keepQueries?: boolean; - multiStatements?: boolean; - connTimeout?: number; - pingInterval?: number; - secureAuth?: boolean; - compress?: boolean; - ssl?:any; - local_infile?: boolean; - read_default_group?: string; - charset?: string; -} + export interface MariaResult { + on(signal:string, cb:MariaCallBackObject):MariaResult; // signal 'end' + on(signal:string, cb:MariaCallBackError):MariaResult; // signal 'error' + on(signal:string, cb:MariaCallBackRow):MariaResult; // signal 'row' + on(signal:string, cb:MariaCallBackVoid):MariaResult; // signal 'abort' + abort():void; + } -declare class MariaResult { - on(signal:string, cb:MariaCallBackObject):MariaResult; // signal 'end' - on(signal:string, cb:MariaCallBackError):MariaResult; // signal 'error' - on(signal:string, cb:MariaCallBackRow):MariaResult; // signal 'row' - on(signal:string, cb:MariaCallBackVoid):MariaResult; // signal 'abort' - abort():void; -} + export interface MariaQuery { + on(signal:string, cb:MariaCallBackResult):MariaQuery; // signal 'result' + on(signal:string, cb:MariaCallBackVoid):MariaQuery; // signal 'end' + on(signal:string, cb:MariaCallBackVoid):MariaQuery; // signal 'abort' + on(signal:string, cb:MariaCallBackError):MariaQuery; // signal 'error' + abort():void; + } -declare class MariaQuery { - on(signal:string, cb:MariaCallBackResult):MariaQuery; // signal 'result' - on(signal:string, cb:MariaCallBackVoid):MariaQuery; // signal 'end' - on(signal:string, cb:MariaCallBackVoid):MariaQuery; // signal 'abort' - on(signal:string, cb:MariaCallBackError):MariaQuery; // signal 'error' - abort():void; -} + export interface MariaClient { + connect(config:ClientConfig):void; + end():void; + destroy():void; + escape(query:string):string; + query(q:string, placeHolders?:Dictionary, useArray?:boolean):MariaQuery; + query(q:string, placeHolders?:Array, useArray?:boolean):MariaQuery; + query(q:string, useArray?:boolean):MariaQuery; + prepare(query:string): MariaPreparedQuery; + isMariaDB():boolean; + on(signal:string, cb:MariaCallBackError): MariaClient; // signal 'error' + on(signal:string, cb:MariaCallBackObject): MariaClient; // signal 'close' + on(signal:string, cb:MariaCallBackVoid): MariaClient; // signal 'connect' + connected: boolean; + threadId: string; + } -declare class MariaClient { - connect(config:ClientConfig):void; - end():void; - destroy():void; - escape(query:string):string; - query(q:string, placeHolders?:Dictionary, useArray?:boolean):MariaQuery; - query(q:string, placeHolders?:Array, useArray?:boolean):MariaQuery; - query(q:string, useArray?:boolean):MariaQuery; - prepare(query:string): MariaPreparedQuery; - isMariaDB():boolean; - on(signal:string, cb:MariaCallBackError): MariaClient; // signal 'error' - on(signal:string, cb:MariaCallBackObject): MariaClient; // signal 'close' - on(signal:string, cb:MariaCallBackVoid): MariaClient; // signal 'connect' - connected: boolean; - threadId: string; -} - -declare module 'mariasql' { - export = MariaClient; + export interface Client { + new ():MariaClient; + ():MariaClient; + prototype: MariaClient; + } } +declare module "mariasql" { + var Client:MARIASQL.Client; + export = Client; +} \ No newline at end of file From a8ef959e8ae63bc64fde7b7def7e0a621305c652 Mon Sep 17 00:00:00 2001 From: "Michael J. Bennett" Date: Wed, 1 Apr 2015 20:31:18 -0400 Subject: [PATCH 71/71] Cleaned up ghost module so that its name makes sense On branch mariasql modified: mariasql/mariasql-tests.ts modified: mariasql/mariasql.d.ts --- mariasql/mariasql-tests.ts | 2 +- mariasql/mariasql.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mariasql/mariasql-tests.ts b/mariasql/mariasql-tests.ts index 6700a0353..c9173058c 100644 --- a/mariasql/mariasql-tests.ts +++ b/mariasql/mariasql-tests.ts @@ -7,7 +7,7 @@ import util = require('util'); import Client = require('mariasql'); -var c:MARIASQL.MariaClient = new Client(), +var c:mariasql.MariaClient = new Client(), inspect = util.inspect; c.connect({ diff --git a/mariasql/mariasql.d.ts b/mariasql/mariasql.d.ts index 8b3d5551a..05d7fa062 100644 --- a/mariasql/mariasql.d.ts +++ b/mariasql/mariasql.d.ts @@ -3,7 +3,7 @@ // Definitions by: MichaelBennett // Definitions: https://github.com/borisyankov/DefinitelyTyped -declare module MARIASQL { +declare module mariasql { export interface MariaCallBackError { (error:Error):void } @@ -97,6 +97,6 @@ declare module MARIASQL { } declare module "mariasql" { - var Client:MARIASQL.Client; + var Client:mariasql.Client; export = Client; } \ No newline at end of file