diff --git a/.gitignore b/.gitignore
index 2ea470b9e..2a52c95e0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,6 +13,7 @@
*.map
*.swp
.DS_Store
+npm-debug.log
_Resharper.DefinitelyTyped
bin
diff --git a/.travis.yml b/.travis.yml
index f99663162..48704282a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,6 @@
language: node_js
node_js:
- - "iojs-v2"
+ - 4
sudo: false
diff --git a/README.md b/README.md
index 82833752d..7e1d60d87 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# DefinitelyTyped [](https://travis-ci.org/borisyankov/DefinitelyTyped)
+# DefinitelyTyped [](https://travis-ci.org/DefinitelyTyped/DefinitelyTyped)
[](https://gitter.im/borisyankov/DefinitelyTyped?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
diff --git a/ace/ace.d.ts.tscparams b/ace/ace.d.ts.tscparams
deleted file mode 100644
index d3f5a12fa..000000000
--- a/ace/ace.d.ts.tscparams
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/ace/tests/ace-editor_text_edit-tests.ts.tscparams b/ace/tests/ace-editor_text_edit-tests.ts.tscparams
deleted file mode 100644
index d3f5a12fa..000000000
--- a/ace/tests/ace-editor_text_edit-tests.ts.tscparams
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/ace/tests/ace-range-tests.ts.tscparams b/ace/tests/ace-range-tests.ts.tscparams
deleted file mode 100644
index d3f5a12fa..000000000
--- a/ace/tests/ace-range-tests.ts.tscparams
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/ace/tests/ace-search-tests.ts.tscparams b/ace/tests/ace-search-tests.ts.tscparams
deleted file mode 100644
index d3f5a12fa..000000000
--- a/ace/tests/ace-search-tests.ts.tscparams
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/adm-zip/adm-zip-tests.ts b/adm-zip/adm-zip-tests.ts
index f8583ae61..93f8f2f2d 100644
--- a/adm-zip/adm-zip-tests.ts
+++ b/adm-zip/adm-zip-tests.ts
@@ -1,10 +1,9 @@
///
import AdmZip = require("adm-zip");
-
// reading archives
var zip = new AdmZip("./my_file.zip");
-var zipEntries = zip.getEntries(); // an array of ZipEntry records
+var zipEntries: AdmZip.IZipEntry[] = zip.getEntries(); // an array of ZipEntry records
zipEntries.forEach(function (zipEntry) {
console.log(zipEntry.toString()); // outputs zip entries information
@@ -31,3 +30,32 @@ zip.addLocalFile("/home/me/some_picture.png");
var willSendthis = zip.toBuffer();
// or write everything to disk
zip.writeZip(/*target file name*/"/home/me/files.zip");
+
+function processZipEntry(zipEntry: AdmZip.IZipEntry) {
+ console.log('comment', zipEntry.comment);
+}
+
+//tests taken from examples at https://github.com/cthackers/adm-zip/wiki/ADM-ZIP
+import Zip = require("adm-zip");
+// loads and parses existing zip file local_file.zip
+var zip = new Zip("local_file.zip");
+// creates new in memory zip
+zip = new Zip();
+// loads and parses existing zip file local_file.zip
+zip = new Zip("local_file.zip");
+// get all entries and iterate them
+zip.getEntries().forEach((entry) => {
+ var entryName = entry.entryName;
+ var decompressedData = zip.readFile(entry); // decompressed buffer of the entry
+ console.log(zip.readAsText(entry)); // outputs the decompressed content of the entry
+});
+
+// will extract the file myfile.txt from the archive to /home/user/folder/subfolder/myfile.txt
+zip.extractEntryTo("folder/subfolder/myfile.txt", "/home/user/", true, true);
+
+// will extract the file myfile.txt from the archive to /home/user/myfile.txt
+zip.extractEntryTo("folder/subfolder/myfile.txt", "/home/user/", false, true);
+
+function isAdmZipEntry(obj: any): obj is AdmZip.IZipEntry {
+ return obj !== null && typeof obj === "object" && typeof obj['entryName'] === 'string';
+}
\ No newline at end of file
diff --git a/adm-zip/adm-zip.d.ts b/adm-zip/adm-zip.d.ts
index 9f2eb7dfd..208c13b27 100644
--- a/adm-zip/adm-zip.d.ts
+++ b/adm-zip/adm-zip.d.ts
@@ -5,8 +5,8 @@
///
-declare module AdmZip {
- class ZipFile {
+declare module "adm-zip" {
+ class AdmZip {
/**
* Create a new, empty archive.
*/
@@ -28,7 +28,7 @@ declare module AdmZip {
* @param entry ZipEntry object
* @return Buffer or Null in case of error
*/
- readFile(entry: IZipEntry): Buffer;
+ readFile(entry: AdmZip.IZipEntry): Buffer;
/**
* Asynchronous readFile
* @param entry String with the full path of the entry
@@ -41,7 +41,7 @@ declare module AdmZip {
* @param callback Called with a Buffer or Null in case of error
* @return Buffer or Null in case of error
*/
- readFileAsync(entry: IZipEntry, callback: (data: Buffer, err: string) => any): void;
+ readFileAsync(entry: AdmZip.IZipEntry, callback: (data: Buffer, err: string) => any): void;
/**
* Extracts the given entry from the archive and returns the content as
* plain text in the given encoding
@@ -57,7 +57,7 @@ declare module AdmZip {
* @param encoding Optional. If no encoding is specified utf8 is used
* @return String
*/
- readAsText(fileName: IZipEntry, encoding?: string): string;
+ readAsText(fileName: AdmZip.IZipEntry, encoding?: string): string;
/**
* Asynchronous readAsText
* @param entry String with the full path of the entry
@@ -71,7 +71,7 @@ declare module AdmZip {
* @param callback Called with the resulting string.
* @param encoding Optional. If no encoding is specified utf8 is used
*/
- readAsTextAsync(fileName: IZipEntry, callback: (data: string) => any, encoding?: string): void;
+ readAsTextAsync(fileName: AdmZip.IZipEntry, callback: (data: string) => any, encoding?: string): void;
/**
* Remove the entry from the file or the entry and all its nested directories
* and files if the given entry is a directory
@@ -83,7 +83,7 @@ declare module AdmZip {
* and files if the given entry is a directory
* @param entry A ZipEntry object.
*/
- deleteFile(entry: IZipEntry): void;
+ deleteFile(entry: AdmZip.IZipEntry): void;
/**
* Adds a comment to the zip. The zip must be rewritten after
* adding the comment.
@@ -110,7 +110,7 @@ declare module AdmZip {
* @param entry ZipEntry object.
* @param comment The comment to add to the entry.
*/
- addZipEntryComment(entry: IZipEntry, comment: string): void;
+ addZipEntryComment(entry: AdmZip.IZipEntry, comment: string): void;
/**
* Returns the comment of the specified entry.
* @param entry String with the full path of the entry.
@@ -122,7 +122,7 @@ declare module AdmZip {
* @param entry ZipEntry object.
* @return String The comment of the specified entry.
*/
- getZipEntryComment(entry: IZipEntry): string;
+ getZipEntryComment(entry: AdmZip.IZipEntry): string;
/**
* Updates the content of an existing entry inside the archive. The zip
* must be rewritten after updating the content
@@ -136,7 +136,7 @@ declare module AdmZip {
* @param entry ZipEntry object.
* @param content The entry's new contents.
*/
- updateFile(entry: IZipEntry, content: Buffer): void;
+ updateFile(entry: AdmZip.IZipEntry, content: Buffer): void;
/**
* Adds a file from the disk to the archive.
* @param localPath Path to a file on disk.
@@ -167,14 +167,14 @@ declare module AdmZip {
* Returns an array of ZipEntry objects representing the files and folders
* inside the archive
*/
- getEntries(): IZipEntry[];
+ getEntries(): AdmZip.IZipEntry[];
/**
* Returns a ZipEntry object representing the file or folder specified by
* ``name``.
* @param name Name of the file or folder to retrieve.
* @return ZipEntry The entry corresponding to the name.
*/
- getEntry(name: string): IZipEntry;
+ getEntry(name: string): AdmZip.IZipEntry;
/**
* Extracts the given entry to the given targetPath.
* If the entry is a directory inside the archive, the entire directory and
@@ -203,7 +203,7 @@ declare module AdmZip {
* will be overwriten if this is true. Default is FALSE
* @return Boolean
*/
- extractEntryTo(entryPath: IZipEntry, targetPath: string, maintainEntryPath?: boolean, overwrite?: boolean): boolean;
+ extractEntryTo(entryPath: AdmZip.IZipEntry, targetPath: string, maintainEntryPath?: boolean, overwrite?: boolean): boolean;
/**
* Extracts the entire archive to the given location
* @param targetPath Target location
@@ -225,76 +225,75 @@ declare module AdmZip {
toBuffer(): Buffer;
}
- /**
- * The ZipEntry is more than a structure representing the entry inside the
- * zip file. Beside the normal attributes and headers a entry can have, the
- * class contains a reference to the part of the file where the compressed
- * data resides and decompresses it when requested. It also compresses the
- * data and creates the headers required to write in the zip file.
- */
- interface IZipEntry {
+ module AdmZip {
/**
- * Represents the full name and path of the file
+ * The ZipEntry is more than a structure representing the entry inside the
+ * zip file. Beside the normal attributes and headers a entry can have, the
+ * class contains a reference to the part of the file where the compressed
+ * data resides and decompresses it when requested. It also compresses the
+ * data and creates the headers required to write in the zip file.
*/
- entryName: string;
- rawEntryName: Buffer;
- /**
- * Extra data associated with this entry.
- */
- extra: Buffer;
- /**
- * Entry comment.
- */
- comment: string;
- name: string;
- /**
- * Read-Only property that indicates the type of the entry.
- */
- isDirectory: boolean;
- /**
- * Get the header associated with this ZipEntry.
- */
- header: Buffer;
- /**
- * Retrieve the compressed data for this entry. Note that this may trigger
- * compression if any properties were modified.
- */
- getCompressedData(): Buffer;
- /**
- * Asynchronously retrieve the compressed data for this entry. Note that
- * this may trigger compression if any properties were modified.
- */
- getCompressedDataAsync(callback: (data: Buffer) => void): void;
- /**
- * Set the (uncompressed) data to be associated with this entry.
- */
- setData(value: string): void;
- /**
- * Set the (uncompressed) data to be associated with this entry.
- */
- setData(value: Buffer): void;
- /**
- * Get the decompressed data associated with this entry.
- */
- getData(): Buffer;
- /**
- * Asynchronously get the decompressed data associated with this entry.
- */
- getDataAsync(callback: (data: Buffer) => void): void;
- /**
- * Returns the CEN Entry Header to be written to the output zip file, plus
- * the extra data and the entry comment.
- */
- packHeader(): Buffer;
- /**
- * Returns a nicely formatted string with the most important properties of
- * the ZipEntry.
- */
- toString(): string;
+ interface IZipEntry {
+ /**
+ * Represents the full name and path of the file
+ */
+ entryName: string;
+ rawEntryName: Buffer;
+ /**
+ * Extra data associated with this entry.
+ */
+ extra: Buffer;
+ /**
+ * Entry comment.
+ */
+ comment: string;
+ name: string;
+ /**
+ * Read-Only property that indicates the type of the entry.
+ */
+ isDirectory: boolean;
+ /**
+ * Get the header associated with this ZipEntry.
+ */
+ header: Buffer;
+ /**
+ * Retrieve the compressed data for this entry. Note that this may trigger
+ * compression if any properties were modified.
+ */
+ getCompressedData(): Buffer;
+ /**
+ * Asynchronously retrieve the compressed data for this entry. Note that
+ * this may trigger compression if any properties were modified.
+ */
+ getCompressedDataAsync(callback: (data: Buffer) => void): void;
+ /**
+ * Set the (uncompressed) data to be associated with this entry.
+ */
+ setData(value: string): void;
+ /**
+ * Set the (uncompressed) data to be associated with this entry.
+ */
+ setData(value: Buffer): void;
+ /**
+ * Get the decompressed data associated with this entry.
+ */
+ getData(): Buffer;
+ /**
+ * Asynchronously get the decompressed data associated with this entry.
+ */
+ getDataAsync(callback: (data: Buffer) => void): void;
+ /**
+ * Returns the CEN Entry Header to be written to the output zip file, plus
+ * the extra data and the entry comment.
+ */
+ packHeader(): Buffer;
+ /**
+ * Returns a nicely formatted string with the most important properties of
+ * the ZipEntry.
+ */
+ toString(): string;
+ }
}
-}
-declare module "adm-zip" {
- import zipFile = AdmZip.ZipFile;
- export = zipFile;
+ export = AdmZip;
}
diff --git a/angular-dynamic-locale/angular-dynamic-locale.d.ts b/angular-dynamic-locale/angular-dynamic-locale.d.ts
index a30df1d7e..e404e9532 100644
--- a/angular-dynamic-locale/angular-dynamic-locale.d.ts
+++ b/angular-dynamic-locale/angular-dynamic-locale.d.ts
@@ -5,6 +5,11 @@
///
+declare module "angular-dynamic-locale" {
+ import ng = angular.dynamicLocale;
+ export = ng;
+}
+
declare module angular.dynamicLocale {
interface tmhDynamicLocaleService {
diff --git a/angular-formly/angular-formly.d.ts b/angular-formly/angular-formly.d.ts
index 2bf75af7d..fce793e7e 100644
--- a/angular-formly/angular-formly.d.ts
+++ b/angular-formly/angular-formly.d.ts
@@ -70,6 +70,11 @@ declare module AngularFormly {
postWrapper?: ITemplateManipulator[];
}
+ interface ISelectOption {
+ name: string;
+ value?: string;
+ group?: string;
+ }
/**
* see http://docs.angular-formly.com/docs/ngmodelattrstemplatemanipulator
@@ -104,6 +109,12 @@ declare module AngularFormly {
description?: string;
[key: string]: any;
+ // types for select/radio fields
+ options?: Array;
+ groupProp?: string; // default: group
+ valueProp?: string; // default: value
+ labelProp?: string; // default: name
+
}
diff --git a/angular-jwt/angular-jwt.d.ts b/angular-jwt/angular-jwt.d.ts
index 55bb3e4f6..620fcc8e4 100644
--- a/angular-jwt/angular-jwt.d.ts
+++ b/angular-jwt/angular-jwt.d.ts
@@ -25,6 +25,6 @@ declare module angular.jwt {
}
interface IJwtInterceptor {
- tokenGetter(): string;
+ tokenGetter(...params : any[]): string;
}
}
diff --git a/angular-loading-bar/angular-loading-bar-tests.ts b/angular-loading-bar/angular-loading-bar-tests.ts
index b7ca2894e..b8bde9e93 100644
--- a/angular-loading-bar/angular-loading-bar-tests.ts
+++ b/angular-loading-bar/angular-loading-bar-tests.ts
@@ -7,9 +7,17 @@ class TestController {
constructor($http: ng.IHttpService) {
$http.get("http://xyz.com", { ignoreLoadingBar: true })
-
+
}
}
app.controller('TestController', TestController);
+
+var barConfig: angular.loadingBar.ILoadingBarProvider[] = [];
+barConfig.push({
+ includeSpinner: true,
+ includeBar: true,
+ spinnerTemplate: 'template',
+ latencyThreshold: 100
+});
diff --git a/angular-loading-bar/angular-loading-bar.d.ts b/angular-loading-bar/angular-loading-bar.d.ts
index b1a8cd55d..acea6f048 100644
--- a/angular-loading-bar/angular-loading-bar.d.ts
+++ b/angular-loading-bar/angular-loading-bar.d.ts
@@ -14,5 +14,30 @@ declare module angular {
*/
ignoreLoadingBar?: boolean;
}
+}
-}
\ No newline at end of file
+declare module angular.loadingBar {
+
+ interface ILoadingBarProvider{
+ /**
+ * Turn the spinner on or off
+ */
+ includeSpinner?: boolean;
+
+ /**
+ * Turn the loading bar on or off
+ */
+ includeBar?: boolean;
+
+ /**
+ * HTML template
+ */
+ spinnerTemplate?: string;
+
+ /**
+ * Latency Threshold
+ */
+ latencyThreshold?: number;
+ }
+
+}
diff --git a/angular-material/angular-material-0.8.3.d.ts b/angular-material/angular-material-0.8.3.d.ts
index 1e3eda18a..10724b812 100644
--- a/angular-material/angular-material-0.8.3.d.ts
+++ b/angular-material/angular-material-0.8.3.d.ts
@@ -59,7 +59,7 @@ declare module angular.material {
show(dialog: MDDialogOptions|MDPresetDialog): angular.IPromise;
confirm(): MDConfirmDialog;
alert(): MDAlertDialog;
- hide(response?: any): void;
+ hide(response?: any): angular.IPromise;
cancel(response?: any): void;
}
diff --git a/angular-material/angular-material-0.9.0.d.ts b/angular-material/angular-material-0.9.0.d.ts
index 1383b0beb..96134f114 100644
--- a/angular-material/angular-material-0.9.0.d.ts
+++ b/angular-material/angular-material-0.9.0.d.ts
@@ -64,7 +64,7 @@ declare module angular.material {
show(dialog: MDDialogOptions|MDAlertDialog|MDConfirmDialog): angular.IPromise;
confirm(): MDConfirmDialog;
alert(): MDAlertDialog;
- hide(response?: any): void;
+ hide(response?: any): angular.IPromise;
cancel(response?: any): void;
}
diff --git a/angular-material/angular-material-tests.ts b/angular-material/angular-material-tests.ts
index a9cd52437..3c70dd27e 100644
--- a/angular-material/angular-material-tests.ts
+++ b/angular-material/angular-material-tests.ts
@@ -96,5 +96,5 @@ myApp.controller('SidenavController', ($scope: ng.IScope, $mdSidenav: ng.materia
});
myApp.controller('ToastController', ($scope: ng.IScope, $mdToast: ng.material.IToastService) => {
- $scope['openToast'] = () => $mdToast.show($mdToast.simple().content('Hello!'));
-});
\ No newline at end of file
+ $scope['openToast'] = () => $mdToast.show($mdToast.simple().textContent('Hello!'));
+});
diff --git a/angular-material/angular-material.d.ts b/angular-material/angular-material.d.ts
index 54ef2507b..7d29e7492 100644
--- a/angular-material/angular-material.d.ts
+++ b/angular-material/angular-material.d.ts
@@ -1,4 +1,4 @@
-// Type definitions for Angular Material 0.10.1-rc1+ (angular.material module)
+// Type definitions for Angular Material 1.0.0-rc5+ (angular.material module)
// Project: https://github.com/angular/material
// Definitions by: Matt Traynham
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@@ -83,7 +83,7 @@ declare module angular.material {
show(dialog: IDialogOptions|IAlertDialog|IConfirmDialog): angular.IPromise;
confirm(): IConfirmDialog;
alert(): IAlertDialog;
- hide(response?: any): void;
+ hide(response?: any): angular.IPromise;
cancel(response?: any): void;
}
@@ -116,7 +116,7 @@ declare module angular.material {
}
interface IToastPreset {
- content(content: string): T;
+ textContent(content: string): T;
action(action: string): T;
highlightAction(highlightAction: boolean): T;
capsule(capsule: boolean): T;
diff --git a/angular-protractor/angular-protractor-tests.ts b/angular-protractor/angular-protractor-tests.ts
index 45a5d7edc..0f98aead1 100644
--- a/angular-protractor/angular-protractor-tests.ts
+++ b/angular-protractor/angular-protractor-tests.ts
@@ -196,6 +196,27 @@ function TestWebDriverUntilModule() {
conditionWebElements = protractor.until.elementsLocated(by.className('class'));
}
+function TestWebDriverExpectedConditionsModule() {
+ var conditionB: protractor.until.Condition;
+ var el: protractor.ElementFinder = element(by.id('id'));
+
+ conditionB = protractor.ExpectedConditions.alertIsPresent();
+ conditionB = protractor.ExpectedConditions.elementToBeClickable(el);
+ conditionB = protractor.ExpectedConditions.textToBePresentInElement(el, 'text');
+ conditionB = protractor.ExpectedConditions.textToBePresentInElementValue(el, 'text');
+ conditionB = protractor.ExpectedConditions.titleContains('text');
+ conditionB = protractor.ExpectedConditions.titleIs('text');
+ conditionB = protractor.ExpectedConditions.presenceOf(el);
+ conditionB = protractor.ExpectedConditions.stalenessOf(el);
+ conditionB = protractor.ExpectedConditions.visibilityOf(el);
+ conditionB = protractor.ExpectedConditions.invisibilityOf(el);
+ conditionB = protractor.ExpectedConditions.elementToBeSelected(el);
+
+ conditionB = protractor.ExpectedConditions.not(protractor.ExpectedConditions.alertIsPresent());
+ conditionB = protractor.ExpectedConditions.and(protractor.ExpectedConditions.alertIsPresent(), protractor.ExpectedConditions.elementToBeClickable(el));
+ conditionB = protractor.ExpectedConditions.or(protractor.ExpectedConditions.alertIsPresent(), protractor.ExpectedConditions.elementToBeClickable(el));
+}
+
function TestProtractor() {
var ptor: protractor.Protractor;
var driver: webdriver.WebDriver = new webdriver.Builder().
diff --git a/angular-protractor/angular-protractor.d.ts b/angular-protractor/angular-protractor.d.ts
index ff8324238..dc969927e 100644
--- a/angular-protractor/angular-protractor.d.ts
+++ b/angular-protractor/angular-protractor.d.ts
@@ -501,6 +501,145 @@ declare module protractor {
function titleMatches(regex: RegExp): webdriver.until.Condition;
}
+ module ExpectedConditions {
+ /**
+ * Negates the result of a promise.
+ *
+ * @param {webdriver.until.Condition} expectedCondition
+ * @return {!webdriver.until.Condition} An expected condition that returns the negated value.
+ */
+ function not(expectedCondition: webdriver.until.Condition): webdriver.until.Condition;
+
+ /**
+ * Chain a number of expected conditions using logical_and, short circuiting at the
+ * first expected condition that evaluates to false.
+ *
+ * @param {...webdriver.until.Condition[]} fns An array of expected conditions to 'and' together.
+ * @return {!webdriver.until.Condition} An expected condition that returns a promise which evaluates
+ * to the result of the logical and.
+ */
+ function and(...fns: webdriver.until.Condition[]): webdriver.until.Condition;
+
+ /**
+ * Chain a number of expected conditions using logical_or, short circuiting at the
+ * first expected condition that evaluates to true.
+ *
+ * @param {...webdriver.until.Condition[]} fns An array of expected conditions to 'or' together.
+ * @return {!webdriver.until.Condition} An expected condition that returns a promise which
+ * evaluates to the result of the logical or.
+ */
+ function or(...fns: webdriver.until.Condition[]): webdriver.until.Condition;
+
+ /**
+ * Expect an alert to be present.
+ *
+ * @return {!webdriver.until.Condition} An expected condition that returns a promise representing
+ * whether an alert is present.
+ */
+ function alertIsPresent(): webdriver.until.Condition;
+
+ /**
+ * An Expectation for checking an element is visible and enabled such that you can click it.
+ *
+ * @param {ElementFinder} element The element to check
+ * @return {!webdriver.until.Condition} An expected condition that returns a promise representing
+ * whether the element is clickable.
+ */
+ function elementToBeClickable(element: ElementFinder): webdriver.until.Condition;
+
+ /**
+ * An expectation for checking if the given text is present in the element.
+ * Returns false if the elementFinder does not find an element.
+ *
+ * @param {ElementFinder} element The element to check
+ * @param {string} text The text to verify against
+ * @return {!webdriver.until.Condition} An expected condition that returns a promise representing
+ * whether the text is present in the element.
+ */
+ function textToBePresentInElement(element: ElementFinder, text: string): webdriver.until.Condition;
+
+ /**
+ * An expectation for checking if the given text is present in the element’s value.
+ * Returns false if the elementFinder does not find an element.
+ *
+ * @param {ElementFinder} element The element to check
+ * @param {string} text The text to verify against
+ * @return {!webdriver.until.Condition} An expected condition that returns a promise representing
+ * whether the text is present in the element's value.
+ */
+ function textToBePresentInElementValue(
+ element: ElementFinder, text: string
+ ): webdriver.until.Condition;
+
+ /**
+ * An expectation for checking that the title contains a case-sensitive substring.
+ *
+ * @param {string} title The fragment of title expected
+ * @return {!webdriver.until.Condition} An expected condition that returns a promise representing
+ * whether the title contains the string.
+ */
+ function titleContains(title: string): webdriver.until.Condition;
+
+ /**
+ * An expectation for checking the title of a page.
+ *
+ * @param {string} title The expected title, which must be an exact match.
+ * @return {!webdriver.until.Condition} An expected condition that returns a promise representing
+ * whether the title equals the string.
+ */
+ function titleIs(title: string): webdriver.until.Condition;
+
+ /**
+ * An expectation for checking that an element is present on the DOM of a page. This does not necessarily
+ * mean that the element is visible. This is the opposite of 'stalenessOf'.
+ *
+ * @param {ElementFinder} elementFinder The element to check
+ * @return {!webdriver.until.Condition} An expected condition that returns a promise
+ * representing whether the element is present.
+ */
+ function presenceOf(element: ElementFinder): webdriver.until.Condition;
+
+ /**
+ * An expectation for checking that an element is not attached to the DOM of a page.
+ * This is the opposite of 'presenceOf'.
+ *
+ * @param {ElementFinder} elementFinder The element to check
+ * @return {!webdriver.until.Condition} An expected condition that returns a promise representing
+ * whether the element is stale.
+ */
+ function stalenessOf(element: ElementFinder): webdriver.until.Condition;
+
+ /**
+ * An expectation for checking that an element is present on the DOM of a page and visible.
+ * Visibility means that the element is not only displayed but also has a height and width that is
+ * greater than 0. This is the opposite of 'invisibilityOf'.
+ *
+ * @param {ElementFinder} elementFinder The element to check
+ * @return {!webdriver.until.Condition} An expected condition that returns a promise representing
+ * whether the element is visible.
+ */
+ function visibilityOf(element: ElementFinder): webdriver.until.Condition;
+
+ /**
+ * An expectation for checking that an element is present on the DOM of a page. This does not necessarily
+ * mean that the element is visible. This is the opposite of 'stalenessOf'.
+ *
+ * @param {ElementFinder} elementFinder The element to check
+ * @return {!webdriver.until.Condition} An expected condition that returns a promise representing
+ * whether the element is invisible.
+ */
+ function invisibilityOf(element: ElementFinder): webdriver.until.Condition;
+
+ /**
+ * An expectation for checking the selection is selected.
+ *
+ * @param {ElementFinder} elementFinder The element to check
+ * @return {!webdriver.until.Condition} An expected condition that returns a promise representing
+ * whether the element is selected.
+ */
+ function elementToBeSelected(element: ElementFinder): webdriver.until.Condition;
+ }
+
//endregion
/**
diff --git a/angular-strap/angular-strap-tests.ts b/angular-strap/angular-strap-tests.ts
new file mode 100644
index 000000000..90c7a2bde
--- /dev/null
+++ b/angular-strap/angular-strap-tests.ts
@@ -0,0 +1,378 @@
+///
+///
+
+module angularStrapTests {
+
+ import ngStrap = mgcrea.ngStrap;
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Modal
+ ///////////////////////////////////////////////////////////////////////////
+
+ module modalTests {
+
+ interface IDemoCtrlScope extends ngStrap.modal.IModalScope {
+ showModal: () => void;
+ }
+
+ angular.module('demoApp')
+ .config($modalConfig)
+ .controller('demoCtrl', demoCtrl);
+
+ function demoCtrl($scope: IDemoCtrlScope,
+ $modal: ngStrap.modal.IModalService): void {
+
+ var myModalOptions: ngStrap.modal.IModalOptions = {};
+ myModalOptions.title = 'My Title';
+ myModalOptions.content = 'Hello Modal This is a multiline message!';
+ myModalOptions.show = true;
+
+ var myModal = $modal(myModalOptions);
+
+ var myOtherModalOptions: ngStrap.modal.IModalOptions = {};
+ myOtherModalOptions.scope = $scope;
+ myOtherModalOptions.template = 'modal/docs/modal.demo.tpl.html';
+ myOtherModalOptions.show = false;
+
+ var myOtherModal = $modal(myOtherModalOptions);
+
+ $scope.showModal = (): void => {
+ myOtherModal.$promise.then(myOtherModal.show);
+ };
+ }
+
+ function $modalConfig($modalProvider: ngStrap.modal.IModalProvider): void {
+ var defaults: ngStrap.modal.IModalOptions = {
+ animation: 'am-flip-x'
+ }
+ angular.extend($modalProvider.defaults, defaults);
+ }
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Aside
+ ///////////////////////////////////////////////////////////////////////////
+
+ module asideTests {
+
+ angular.module('demoApp')
+ .config($asideConfig)
+ .controller('demoCtrl', demoCtrl);
+
+ function demoCtrl($scope: ngStrap.aside.IAsideScope,
+ $aside: ngStrap.aside.IAsideService): void {
+
+ var myAsideOptions: ngStrap.aside.IAsideOptions = {};
+ myAsideOptions.title = 'My Title';
+ myAsideOptions.content = 'My content';
+ myAsideOptions.show = true;
+
+ var myAside = $aside(myAsideOptions);
+
+ var myOtherAsideOptions: ngStrap.aside.IAsideOptions = {};
+ myOtherAsideOptions.scope = $scope;
+ myOtherAsideOptions.template = 'aside/docs/aside.demo.tpl.html';
+
+ var myOtherAside = $aside();
+
+ myOtherAside.$promise.then(() => {
+ myOtherAside.show();
+ });
+ }
+
+ function $asideConfig($asideProvider: ngStrap.aside.IAsideProvider): void {
+ var defaults: ngStrap.aside.IAsideOptions = {};
+ defaults.animation = 'am-fadeAndSlideLeft';
+ defaults.placement = 'left';
+
+ angular.extend($asideProvider.defaults, defaults);
+ }
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Alert
+ ///////////////////////////////////////////////////////////////////////////
+
+ module alertTests {
+
+ angular.module('demoApp')
+ .config($alertConfig)
+ .controller('demoCtrl', demoCtrl);
+
+ function demoCtrl($scope: ngStrap.alert.IAlertScope,
+ $alert: ngStrap.alert.IAlertService): void {
+
+ var options: ngStrap.alert.IAlertOptions = {};
+ options.title = 'Holy guacamole!';
+ options.content = 'Best check yo self, you\'re not looking too good.';
+ options.placement = 'top';
+ options.type = 'info';
+ options.show = true;
+
+ var myAlert = $alert();
+ }
+
+ function $alertConfig($alertProvider: ngStrap.alert.IAlertProvider): void {
+ var defaults: ngStrap.alert.IAlertOptions = {};
+ defaults.animation = 'am-fade-and-slide-top';
+ defaults.placement = 'top';
+
+ angular.extend($alertProvider.defaults, defaults);
+ };
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Tooltip
+ ///////////////////////////////////////////////////////////////////////////
+
+ module tooltipTests {
+
+ angular.module('demoApp')
+ .config($tooltipConfig)
+ .controller('demoDrct', demoDrct);
+
+ function demoDrct($tooltip: ngStrap.tooltip.ITooltipService): ng.IDirective {
+ var drct: ng.IDirective = {};
+ drct.restrict = 'EA';
+ drct.link = link;
+ return drct;
+
+ function link(scope: ng.IScope, elem: ng.IAugmentedJQuery, attrs: ng.IAttributes): void {
+ var options: ngStrap.tooltip.ITooltipOptions = {};
+ options.title = 'My Title';
+ $tooltip(elem, options);
+ }
+ }
+
+ function $tooltipConfig($tooltipProvider: ngStrap.tooltip.ITooltipProvider): void {
+ var defaults: ngStrap.tooltip.ITooltipOptions = {};
+ defaults.animation = 'am-flip-x';
+ defaults.trigger = 'hover';
+
+ angular.extend($tooltipProvider.defaults, defaults);
+ };
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Popover
+ ///////////////////////////////////////////////////////////////////////////
+
+ module popoverTests {
+
+ angular.module('demoApp')
+ .config($popoverConfig)
+ .controller('demoDrct', demoDrct);
+
+ function demoDrct($popover: ngStrap.popover.IPopoverService): ng.IDirective {
+ var drct: ng.IDirective = {};
+ drct.restrict = 'EA';
+ drct.link = link;
+ return drct;
+
+ function link(scope: ng.IScope, elem: ng.IAugmentedJQuery, attrs: ng.IAttributes): void {
+ var options: ngStrap.tooltip.ITooltipOptions = {};
+ options.title = 'My Title';
+
+ $popover(elem, options);
+ }
+ }
+
+ function $popoverConfig($popoverProvider: ngStrap.popover.IPopoverProvider): void {
+ var defaults: ngStrap.tooltip.ITooltipOptions = {}
+ defaults.animation = 'am-flip-x';
+ defaults.trigger = 'hover';
+
+ angular.extend($popoverProvider.defaults, defaults);
+ };
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Typeahead
+ ///////////////////////////////////////////////////////////////////////////
+
+ module typeaheadTests {
+
+ angular.module('myApp')
+ .config($typeaheadConfig);
+
+ function $typeaheadConfig($typeaheadProvider: ngStrap.typeahead.ITypeaheadProvider) {
+ var defaults: ngStrap.typeahead.ITypeaheadOptions = {}
+ defaults.animation = 'am-flip-x';
+ defaults.minLength = 2;
+ defaults.limit = 8;
+
+ angular.extend($typeaheadProvider.defaults, defaults);
+ }
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Datepicker
+ ///////////////////////////////////////////////////////////////////////////
+
+ module datepickerTests {
+
+ angular.module('myApp')
+ .config($datepickerConfig);
+
+ function $datepickerConfig($datepickerProvider: ngStrap.datepicker.IDatepickerProvider): void {
+ var defaults: ngStrap.datepicker.IDatepickerOptions = {};
+ defaults.dateFormat = 'dd/MM/yyyy';
+ defaults.startWeek = 1;
+
+ angular.extend($datepickerProvider.defaults, defaults);
+ };
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Timepicker
+ ///////////////////////////////////////////////////////////////////////////
+
+ module timepickerTests {
+
+ angular.module('myApp')
+ .config($timepickerConfig);
+
+ function $timepickerConfig($timepickerProvider: ngStrap.timepicker.ITimepickerProvider): void {
+ var defaults: ngStrap.timepicker.ITimepickerOptions = {};
+ defaults.timeFormat = 'HH:mm';
+ defaults.length = 7;
+
+ angular.extend($timepickerProvider.defaults, defaults);
+ };
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Select
+ ///////////////////////////////////////////////////////////////////////////
+
+ module selectTests {
+
+ angular.module('myApp')
+ .config($selectConfig);
+
+ function $selectConfig($selectProvider: ngStrap.select.ISelectProvider): void {
+ var defaults: ngStrap.select.ISelectOptions = {};
+ defaults.animation = 'am-flip-x';
+ defaults.sort = false;
+
+ angular.extend($selectProvider.defaults, defaults);
+ }
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Tabs
+ ///////////////////////////////////////////////////////////////////////////
+
+ module tabTests {
+
+ angular.module('myApp')
+ .config($tabConfig);
+
+ function $tabConfig($tabProvider: ngStrap.tab.ITabProvider) {
+ var defaults: ngStrap.tab.ITabOptions = {};
+ defaults.animation = 'am-flip-x';
+
+ angular.extend($tabProvider.defaults, defaults);
+ }
+ }
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Collapse
+ ///////////////////////////////////////////////////////////////////////////
+
+ module collapseTests {
+
+ angular.module('myApp')
+ .config($collapseConfig);
+
+ function $collapseConfig($collapseProvider: ngStrap.collapse.ICollapseProvider):void {
+ var defaults: ngStrap.collapse.ICollapseOptions = {};
+ defaults.animation = 'am-flip-x';
+
+ angular.extend($collapseProvider.defaults, defaults);
+ }
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Dropdown
+ ///////////////////////////////////////////////////////////////////////////
+
+ module dropdownTests {
+
+ angular.module('myApp')
+ .config($dropdownConfig);
+
+ function $dropdownConfig($dropdownProvider: ngStrap.dropdown.IDropdownProvider):void {
+ var defaults: ngStrap.dropdown.IDropdownOptions = {};
+ defaults.animation = 'am-flip-x';
+ defaults.trigger = 'hover';
+
+ angular.extend($dropdownProvider.defaults, defaults);
+ }
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Navbar
+ ///////////////////////////////////////////////////////////////////////////
+
+ module navbarTests {
+
+ angular.module('myApp')
+ .config($navbarConfig);
+
+ function $navbarConfig($navbarProvider: ngStrap.navbar.INavbarProvider):void {
+ var defaults: ngStrap.navbar.INavbarOptions = {};
+ defaults.activeClass = 'in';
+
+ angular.extend($navbarProvider.defaults, defaults);
+ }
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Scrollspy
+ ///////////////////////////////////////////////////////////////////////////
+
+ module scrollspyTests {
+
+ angular.module('myApp')
+ .config($scrollspyConfig);
+
+ function $scrollspyConfig($scrollspyProvider: ngStrap.scrollspy.IScrollspyProvider):void {
+ var defaults: ngStrap.scrollspy.IScrollspyOptions = {};
+ defaults.offset = 0;
+ defaults.target = 'my-selector';
+
+ angular.extend($scrollspyProvider.defaults, defaults);
+ }
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Affix
+ ///////////////////////////////////////////////////////////////////////////
+
+ module affixTests {
+
+ angular.module('myApp')
+ .config($affixConfig);
+
+ function $affixConfig($affixProvider: ngStrap.affix.IAffixProvider):void {
+ var defaults: ngStrap.affix.IAffixOptions = {};
+ defaults.offsetTop = 100;
+
+ angular.extend($affixProvider.defaults, defaults);
+ }
+ }
+}
\ No newline at end of file
diff --git a/angular-strap/angular-strap.d.ts b/angular-strap/angular-strap.d.ts
new file mode 100644
index 000000000..10e46bc1c
--- /dev/null
+++ b/angular-strap/angular-strap.d.ts
@@ -0,0 +1,600 @@
+// Type definitions for angular-strap v2.2.x
+// Project: http://mgcrea.github.io/angular-strap/
+// Definitions by: Sam Herrmann
+// Definitions: https://github.com/borisyankov/DefinitelyTyped
+
+
+///
+
+declare module mgcrea.ngStrap {
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Modal
+ // see http://mgcrea.github.io/angular-strap/#/modals
+ ///////////////////////////////////////////////////////////////////////////
+
+ module modal {
+
+ interface IModalService {
+ (config?: IModalOptions): IModal;
+ }
+
+ interface IModalProvider {
+ defaults: IModalOptions;
+ }
+
+ interface IModal {
+ $promise: ng.IPromise;
+ show: () => void;
+ hide: () => void;
+ toggle: () => void;
+ }
+
+ interface IModalOptions {
+ animation?: string;
+ backdropAnimation?: string;
+ placement?: string;
+ title?: string;
+ content?: string;
+ html?: boolean;
+ backdrop?: boolean | string;
+ keyboard?: boolean;
+ show?: boolean;
+ container?: string | boolean;
+ template?: string;
+ contentTemplate?: string;
+ prefixEvent?: string;
+ id?: string;
+ scope?: ng.IScope;
+ }
+
+ interface IModalScope extends ng.IScope {
+ $show: () => void;
+ $hide: () => void;
+ $toggle: () => void;
+ }
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Aside
+ // see http://mgcrea.github.io/angular-strap/#/asides
+ ///////////////////////////////////////////////////////////////////////////
+
+ module aside {
+
+ interface IAsideService {
+ (config?: IAsideOptions): IAside;
+ }
+
+ interface IAsideProvider {
+ defaults: IAsideOptions;
+ }
+
+ interface IAside {
+ $promise: ng.IPromise;
+ show: () => void;
+ hide: () => void;
+ toggle: () => void;
+ }
+
+ interface IAsideOptions {
+ animation?: string;
+ placement?: string;
+ title?: string;
+ content?: string;
+ html?: boolean;
+ backdrop?: boolean | string;
+ keyboard?: boolean;
+ show?: boolean;
+ container?: string | boolean;
+ template?: string;
+ contentTemplate?: string;
+ scope?: ng.IScope;
+ }
+
+ interface IAsideScope extends ng.IScope {
+ $show: () => void;
+ $hide: () => void;
+ $toggle: () => void;
+ }
+ }
+
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Alert
+ // see http://mgcrea.github.io/angular-strap/#/alerts
+ ///////////////////////////////////////////////////////////////////////////
+
+ module alert {
+
+ interface IAlertService {
+ (config?: IAlertOptions): IAlert;
+ }
+
+ interface IAlertProvider {
+ defaults: IAlertOptions;
+ }
+
+ interface IAlert {
+ $promise: ng.IPromise;
+ show: () => void;
+ hide: () => void;
+ toggle: () => void;
+ }
+
+ interface IAlertOptions {
+ animation?: string;
+ placement?: string;
+ title?: string;
+ content?: string;
+ type?: string;
+ keyboard?: boolean;
+ show?: boolean;
+ container?: string | boolean;
+ template?: string;
+ duration?: number | boolean;
+ dismissable?: boolean;
+ }
+
+ interface IAlertScope extends ng.IScope {
+ $show: () => void;
+ $hide: () => void;
+ $toggle: () => void;
+ }
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Tooltip
+ // see http://mgcrea.github.io/angular-strap/#/tooltips
+ ///////////////////////////////////////////////////////////////////////////
+
+ module tooltip {
+
+ interface ITooltipService {
+ (element: ng.IAugmentedJQuery, config?: ITooltipOptions): ITooltip;
+ }
+
+ interface ITooltipProvider {
+ defaults: ITooltipOptions;
+ }
+
+ interface ITooltip {
+ $promise: ng.IPromise;
+ show: () => void;
+ hide: () => void;
+ toggle: () => void;
+ }
+
+ interface ITooltipOptions {
+ animation?: string;
+ placement?: string;
+ trigger?: string;
+ title?: string;
+ html?: boolean;
+ delay?: number | { show: number; hide: number};
+ container?: string | boolean;
+ target?: string | ng.IAugmentedJQuery | boolean;
+ template?: string;
+ contentTemplate?: string;
+ prefixEvent?: string;
+ id?: string;
+ viewport?: string | { selector: string; padding: string | number };
+ }
+
+ interface ITooltipScope extends ng.IScope {
+ $show: () => void;
+ $hide: () => void;
+ $toggle: () => void;
+ $setEnabled: (isEnabled: boolean) => void;
+ }
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Popover
+ // see http://mgcrea.github.io/angular-strap/#/popovers
+ ///////////////////////////////////////////////////////////////////////////
+
+ module popover {
+
+ interface IPopoverService {
+ (element: ng.IAugmentedJQuery, config?: IPopoverOptions): IPopover;
+ }
+
+ interface IPopoverProvider {
+ defaults: IPopoverOptions;
+ }
+
+ interface IPopover {
+ $promise: ng.IPromise;
+ show: () => void;
+ hide: () => void;
+ toggle: () => void;
+ }
+
+ interface IPopoverOptions {
+ animation?: string;
+ placement?: string;
+ trigger?: string;
+ title?: string;
+ content?: string;
+ html?: boolean;
+ delay?: number | { show: number; hide: number };
+ container?: string | boolean;
+ target?: string | ng.IAugmentedJQuery | boolean;
+ template?: string;
+ contentTemplate?: string;
+ autoClose?: boolean;
+ id?: string;
+ viewport?: string | { selector: string; padding: string | number };
+ }
+
+ interface IPopoverScope extends ng.IScope {
+ $show: () => void;
+ $hide: () => void;
+ $toggle: () => void;
+ }
+ }
+
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Typeahead
+ // see http://mgcrea.github.io/angular-strap/#/typeaheads
+ ///////////////////////////////////////////////////////////////////////////
+
+ module typeahead {
+
+ interface ITypeaheadService {
+ (element: ng.IAugmentedJQuery, controller: any, config?: ITypeaheadOptions): ITypeahead;
+ }
+
+ interface ITypeaheadProvider {
+ defaults: ITypeaheadOptions;
+ }
+
+ interface ITypeahead {
+ $promise: ng.IPromise;
+ show: () => void;
+ hide: () => void;
+ toggle: () => void;
+ }
+
+ interface ITypeaheadOptions {
+ animation?: string;
+ placement?: string;
+ trigger?: string;
+ html?: boolean;
+ delay?: number | { show: number; hide: number };
+ container?: string | boolean;
+ template?: string;
+ limit?: number;
+ minLength?: number;
+ autoSelect?: boolean;
+ comparator?: string;
+ id?: string;
+ watchOptions?: boolean;
+ }
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Datepicker
+ // see http://mgcrea.github.io/angular-strap/#/datepickers
+ ///////////////////////////////////////////////////////////////////////////
+
+ module datepicker {
+
+ interface IDatepickerService {
+ (element: ng.IAugmentedJQuery, controller: any, config?: IDatepickerOptions): IDatepicker;
+ }
+
+ interface IDatepickerProvider {
+ defaults: IDatepickerOptions;
+ }
+
+ interface IDatepicker {
+ update: (date: Date) => void;
+ updateDisabledDates: (dateRanges: IDatepickerDateRange[]) => void;
+ select: (dateConstructorArg: string | number | number[], keep: boolean) => void;
+ setMode: (mode: any) => void;
+ int: () => void;
+ destroy: () => void;
+ show: () => void;
+ hide: () => void;
+ }
+
+ interface IDatepickerDateRange {
+ start: Date;
+ end: Date;
+ }
+
+ interface IDatepickerOptions {
+ animation?: string;
+ placement?: string;
+ trigger?: string;
+ html?: boolean;
+ delay?: number | { show: number; hide: number };
+ container?: string | boolean;
+ template?: string;
+ dateFormat?: string;
+ modelDateFormat?: string;
+ dateType?: string;
+ timezone?: string;
+ autoclose?: boolean;
+ useNative?: boolean;
+ minDate?: Date;
+ maxDate?: Date;
+ startView?: number;
+ minView?: number;
+ startWeek?: number;
+ startDate?: Date;
+ iconLeft?: string;
+ iconRight?: string;
+ daysOfWeekDisabled?: string;
+ disabledDates?: IDatepickerDateRange[];
+ }
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Timepicker
+ // see http://mgcrea.github.io/angular-strap/#/timepickers
+ ///////////////////////////////////////////////////////////////////////////
+
+ module timepicker {
+
+ interface ITimepickerService {
+ (element: ng.IAugmentedJQuery, controller: any, config?: ITimepickerOptions): ITimepicker;
+ }
+
+ interface ITimepickerProvider {
+ defaults: ITimepickerOptions;
+ }
+
+ interface ITimepicker {
+
+ }
+
+ interface ITimepickerOptions {
+ animation?: string;
+ placement?: string;
+ trigger?: string;
+ html?: boolean;
+ delay?: number | { show: number; hide: number; };
+ container?: string | boolean;
+ template?: string;
+ timeFormat?: string;
+ modelTimeFormat?: string;
+ timeType?: string;
+ autoclose?: boolean;
+ useNative?: boolean;
+ minTime?: Date; // TODO
+ maxTime?: Date; // TODO
+ length?: number;
+ hourStep?: number;
+ minuteStep?: number;
+ secondStep?: number;
+ roundDisplay?: boolean;
+ iconUp?: string;
+ iconDown?: string;
+ arrowBehaviour?: string;
+ }
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Button
+ // see http://mgcrea.github.io/angular-strap/#/buttons
+ ///////////////////////////////////////////////////////////////////////////
+
+ // No definitions for this module
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Select
+ // see http://mgcrea.github.io/angular-strap/#/selects
+ ///////////////////////////////////////////////////////////////////////////
+
+ module select {
+
+ interface ISelectService {
+ (element: ng.IAugmentedJQuery, controller: any, config: ISelectOptions): ISelect;
+ }
+
+ interface ISelectProvider {
+ defaults: ISelectOptions;
+ }
+
+ interface ISelect {
+ update: (matches: any) => void;
+ active: (index: number) => number;
+ select: (index: number) => void;
+ show: () => void;
+ hide: () => void;
+ }
+
+ interface ISelectOptions {
+ animation?: string;
+ placement?: string;
+ trigger?: string;
+ html?: boolean;
+ delay?: number | { show: number; hide: number; };
+ container?: string | boolean;
+ template?: string;
+ multiple?: boolean;
+ allNoneButtons?: boolean;
+ allText?: string;
+ noneText?: string;
+ maxLength?: number;
+ maxLengthHtml?: string;
+ sort?: boolean;
+ placeholder?: string;
+ iconCheckmark?: string;
+ id?: string;
+ }
+ }
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Tabs
+ // see http://mgcrea.github.io/angular-strap/#/tabs
+ ///////////////////////////////////////////////////////////////////////////
+
+ module tab {
+
+ interface ITabProvider {
+ defaults: ITabOptions;
+ }
+
+ interface ITabService {
+ defaults: ITabOptions;
+ controller: any;
+ }
+
+ interface ITabOptions {
+ animation?: string;
+ template?: string;
+ navClass?: string;
+ activeClass?: string;
+ }
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Collapses
+ // see http://mgcrea.github.io/angular-strap/#/collapses
+ ///////////////////////////////////////////////////////////////////////////
+
+ module collapse {
+
+ interface ICollapseProvider {
+ defaults: ICollapseOptions;
+ }
+
+ interface ICollapseOptions {
+ animation?: string;
+ activeClass?: string;
+ disallowToggle?: boolean;
+ startCollapsed?: boolean;
+ allowMultiple?: boolean;
+ }
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Dropdowsn
+ // see http://mgcrea.github.io/angular-strap/#/dropdowns
+ ///////////////////////////////////////////////////////////////////////////
+
+ module dropdown {
+
+ interface IDropdownProvider {
+ defaults: IDropdownOptions;
+ }
+
+ interface IDropdownService {
+ (element: ng.IAugmentedJQuery, config: IDropdownOptions): IDropdown;
+ }
+
+ interface IDropdown {
+ show: () => void;
+ hide: () => void;
+ destroy: () => void;
+ }
+
+ interface IDropdownOptions {
+ animation?: string;
+ placement?: string;
+ trigger?: string;
+ html?: boolean;
+ delay?: number | { show: number; hide: number; };
+ container?: string | boolean;
+ template?: string;
+ }
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Navbar
+ // see http://mgcrea.github.io/angular-strap/#/navbars
+ ///////////////////////////////////////////////////////////////////////////
+
+ module navbar {
+
+ interface INavbarProvider {
+ defaults: INavbarOptions;
+ }
+
+ interface INavbarOptions {
+ activeClass?: string;
+ routeAttr?: string;
+ }
+
+ interface INavbarService {
+ defaults: INavbarOptions;
+ }
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Scrollspy
+ // see http://mgcrea.github.io/angular-strap/#/scrollspy
+ ///////////////////////////////////////////////////////////////////////////
+
+ module scrollspy {
+
+ interface IScrollspyProvider {
+ defaults: IScrollspyOptions;
+ }
+
+ interface IScrollspyService {
+ (element: ng.IAugmentedJQuery, options: IScrollspyOptions): IScrollspy;
+ }
+
+ interface IScrollspy {
+ checkOffsets: () => void;
+ trackElement: (target: any, source: any) => void;
+ untrackElement: (target: any, source: any) => void;
+ activate: (index: number) => void;
+ }
+
+ interface IScrollspyOptions {
+ target?: string;
+ offset?: number;
+ }
+ }
+
+
+ ///////////////////////////////////////////////////////////////////////////
+ // Affix
+ // see http://mgcrea.github.io/angular-strap/#/affix
+ ///////////////////////////////////////////////////////////////////////////
+
+ module affix {
+
+ interface IAffixProvider {
+ defaults: IAffixOptions;
+ }
+
+ interface IAffixService {
+ (element: ng.IAugmentedJQuery, options: IAffixOptions): IAffix;
+ }
+
+ interface IAffix {
+ init: () => void;
+ destroy: () => void;
+ checkPositionWithEventLoop: () => void;
+ checkPosition: () => void;
+ }
+
+ interface IAffixOptions {
+ offsetTop?: number;
+ offsetBottom?: number;
+ offsetParent?: number;
+ offsetUnpin?: number;
+ }
+ }
+}
diff --git a/angular-translate/angular-translate-tests.ts b/angular-translate/angular-translate-tests.ts
index c60247f42..a19d27ade 100644
--- a/angular-translate/angular-translate-tests.ts
+++ b/angular-translate/angular-translate-tests.ts
@@ -36,4 +36,9 @@ app.controller('Ctrl', ($scope: Scope, $translate: angular.translate.ITranslateS
$scope['changeLanguage'] = function (key: any) {
$translate.use(key);
};
+}).run(($filter: ng.IFilterService) => {
+ var x: string;
+ x = $filter('translate')('something');
+ x = $filter('translate')('something', {});
+ x = $filter('translate')('something', {}, '');
});
diff --git a/angular-translate/angular-translate.d.ts b/angular-translate/angular-translate.d.ts
index e4f69c688..8bef360ee 100644
--- a/angular-translate/angular-translate.d.ts
+++ b/angular-translate/angular-translate.d.ts
@@ -6,8 +6,8 @@
///
declare module "angular-translate" {
- var _: string;
- export = _;
+ import ngt = angular.translate;
+ export = ngt;
}
declare module angular.translate {
@@ -108,3 +108,11 @@ declare module angular.translate {
useLoaderCache(cache?: any): ITranslateProvider;
}
}
+
+declare module angular {
+ interface IFilterService {
+ (name:'translate'): {
+ (translationId: string, interpolateParams?: any, interpolation?: string): string;
+ };
+ }
+}
diff --git a/angular-ui-router/angular-ui-router-tests.ts b/angular-ui-router/angular-ui-router-tests.ts
index 3211faee5..41661d60d 100644
--- a/angular-ui-router/angular-ui-router-tests.ts
+++ b/angular-ui-router/angular-ui-router-tests.ts
@@ -230,7 +230,7 @@ module UrlRouterProviderTests {
// this allows you to configure custom behavior in between
// location changes and route synchronization:
$urlRouterProvider.deferIntercept();
- }).run(($rootScope: ng.IRootScopeService, $urlRouter: ng.ui.IUrlRouterService, UserService: ITestUserService) => {
+ }).run(($rootScope: ng.IRootScopeService, $urlRouter: ng.ui.IUrlRouterService, UserService: ITestUserService, $urlMatcher: ng.ui.IUrlMatcher) => {
$rootScope.$on('$locationChangeSuccess', e => {
// UserService is an example service for managing user state
if (UserService.isLoggedIn()) return;
@@ -245,6 +245,18 @@ module UrlRouterProviderTests {
});
// Configures $urlRouter's listener *after* your custom listener
- $urlRouter.listen();
+ var listen: Function = $urlRouter.listen();
+
+ var href: string;
+ href = $urlRouter.href($urlMatcher);
+ href = $urlRouter.href($urlMatcher, {});
+ href = $urlRouter.href($urlMatcher, {}, {});
+
+ $urlRouter.update();
+ $urlRouter.update(false);
+
+ $urlRouter.push($urlMatcher);
+ $urlRouter.push($urlMatcher, {});
+ $urlRouter.push($urlMatcher, {}, {});
});
}
diff --git a/angular-ui-router/angular-ui-router.d.ts b/angular-ui-router/angular-ui-router.d.ts
index 014baf5ac..a22b7d0da 100644
--- a/angular-ui-router/angular-ui-router.d.ts
+++ b/angular-ui-router/angular-ui-router.d.ts
@@ -5,10 +5,27 @@
///
-// Support for AMD require
+// Support for AMD require and CommonJS
declare module 'angular-ui-router' {
- var _: string;
- export = _;
+ // Since angular-ui-router adds providers for a bunch of
+ // injectable dependencies, it doesn't really return any
+ // actual data except the plain string 'ui.router'.
+ //
+ // As such, I don't think anybody will ever use the actual
+ // default value of the module. So I've only included the
+ // the types. (@xogeny)
+ export type IState = angular.ui.IState;
+ export type IStateProvider = angular.ui.IStateProvider;
+ export type IUrlMatcher = angular.ui.IUrlMatcher;
+ export type IUrlRouterProvider = angular.ui.IUrlRouterProvider;
+ export type IStateOptions = angular.ui.IStateOptions;
+ export type IHrefOptions = angular.ui.IHrefOptions;
+ export type IStateService = angular.ui.IStateService;
+ export type IResolvedState = angular.ui.IResolvedState;
+ export type IStateParamsService = angular.ui.IStateParamsService;
+ export type IUrlRouterService = angular.ui.IUrlRouterService;
+ export type IUiViewScrollProvider = angular.ui.IUiViewScrollProvider;
+ export type IType = angular.ui.IType;
}
declare module angular.ui {
@@ -283,7 +300,10 @@ declare module angular.ui {
*
*/
sync(): void;
- listen(): void;
+ listen(): Function;
+ href(urlMatcher: IUrlMatcher, params?: IStateParamsService, options?: IHrefOptions): string;
+ update(read?: boolean): void;
+ push(urlMatcher: IUrlMatcher, params?: IStateParamsService, options?: IHrefOptions): void;
}
interface IUiViewScrollProvider {
diff --git a/angular-ui-tree/angular-ui-tree-tests.ts b/angular-ui-tree/angular-ui-tree-tests.ts
index e66408814..4e5ef91b9 100644
--- a/angular-ui-tree/angular-ui-tree-tests.ts
+++ b/angular-ui-tree/angular-ui-tree-tests.ts
@@ -11,3 +11,72 @@ var treeNode2: AngularUITree.ITreeNode = {
nodes: [treeNode],
title: "test2"
};
+
+// fake jquery node here so that we can pull a pretend
+// angular scope element out of it
+var dummyJQueryNode: ng.IAugmentedJQuery;
+var fakeScope: (ng.IScope | AngularUITree.IParentTreeNodeScope) = dummyJQueryNode.scope();
+
+( fakeScope).node = treeNode;
+
+var treeNodeScope: AngularUITree.ITreeNodeScope = fakeScope;
+
+( fakeScope).isParent = (nodeScope: AngularUITree.ITreeNodeScope) => {
+ return true;
+};
+
+var parentTreeNodeScope: AngularUITree.IParentTreeNodeScope = fakeScope;
+
+var eventSourceInfo: AngularUITree.IEventSourceInfo = {
+ cloneModel: {},
+ nodeScope: treeNodeScope,
+ index: 0,
+ nodesScope: parentTreeNodeScope
+};
+
+var position: AngularUITree.IPosition = {
+ dirAx: 0,
+ dirX: 0,
+ dirY: 0,
+ distAxX: 0,
+ distAxY: 0,
+ distX: 0,
+ distY: 0,
+ lastDirX: 0,
+ lastDirY: 0,
+ lastX: 0,
+ lastY: 0,
+ moving: true,
+ nowX: 0,
+ nowY: 0,
+ offsetX: 0,
+ offsetY: 0,
+ startX: 0,
+ startY: 0
+
+};
+
+var eventInfo: AngularUITree.IEventInfo = {
+ source: eventSourceInfo,
+ dest: {
+ index: 0,
+ nodesScope: parentTreeNodeScope
+ },
+ elements: {},
+ pos: position
+};
+
+var acceptCallback: AngularUITree.IAcceptCallback = (source: AngularUITree.ITreeNodeScope,
+ destination: AngularUITree.ITreeNodeScope,
+ destinationIndex: number) => {
+ return false;
+};
+
+var droppedCallback: AngularUITree.IDroppedCallback = (eventInfo: AngularUITree.IEventInfo) => {
+ return;
+};
+
+var callbacks: AngularUITree.ICallbacks = {
+ accept: acceptCallback,
+ dropped: droppedCallback
+};
diff --git a/angular-ui-tree/angular-ui-tree.d.ts b/angular-ui-tree/angular-ui-tree.d.ts
index 1017ac11c..62c8899fa 100644
--- a/angular-ui-tree/angular-ui-tree.d.ts
+++ b/angular-ui-tree/angular-ui-tree.d.ts
@@ -3,7 +3,71 @@
// Definitions by: Calvin Fernandez
// Definitions: https://github.com/borisyankov/DefinitelyTyped
+///
+
declare module AngularUITree {
+ interface IEventSourceInfo {
+ cloneModel: any;
+ index: number;
+ nodeScope: ITreeNodeScope;
+ nodesScope: ITreeNodeScope;
+ }
+
+ interface IPosition {
+ dirAx: number;
+ dirX: number;
+ dirY: number;
+ distAxX: number;
+ distAxY: number;
+ distX: number;
+ distY: number;
+ lastDirX: number;
+ lastDirY: number;
+ lastX: number;
+ lastY: number;
+ moving: boolean;
+ nowX: number;
+ nowY: number;
+ offsetX: number;
+ offsetY: number;
+ startX: number;
+ startY: number;
+ }
+
+ interface IEventInfo {
+ dest: {
+ index: number;
+ nodesScope: IParentTreeNodeScope;
+ };
+ elements: any;
+ pos: IPosition;
+ source: IEventSourceInfo;
+ }
+
+ interface IAcceptCallback {
+ (source: ITreeNodeScope, destination: ITreeNodeScope, destinationIndex: number): boolean;
+ }
+
+ interface IDroppedCallback {
+ (eventInfo: IEventInfo): void;
+ }
+
+ interface ICallbacks {
+ accept: IAcceptCallback;
+ dropped: IDroppedCallback;
+ }
+
+ /**
+ * Internal representation of node in the UI
+ */
+ interface ITreeNodeScope extends ng.IScope {
+ node: ITreeNode;
+ }
+
+ interface IParentTreeNodeScope extends ITreeNodeScope {
+ isParent(nodeScope: ITreeNodeScope): boolean;
+ }
+
/**
* Node in list
*/
diff --git a/angularjs/angular-resource-tests.ts b/angularjs/angular-resource-tests.ts
index cfa7712cc..fcf0bd0a9 100644
--- a/angularjs/angular-resource-tests.ts
+++ b/angularjs/angular-resource-tests.ts
@@ -89,6 +89,9 @@ resource = resourceClass.save({ key: 'value' }, { key: 'value' }, function () {
var promise : angular.IPromise;
var arrayPromise : angular.IPromise;
+var json: {
+ [index: string]: any;
+};
promise = resource.$delete();
promise = resource.$delete({ key: 'value' });
@@ -127,6 +130,8 @@ promise = resource.$save(function () { });
promise = resource.$save(function () { }, function () { });
promise = resource.$save({ key: 'value' }, function () { }, function () { });
+json = resource.toJSON();
+
///////////////////////////////////////
// IResourceService
///////////////////////////////////////
diff --git a/angularjs/angular-resource.d.ts b/angularjs/angular-resource.d.ts
index 76930196b..1e82f3154 100644
--- a/angularjs/angular-resource.d.ts
+++ b/angularjs/angular-resource.d.ts
@@ -5,6 +5,10 @@
///
+declare module 'angular-resource' {
+ var _: string;
+ export = _;
+}
///////////////////////////////////////////////////////////////////////////////
// ngResource module (angular-resource.js)
@@ -136,12 +140,15 @@ declare module angular.resource {
/** the promise of the original server interaction that created this instance. **/
$promise : angular.IPromise;
$resolved : boolean;
+ toJSON: () => {
+ [index: string]: any;
+ }
}
/**
* Really just a regular Array object with $promise and $resolve attached to it
*/
- interface IResourceArray extends Array {
+ interface IResourceArray extends Array> {
/** the promise of the original server interaction that created this collection. **/
$promise : angular.IPromise>;
$resolved : boolean;
diff --git a/angularjs/angular-route.d.ts b/angularjs/angular-route.d.ts
index 662b2c11d..eafdf714c 100644
--- a/angularjs/angular-route.d.ts
+++ b/angularjs/angular-route.d.ts
@@ -35,6 +35,16 @@ declare module angular.route {
// May not always be available. For instance, current will not be available
// to a controller that was not initialized as a result of a route maching.
current?: ICurrentRoute;
+
+ /**
+ * Causes $route service to update the current URL, replacing current route parameters with those specified in newParams.
+ * Provided property names that match the route's path segment definitions will be interpolated into the
+ * location's path, while remaining properties will be treated as query params.
+ *
+ * @param newParams Object. mapping of URL parameter names to values
+ */
+ updateParams(newParams:{[key:string]:string}): void;
+
}
@@ -118,6 +128,12 @@ declare module angular.route {
}
interface IRouteProvider extends IServiceProvider {
+ /**
+ * Match routes without being case sensitive
+ *
+ * This option defaults to false. If the option is set to true, then the particular route can be matched without being case sensitive
+ */
+ caseInsensitiveMatch?: boolean;
/**
* Sets route definition that will be used on route change when no other route definition is matched.
*
diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts
index 048b9cd4a..97477e9a8 100644
--- a/angularjs/angular.d.ts
+++ b/angularjs/angular.d.ts
@@ -165,6 +165,12 @@ declare module angular {
dot: number;
codeName: string;
};
+
+ /**
+ * If window.name contains prefix NG_DEFER_BOOTSTRAP! when angular.bootstrap is called, the bootstrap process will be paused until angular.resumeBootstrap() is called.
+ * @param extraModules An optional array of modules that should be added to the original list of modules that the app was about to be bootstrapped with.
+ */
+ resumeBootstrap?(extraModules?: string[]): ng.auto.IInjectorService;
}
///////////////////////////////////////////////////////////////////////////
@@ -175,6 +181,13 @@ declare module angular {
animation(name: string, animationFactory: Function): IModule;
animation(name: string, inlineAnnotatedFunction: any[]): IModule;
animation(object: Object): IModule;
+ /**
+ * Use this method to register a component.
+ *
+ * @param name The name of the component.
+ * @param options A definition object passed into the component.
+ */
+ component(name: string, options: IComponentOptions): IModule;
/**
* Use this method to register work which needs to be performed on module loading.
*
@@ -1614,6 +1627,29 @@ declare module angular {
totalPendingRequests: number;
}
+ ///////////////////////////////////////////////////////////////////////////
+ // Component
+ // see http://angularjs.blogspot.com.br/2015/11/angularjs-15-beta2-and-14-releases.html
+ // and http://toddmotto.com/exploring-the-angular-1-5-component-method/
+ ///////////////////////////////////////////////////////////////////////////
+
+ interface IComponentOptions {
+ bindings?: Object;
+ controller?: string | Function;
+ controllerAs?: string;
+ isolate?: boolean;
+ template?: string | IComponentTemplateFn;
+ templateUrl?: string | IComponentTemplateFn;
+ transclude?: boolean;
+ restrict?: string;
+ $canActivate?: Function;
+ $routeConfig?: Object;
+ }
+
+ interface IComponentTemplateFn {
+ ( $element?: IAugmentedJQuery, $attrs?: IAttributes ): string;
+ }
+
///////////////////////////////////////////////////////////////////////////
// Directive
// see http://docs.angularjs.org/api/ng.$compileProvider#directive
diff --git a/angulartics/angulartics.d.ts b/angulartics/angulartics.d.ts
index edb9aefb3..fdcb409ca 100644
--- a/angulartics/angulartics.d.ts
+++ b/angulartics/angulartics.d.ts
@@ -1,4 +1,4 @@
-// Type definitions for Angulartics v0.19.2
+// Type definitions for Angulartics v0.20.2
// Project: http://luisfarzati.github.io/angulartics/
// Definitions by: Steven Fan
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@@ -21,6 +21,7 @@ declare module angulartics {
interface IAnalyticsServiceProvider extends angular.IServiceProvider {
virtualPageviews(value: boolean): void;
+ excludeRoutes(value: string[]): void;
firstPageview(value: boolean): void;
withBase(value: boolean): void;
withAutoBase(value: boolean): void;
diff --git a/api-error-handler/api-error-handler-tests.ts b/api-error-handler/api-error-handler-tests.ts
index 83df91e86..fc92cf9a7 100644
--- a/api-error-handler/api-error-handler-tests.ts
+++ b/api-error-handler/api-error-handler-tests.ts
@@ -1,7 +1,7 @@
///
-import errorHandler = require('api-error-handler');
-import express = require('express');
+import * as errorHandler from 'api-error-handler';
+import * as express from 'express';
var api = express.Router();
api.get('/users/:userid', function (req, res, next) {
@@ -9,3 +9,5 @@ api.get('/users/:userid', function (req, res, next) {
});
api.use(errorHandler());
+
+let res: errorHandler.Response;
diff --git a/api-error-handler/api-error-handler.d.ts b/api-error-handler/api-error-handler.d.ts
index 61a63825d..90318acd0 100644
--- a/api-error-handler/api-error-handler.d.ts
+++ b/api-error-handler/api-error-handler.d.ts
@@ -6,7 +6,23 @@
///
declare module 'api-error-handler' {
- import express = require('express');
+ import * as express from 'express';
+
+ namespace apiErrorHandler {
+
+ // Body response: the JSON returned by api-error-handler
+ // See https://github.com/expressjs/api-error-handler/blob/1.0.0/index.js
+ interface Response {
+ status: number;
+ stack?: string;
+ message: string;
+
+ // Client errors
+ code?: any;
+ name?: string;
+ type?: any;
+ }
+ }
function apiErrorHandler(options?: any): express.ErrorRequestHandler;
diff --git a/arcgis-js-api/arcgis-js-api.d.ts b/arcgis-js-api/arcgis-js-api.d.ts
index ba5e0fb9f..88d68cb19 100644
--- a/arcgis-js-api/arcgis-js-api.d.ts
+++ b/arcgis-js-api/arcgis-js-api.d.ts
@@ -1,4 +1,4 @@
-// Type definitions for ArcGIS API for JavaScript v3.14
+// Type definitions for ArcGIS API for JavaScript v3.15
// Project: http://js.arcgis.com
// Definitions by: Esri
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@@ -146,7 +146,7 @@ declare module "esri" {
/** Class attribute to set for the layer's node. */
className?: string;
/** Lists which levels to draw. */
- displayLevels?: number;
+ displayLevels?: number[];
/** An array of objects that define areas where a tiled map service should not display tiles. */
exclusionAreas?: any[];
/** Id to assign to the layer. */
@@ -157,7 +157,7 @@ declare module "esri" {
opacity?: number;
/** Refresh interval of the layer in minutes. */
refreshInterval?: number;
- /** When true, tile resampling is enabled. */
+ /** The purpose of resampling is to enlarge the image and fill in at the levels where there are no tiles available. */
resampling?: boolean;
/** Number of levels beyond the last level where tiles are available. */
resamplingTolerance?: number;
@@ -215,6 +215,8 @@ declare module "esri" {
opacity?: number;
/** Specify subDomains where tiles are served to speed up tile retrieval (using subDomains gets around the browser limit of the max number of concurrent requests to a domain). */
subDomains?: string[];
+ /** The URL template used to retrieve the tiles. */
+ templateUrl?: string;
/** Define the tile info for the layer including lods, rows, cols, origin and spatial reference. */
tileInfo?: TileInfo;
/** Define additional tile server domains for the layer. */
@@ -307,19 +309,15 @@ declare module "esri" {
export interface ClassedColorSliderOptions {
/** Data map containing renderer information. */
breakInfos: any;
- /** Classification method. */
+ /** Indicates the classification method used to divide the range of values into bins. */
classificationMethod?: string;
- /** Handles identified by their index values within the stops array. */
+ /** Required: Handles identified by their index values within the stops array. */
handles: number[];
- /** Represents histogram data object. */
+ /** Represents the histogram data object. */
histogram?: any;
/** Width of the histogram in pixels. */
histogramWidth?: number;
- /** Absolute maximum value of the slider. */
- maxValue?: number;
- /** Absolute minimum value of the slider. */
- minValue?: number;
- /** Normalization type. */
+ /** Indicates how data values are normalized. */
normalizationType?: string;
/** Handle identified by its index value within the stops array. */
primaryHandle?: number;
@@ -333,61 +331,51 @@ declare module "esri" {
showLabels?: boolean;
/** Displays ticks on slider when true. */
showTicks?: boolean;
- /** Represents statistics data object. */
+ /** Represents the statistics data object. */
statistics?: any;
}
export interface ClassedSizeSliderOptions {
- /** Data map containing renderer information. */
+ /** The data map containing renderer information. */
breakInfos: any;
- /** Classification method. */
+ /** Optional: Indicates the classification method used to divide the range of values into bins. */
classificationMethod?: string;
- /** Handles identified by their index values within the stops array. */
+ /** Required: Handles identified by their index values within the stops array. */
handles: number[];
- /** Represents histogram data object. */
+ /** Represents the histogram data object. */
histogram?: any;
/** Width of histogram in pixels. */
histogramWidth?: number;
- /** Absolute maximum value of the slider. */
- maxValue?: number;
- /** Absolute minimum value of the slider. */
- minValue?: number;
- /** Normalization type. */
+ /** Indicates how data values are normalized. */
normalizationType?: string;
- /** Handle identified by its index value within the stops array. */
+ /** The handle identified by its index value within the stops array. */
primaryHandle?: number;
/** Width of slider ramp in pixels. */
rampWidth?: number;
/** Displays slider handles when true. */
showHandles?: boolean;
- /** Displays the histogram when true. */
+ /** Indicates whether to display the histogram. */
showHistogram?: boolean;
/** Displays labels when true. */
showLabels?: boolean;
/** Displays slider ticks when true. */
showTicks?: boolean;
- /** Represents statistics data object. */
+ /** Optional: Represents the statistics data object. */
statistics?: any;
- /** Indicates whether to use a circle or line-based ClassedSizeSlider. */
- symbol?: any;
}
export interface ColorInfoSliderOptions {
- /** Classification method. */
- classificationMethod?: string;
- /** Data map containing renderer information. */
+ /** The data map containing renderer information. */
colorInfo: any;
/** Handles identified by their index values within the stops array. */
handles: number[];
- /** Represents histogram data object. */
+ /** Optional: Represents the histogram data object. */
histogram?: any;
/** Width of histogram in pixels. */
histogramWidth?: number;
- /** Absolute maximum value of slider. */
+ /** The absolute maximum value of the slider. */
maxValue?: number;
- /** Absolute minimum value of slider. */
+ /** The absolute minimum value of the slider. */
minValue?: number;
- /** Normalization Type. */
- normalizationType?: string;
- /** Handle identified by its index value within the stops array. */
+ /** The handle identified by its index value within the stops array. */
primaryHandle?: number;
/** Width of widget ramp in pixels. */
rampWidth?: number;
@@ -397,13 +385,15 @@ declare module "esri" {
showHistogram?: boolean;
/** Displays labels when set to true. */
showLabels?: boolean;
- /** Displays ticks when set to true. */
+ /** Indicates whether to display percentage labels. */
+ showRatioLabels?: boolean | string;
+ /** Displays tick marks when set to true. */
showTicks?: boolean;
/** Displays transparent background when set to true. */
showTransparentBackground?: boolean;
- /** Represents statistics data object. */
+ /** Represents a statistics data object. */
statistics?: any;
- /** Object containing additional options. */
+ /** Additional options to customize slider. */
zoomOptions?: any;
}
export interface ColorPickerOptions {
@@ -655,8 +645,6 @@ declare module "esri" {
traffic?: boolean;
/** The traffic layer used for real-time traffic. */
trafficLayer?: ArcGISDynamicMapServiceLayer;
- /** An example of when to use this is when working with a proxied ArcGIS Online route service item with stored credentials. */
- travelModesServiceUrl?: string;
}
export interface DissolveBoundariesOptions {
/** The URL to the GPServer used to execute an analysis job. */
@@ -718,7 +706,7 @@ declare module "esri" {
/** Specifies whether users can add new vertices. */
allowAddVertices?: boolean;
/** Specifies whether users can delete vertices. */
- allowDeletevertices?: boolean;
+ allowDeleteVertices?: boolean;
/** Line symbol used to draw the guild lines, displayed when moving vertices. */
ghostLineSymbol?: LineSymbol;
/** Marker symbol used to display the insertable vertices. */
@@ -859,8 +847,14 @@ declare module "esri" {
cellNavigation?: boolean;
/** Object defining the date options specifically for formatting date and time editors. */
dateOptions?: any;
+ /** Allows selection of a table's row via clicking a feature on the map. */
+ enableLayerClick?: boolean;
+ /** Allows selection of a feature on a map via clicking row in the table. */
+ enableLayerSelection?: boolean;
/** The featureLayer that the table is associated with. */
featureLayer: FeatureLayer;
+ /** Reference to the 'Options' drop-down menu. */
+ gridMenu?: any;
/** Columns to hide by default using the dGrid ColumnHider extension. */
hiddenFields?: string[];
/** A reference to the Map. */
@@ -1173,8 +1167,12 @@ declare module "esri" {
map: Map;
/** Indicates whether to remove underscores from the layer title. */
removeUnderscores?: boolean;
+ /** Indicates whether to display a legend for the layer items. */
+ showLegend?: boolean;
+ /** Indicates whether to display the opacity slider. */
+ showOpacitySlider?: boolean;
/** Indicates whether to show sublayers in the list of layers. */
- subLayers?: boolean;
+ showSubLayers?: boolean;
/** The CSS class selector used to uniquely style the widget. */
theme?: string;
/** Indicates whether to show the LayerList widget. */
@@ -1455,19 +1453,19 @@ declare module "esri" {
export interface OpacitySliderOptions {
/** Handles identified by their index values within the stops array. */
handles: number[];
- /** Represents histogram data object. */
+ /** Represents the histogram data object. */
histogram?: any;
/** Width of histogram in pixels. */
histogramWidth?: number;
- /** Absolute maximum value of the slider. */
+ /** The absolute maximum value of the slider. */
maxValue?: number;
- /** Absolute minimum value of the slider. */
+ /** The absolute minimum value of the slider. */
minValue?: number;
- /** Data map containing renderer information. */
+ /** The data map containing renderer information. */
opacityInfo: any;
- /** Handle identified by its index value within the stops array. */
+ /** The handle identified by its index value within the stops array. */
primaryHandle?: number;
- /** Width of slider ramp in pixels. */
+ /** Represents the width of the SVG ramp in pixels. */
rampWidth?: number;
/** Displays slider handles when true. */
showHandles?: boolean;
@@ -1479,9 +1477,9 @@ declare module "esri" {
showTicks?: boolean;
/** Displays the transparent background when true. */
showTransparentBackground?: boolean;
- /** Represents statistics data object. */
+ /** Represents a statistics data object. */
statistics?: any;
- /** Additional options for slider customization. */
+ /** Additional options to customize slider. */
zoomOptions?: any;
}
export interface OpenStreetMapLayerOptions {
@@ -1699,7 +1697,7 @@ declare module "esri" {
minimum: number;
/** Bottom label for the slider. */
minLabel?: string;
- /** **CHECK THIS: Is it num of dec places? - Accuracy of the data (related to rounding). */
+ /** Accuracy of the data (related to rounding). */
precision?: number;
/** Primary handle identified by its index value within the related infos array (color, size, break). */
primaryHandle?: number;
@@ -1737,9 +1735,11 @@ declare module "esri" {
activeSourceIndex?: number | string;
/** Indicates whether to automatically add all the feature layers from the map. */
addLayersFromMap?: boolean;
+ /** This is the default value used as a hint for input text when searching on multiple sources. */
+ allPlaceholder?: string;
/** Indicates whether to automatically navigate to the selected result. */
autoNavigate?: boolean;
- /** Indicates whether to automatically select the first result. */
+ /** Indicates whether to automatically select the first geocoded result (not the first suggestion). */
autoSelect?: boolean;
/** Indicates whether to enable an option to collapse/expand the search into a button. */
enableButtonMode?: boolean;
@@ -1749,6 +1749,8 @@ declare module "esri" {
enableInfoWindow?: boolean;
/** Indicates whether to enable showing a label for the geometry.The default value is false. */
enableLabel?: boolean;
+ /** Indicates whether to display the option to search "All" sources. */
+ enableSearchingAll?: boolean;
/** Indicates whether to enable the menu for selecting different sources. */
enableSourcesMenu?: boolean;
/** Indicates whether or not to enable suggest on the widget. */
@@ -1765,7 +1767,7 @@ declare module "esri" {
infoTemplate?: InfoTemplate;
/** The text symbol for the label graphic. */
labelSymbol?: TextSymbol;
- /** The default distance specified in meters used to reverse geocode, (if not specified by source).The default value is 1500. */
+ /** The default distance specified in meters used to reverse geocode, (if not specified by source). */
locationToAddressDistance?: number;
/** Reference to the map. */
map?: Map;
@@ -1791,23 +1793,19 @@ declare module "esri" {
zoomScale?: number;
}
export interface SizeInfoSliderOptions {
- /** Classification method. */
- classificationMethod?: string;
/** Handles identified by their index values within the stops array. */
handles: number[];
- /** Represents histogram data object. */
+ /** Represents the histogram data object. */
histogram?: any;
/** Width of the histogram in pixels. */
histogramWidth?: number;
- /** Absolute maximum value of the slider. */
+ /** The absolute maximum value of the slider. */
maxValue?: number;
- /** Absolute minimum value of the slider. */
+ /** The absolute minimum value of the slider. */
minValue?: number;
- /** Normalization type. */
- normalizationType?: string;
- /** Handle identified by its index value within the stops array. */
+ /** The handle identified by its index value within the stops array. */
primaryHandle?: number;
- /** Width of slider ramp in pixels. */
+ /** Represents the width of the SVG ramp in pixels. */
rampWidth?: number;
/** Displays slider handles when true. */
showHandles?: boolean;
@@ -1817,11 +1815,11 @@ declare module "esri" {
showLabels?: boolean;
/** Displays slider ticks when true. */
showTicks?: boolean;
- /** Data map containing renderer information. */
+ /** Defines the size of the symbol where feature size is proportional to data value. */
sizeInfo: any;
- /** Represents statistics data object. */
+ /** Represents the statistics data object. */
statistics?: any;
- /** The symbol used with the widget. */
+ /** The SimpleLineSymbol or SimpleMarkerSymbol used with the widget. */
symbol: Symbol;
/** Additional options to customize slider. */
zoomOptions?: any;
@@ -1969,10 +1967,12 @@ declare module "esri" {
sumWithinLayer: FeatureLayer;
}
export interface SymbolStylerOptions {
+ /** Added at v. */
+ portal?: string | any;
/** Self response of Portal used as symbol provider. */
- portalSelf: string;
+ portalSelf?: any;
/** URL to Portal used as symbol provider. */
- portalUrl: string;
+ portalUrl?: string;
}
export interface TemplatePickerOptions {
/** Number of visible columns. */
@@ -2062,6 +2062,18 @@ declare module "esri" {
/** A predefined style. */
style?: string;
}
+ export interface VectorTileLayerOptions {
+ /** Lists which levels of the layer to draw. */
+ displayLevels?: number[];
+ /** Maximum visible scale for the layer. */
+ maxScale?: number;
+ /** Minimum visible scale for the layer. */
+ minScale?: number;
+ /** Initial opacity or transparency of layer. */
+ opacity?: number;
+ /** Visibility of the layer. */
+ visible?: boolean;
+ }
export interface VisibleScaleRangeSliderOptions {
/** Layer used to determine the suggested scale range and set the minScale, maxScale values. */
layer: FeatureLayer;
@@ -2275,7 +2287,7 @@ declare module "esri/IdentityManager" {
/** Dialog box widget used to challenge the user for their credentials when the application attempts to access a secure resource. */
dialog: any;
/**
- * When accessing secure resources via Oauth2 from ArcGIS.com or one of its sub-domains the IdentityManager redirects the user to the ArcGIS.com or Portal for ArcGIS sign-in page.
+ * When accessing secure resources via OAuth2 from ArcGIS.com or one of its sub-domains the IdentityManager redirects the user to the ArcGIS.com or Portal for ArcGIS sign-in page.
* @param handlerFunction When called, the function passed to setOAuthRedirectionHandler receives an object containing the redirection properties.
*/
setOAuthRedirectionHandler(handlerFunction: Function): void;
@@ -2391,7 +2403,7 @@ declare module "esri/IdentityManagerBase" {
/** Return properties of this object in JSON. */
toJson(): any;
/** Fired when a credential is created. */
- on(type: "credential-create", listener: (event: { target: IdentityManagerBase }) => void): esri.Handle;
+ on(type: "credential-create", listener: (event: { credential: Credential; target: IdentityManagerBase }) => void): esri.Handle;
/** Fired when all credentials are destroyed. */
on(type: "credentials-destroy", listener: (event: { target: IdentityManagerBase }) => void): esri.Handle;
on(type: string, listener: (event: any) => void): esri.Handle;
@@ -2675,7 +2687,7 @@ declare module "esri/arcgis/OAuthInfo" {
minTimeUntilExpiration: number;
/** Set to true to show the OAuth sign in page in a popup window. */
popup: boolean;
- /** The relative page URL for the user to be sent to from the OAuth sign in page. */
+ /** Applicable if working with the popup user-login workflow. */
popupCallbackUrl: string;
/** The window features passed to window.open(). */
popupWindowFeatures: string;
@@ -2886,7 +2898,7 @@ declare module "esri/arcgis/Portal" {
/** The date the group was last modified. */
modified: Date;
/** The username of the group's owner. */
- owner: Portal;
+ owner: string;
/** The portal for the group. */
portal: Portal;
/** A short summary that describes the group. */
@@ -3062,7 +3074,7 @@ declare module "esri/arcgis/Portal" {
* Retrieve all the items in the specified folder.
* @param folderId The id of the folder that contains the items to retrieve.
*/
- getItems(folderId: string): any;
+ getItems(folderId?: string): any;
/** Get information about any notifications for the portal user. */
getNotifications(): any;
/** Access the tag objects that have been created by the portal user. */
@@ -3087,6 +3099,11 @@ declare module "esri/arcgis/utils" {
* @param itemId The itemId for a publicly shared ArcGIS.com item.
*/
getItem(itemId: string): any;
+ /**
+ * Can be used with LayerList widget to get the layers list to be passed into the constructor.
+ * @param createMapResponse The object created from the resolved promise returned by createMap().
+ */
+ getLayerList(createMapResponse: any): any[];
/**
* Can be used with esri.dijit.Legend to get the layerInfos list to be passed into the Legend constructor.
* @param createMapResponse Object returned by .createMap() in the .then() callback.
@@ -3422,37 +3439,35 @@ declare module "esri/dijit/ClassedColorSlider" {
/** A widget to assist with managing a renderer used for visualizing features by their class and color. */
class ClassedColorSlider extends RendererSlider {
- /** Required */
+ /** Required: The data map containing renderer information. */
breakInfos: any;
- /** Optional */
+ /** Optional: Indicates the classification method used to divide the range of values into bins. */
classificationMethod: string;
/** Required: Handles identified by their index values within the stops array. */
handles: number[];
- /** Optional: Property representing histogram data object. */
+ /** Optional: Represents the histogram data object. */
histogram: any;
- /** Optional */
+ /** Optional: The width of the histogram in pixels. */
histogramWidth: boolean;
- /** Optional */
+ /** Read Only. */
maxValue: number;
- /** Optional */
+ /** Read Only. */
minValue: number;
- /** Optional */
+ /** Optional: Indicates how data values are normalized. */
normalizationType: string;
- /** Optional: Handle identified by its index value within the stops array. */
+ /** Optional: The handle identified by its index value within the stops array. */
primaryHandle: number;
- /** Optional */
+ /** Optional: Width of the widget ramp in pixels. */
rampWidth: number;
- /** Property for showing handles. */
+ /** Optional: Indicates whether to display handles. */
showHandles: boolean;
- /** Optional: Property for displaying the histogram. */
+ /** Optional: Indicates whether to display the histogram. */
showHistogram: boolean;
- /** Property for showing labels. */
+ /** Optional: Indicates whether to display labels. */
showLabels: boolean;
- /** Property for showing ticks. */
+ /** Optional: Indicates whether to display tick marks. */
showTicks: boolean;
- /** Property for displaying the transparent background. */
- showTransparentBackground: boolean;
- /** Optional: Property representing statistics data object. */
+ /** Optional: Represents the statistics data object. */
statistics: any;
/**
* Creates a new ClassedColorSlider widget.
@@ -3464,7 +3479,7 @@ declare module "esri/dijit/ClassedColorSlider" {
startup(): void;
/** Fires when the ClassedColorSlider widget properties change. */
on(type: "change", listener: (event: { breakInfos: any; target: ClassedColorSlider }) => void): esri.Handle;
- /** Fires when minValue or maxValue of ClassedColorSlider changes. */
+ /** Fires when minValue or maxValue of the ClassedColorSlider changes. */
on(type: "data-value-change", listener: (event: { breakInfos: any; maxValue: number; minValue: number; target: ClassedColorSlider }) => void): esri.Handle;
/** Fires when a ClassedColorSlider handle is moved. */
on(type: "handle-value-change", listener: (event: { breakInfos: any; target: ClassedColorSlider }) => void): esri.Handle;
@@ -3479,35 +3494,35 @@ declare module "esri/dijit/ClassedSizeSlider" {
/** A widget to assist with managing a renderer for visualizing features by varying classes and size. */
class ClassedSizeSlider extends RendererSlider {
- /** Required. */
+ /** Required: The data map containing renderer information. */
breakInfos: any;
- /** Optional. */
+ /** Optional: Indicates the classification method used to divide the range of values into bins. */
classificationMethod: string;
- /** Required. */
+ /** Required: Handles identified by their index values within the stops array. */
handles: number[];
- /** Optional. */
+ /** Optional: Represents the histogram data object. */
histogram: any;
- /** Optional. */
- histogramWidth: boolean;
- /** Optional. */
+ /** Optional: Width of histogram in pixels. */
+ histogramWidth: number;
+ /** Read Only. */
maxValue: number;
- /** Optional. */
+ /** Read Only. */
minValue: number;
- /** Optional. */
+ /** Optional: Indicates how data values are normalized. */
normalizationType: string;
- /** Optional. */
+ /** Optional: Handle identified by its index value within the stops array. */
primaryHandle: number;
- /** Optional */
+ /** Optional: Width of the widget ramp in pixels. */
rampWidth: number;
- /** Property for showing handles. */
+ /** Optional: Indicates whether to display handles. */
showHandles: boolean;
- /** Optional. */
+ /** Optional: Indicates whether to display the histogram. */
showHistogram: boolean;
- /** Property for showing labels. */
+ /** Optional: Indicates whether to display labels. */
showLabels: boolean;
- /** Property for showing ticks. */
+ /** Optional: Indicates whether to display ticks marks. */
showTicks: boolean;
- /** Optional. */
+ /** Optional: Represents the statistics data object. */
statistics: any;
/**
* Creates a new ClassedSizeSlider widget within the provided DOM node srcNodeRef.
@@ -3517,7 +3532,7 @@ declare module "esri/dijit/ClassedSizeSlider" {
constructor(params: esri.ClassedSizeSliderOptions, srcNodeRef: Node | string);
/** Fires when ClassedSizeSlider changes. */
on(type: "change", listener: (event: { breakInfos: any; target: ClassedSizeSlider }) => void): esri.Handle;
- /** Fires when minValue or maxValue changes in ClassedSizeSlider. */
+ /** Fires when minValue or maxValue of the ClassedSizeSlider changes. */
on(type: "data-value-change", listener: (event: { breakInfos: any; maxValue: number; minValue: number; target: ClassedSizeSlider }) => void): esri.Handle;
/** Fires when a ClassedSizeSlider handle is moved. */
on(type: "handle-value-change", listener: (event: { breakInfos: any; target: ClassedSizeSlider }) => void): esri.Handle;
@@ -3532,39 +3547,41 @@ declare module "esri/dijit/ColorInfoSlider" {
/** A widget to assist with managing a renderer for visualizing features based upon colors. */
class ColorInfoSlider extends RendererSlider {
- /** Optional */
+ /** The classification method used for the ColorInfoSlider. */
classificationMethod: string;
- /** Required: Example colorInfo: colorRenderer.renderer.visualVariables[0]. */
+ /** Required: The data map containing renderer information. */
colorInfo: any;
/** Required: Handles identified by their index values within the stops array. */
handles: number[];
- /** Optional: Property representing histogram data object. */
+ /** Optional: Represents the histogram data object. */
histogram: any;
- /** Optional */
- histogramWidth: boolean;
- /** Optional */
+ /** Optional: Width of histogram in pixels. */
+ histogramWidth: number;
+ /** Optional: The absolute maximum value of the slider. */
maxValue: number;
- /** Optional */
+ /** Optional: The absolute minimum value of the slider. */
minValue: number;
/** Optional */
normalizationType: string;
- /** Optional: Handle identified by its index value within the stops array. */
+ /** Optional: The handle identified by its index value within the stops array. */
primaryHandle: number;
- /** Optional */
+ /** Optional: Width of the widget ramp in pixels. */
rampWidth: number;
- /** Property for showing handles. */
+ /** Optional: Indicates whether to display handles. */
showHandles: boolean;
- /** Optional: Property for displaying the histogram. */
+ /** Optional: Indicates whether to display the histogram. */
showHistogram: boolean;
- /** Property for showing labels. */
+ /** Optional: Indicates whether to display handles. */
showLabels: boolean;
- /** Property for showing ticks. */
+ /** Indicates whether to display percentage labels. */
+ showRatioLabels: boolean | string;
+ /** Optional: Indicates whether to display ticks marks. */
showTicks: boolean;
- /** Property for displaying the transparent background. */
+ /** Optional: Indicates whether to display a transparent background. */
showTransparentBackground: boolean;
- /** Optional: Property representing statistics data object. */
+ /** Optional: Represents a statistics data object. */
statistics: any;
- /** Optional */
+ /** Optional: Additional options to customize slider. */
zoomOptions: any;
/**
* Creates a new ColorInfoSlider widget within the provided DOM node srcNodeRef.
@@ -3576,10 +3593,12 @@ declare module "esri/dijit/ColorInfoSlider" {
startup(): void;
/** Fires when ColorInfoSlider changes. */
on(type: "change", listener: (event: { colorInfo: any; target: ColorInfoSlider }) => void): esri.Handle;
- /** Fires when minValue or maxValue of ColorInfoSlider changes. */
+ /** Fires when minValue or maxValue of the ColorInfoSlider changes. */
on(type: "data-value-change", listener: (event: { colorInfo: any; maxValue: number; minValue: number; target: ColorInfoSlider }) => void): esri.Handle;
/** Fires when a ColorInfoSlider handle is moved. */
- on(type: "handle-value-change", listener: (event: { target: ColorInfoSlider }) => void): esri.Handle;
+ on(type: "handle-value-change", listener: (event: { colorInfo: any; target: ColorInfoSlider }) => void): esri.Handle;
+ /** Fires when the zoom state changes. */
+ on(type: "zoomed", listener: (event: { zoomed: boolean; target: ColorInfoSlider }) => void): esri.Handle;
on(type: string, listener: (event: any) => void): esri.Handle;
}
export = ColorInfoSlider;
@@ -3765,6 +3784,8 @@ declare module "esri/dijit/ElevationProfile" {
measureUnits: string;
/** The polyline input geometry used to create the elevation profile. */
profileGeometry: Geometry;
+ /** The title of the resulting elevation profile. */
+ title: string;
/**
* Create a new ElevationProfile widget using the given DOM node.
* @param options See options table below for the full descriptions of the properties needed for this object.
@@ -3781,6 +3802,8 @@ declare module "esri/dijit/ElevationProfile" {
on(type: "clear-profile", listener: (event: { target: ElevationProfile }) => void): esri.Handle;
/** Fires when the widget has fully loaded. */
on(type: "load", listener: (event: { target: ElevationProfile }) => void): esri.Handle;
+ /** Fires when the title of the elevation profile is changed */
+ on(type: "title-changed", listener: (event: { target: ElevationProfile }) => void): esri.Handle;
/** Fires when the elevation profile is updated. */
on(type: "update-profile", listener: (event: { profileResults: any; target: ElevationProfile }) => void): esri.Handle;
on(type: string, listener: (event: any) => void): esri.Handle;
@@ -3793,7 +3816,7 @@ declare module "esri/dijit/FeatureTable" {
import FeatureLayer = require("esri/layers/FeatureLayer");
import Map = require("esri/map");
- /** (Currently in beta) Creates an instance of the FeatureTable widget within the provided DOM node. */
+ /** Creates an instance of the FeatureTable widget within the provided DOM node. */
class FeatureTable {
/** An optional dGrid property. */
allowSelectAll: boolean;
@@ -3805,10 +3828,16 @@ declare module "esri/dijit/FeatureTable" {
dataStore: any;
/** Object defining the date options specifically for formatting date and time editors. */
dateOptions: any;
+ /** Allows selection of a table's row via clicking a feature on the map. */
+ enableLayerClick: boolean;
+ /** Allows selection of a feature on a map via clicking row in the table. */
+ enableLayerSelection: boolean;
/** The featureLayer that the table is associated with. */
featureLayer: FeatureLayer;
/** Reference to the dGrid. */
grid: any;
+ /** Reference to the 'Options' drop-down menu. */
+ gridMenu: any;
/** Optional columns to hide by default using the dGrid ColumnHider extension. */
hiddenFields: string[];
/** A reference to the primary key used by the dataStore to differentiate columns. */
@@ -4004,15 +4033,15 @@ declare module "esri/dijit/HeatmapSlider" {
import esri = require("esri");
import RendererSlider = require("esri/dijit/RendererSlider");
- /** A widget to assist in managing properties of a HeatmapRenderer. */
+ /** A widget to assist in obtaining values for managing and setting properties on a HeatmapRenderer. */
class HeatmapSlider extends RendererSlider {
/** Required. */
colorStops: any;
/** Required. */
handles: number[];
- /** Optional. */
+ /** Optional, absolute maximum value of the slider.NOTE: This value overrides statistics' max property. */
maxValue: number;
- /** Optional. */
+ /** Optional, absolute minimum value of the slider.NOTE: This value overrides statistics' min property. */
minValue: number;
/** Optional */
rampWidth: number;
@@ -4127,6 +4156,7 @@ declare module "esri/dijit/ImageServiceMeasure" {
import SimpleFillSymbol = require("esri/symbols/SimpleFillSymbol");
import SimpleLineSymbol = require("esri/symbols/SimpleLineSymbol");
import SimpleMarkerSymbol = require("esri/symbols/SimpleMarkerSymbol");
+ import ImageServiceMeasureTool = require("esri/toolbars/ImageServiceMeasureTool");
/** This widget allows you to perform measurements on image services. */
class ImageServiceMeasure {
@@ -4136,6 +4166,8 @@ declare module "esri/dijit/ImageServiceMeasure" {
lineSymbol: SimpleLineSymbol;
/** Symbol to be used when drawing a point. */
markerSymbol: SimpleMarkerSymbol;
+ /** The instance of ImageServiceMeasureTool associated with this widget. */
+ measureToolbar: ImageServiceMeasureTool;
/**
* Creates an instance of the ImageServiceMeasure widget.
* @param params An Object containing constructor options.
@@ -4294,8 +4326,12 @@ declare module "esri/dijit/LayerList" {
map: Map;
/** Indicates whether to remove underscores from the layer title */
removeUnderscores: boolean;
+ /** Indicates whether to display a legend for the layer items. */
+ showLegend: boolean;
+ /** Indicates whether to display the opacity slider. */
+ showOpacitySlider: boolean;
/** Indicates whether to show sublayers in the list of layers. */
- sublayers: boolean;
+ showSubLayers: boolean;
/** CSS Class for uniquely styling the widget. */
theme: string;
/** Indicates whether to show the widget. */
@@ -4314,7 +4350,7 @@ declare module "esri/dijit/LayerList" {
startup(): void;
/** Fired when the LayerList widget has fully loaded. */
on(type: "load", listener: (event: { target: LayerList }) => void): esri.Handle;
- /** Fired when refresh is called on the LabelList widget. */
+ /** Fired when refresh() is called on the widget. */
on(type: "refresh", listener: (event: { target: LayerList }) => void): esri.Handle;
/** Fired when the layer is toggled on/off within the widget. */
on(type: "toggle", listener: (event: { layerIndex: number; subLayerIndex: number; visible: boolean; target: LayerList }) => void): esri.Handle;
@@ -4622,33 +4658,35 @@ declare module "esri/dijit/OpacitySlider" {
/** A widget to assist with managing opacity with a renderer. */
class OpacitySlider extends RendererSlider {
- /** Required. */
+ /** Required: Handles identified by their index values within the stops array. */
handles: number[];
- /** Optional. */
+ /** Optional: Represents the histogram data object. */
histogram: any;
- /** Optional: */
- histogramWidth: boolean;
- /** Optional. */
+ /** Optional: Width of histogram in pixels. */
+ histogramWidth: number;
+ /** Optional: The absolute maximum value of the slider. */
maxValue: number;
- /** Optional. */
+ /** Optional: The absolute minimum value of the slider. */
minValue: number;
- /** Required. */
+ /** Required: The data map containing renderer information. */
opacityInfo: any;
- /** Optional */
+ /** Optional: The handle identified by its index value within the stops array. */
+ primaryHandle: number;
+ /** Optional: Represents the width of the SVG ramp in pixels. */
rampWidth: number;
- /** Property for showing handles. */
+ /** Optional: Indicates whether to display slider handles. */
showHandles: boolean;
- /** Optional. */
+ /** Optional: Indicates whether to display the histogram. */
showHistogram: boolean;
- /** Property for showing labels. */
+ /** Optional: Indicates whether to display slider labels. */
showLabels: boolean;
- /** Property for showing ticks. */
+ /** Optional: Indicates whether to display slider tick marks. */
showTicks: boolean;
- /** Property for displaying the transparent background. */
+ /** Optional: Indicates whether to display the transparent background. */
showTransparentBackground: boolean;
- /** Optional. */
+ /** Optional: Represents a statistics data object. */
statistics: any;
- /** Optional. */
+ /** Optional: Additional options to customize slider. */
zoomOptions: any;
/**
* Creates a new OpacitySlider widget within the provided DOM node srcNodeRef.
@@ -4658,10 +4696,12 @@ declare module "esri/dijit/OpacitySlider" {
constructor(params: esri.OpacitySliderOptions, srcNodeRef: Node | string);
/** Fires when OpacitySlider changes. */
on(type: "change", listener: (event: { opacityInfo: any; target: OpacitySlider }) => void): esri.Handle;
- /** Fires when minValue or maxValue of OpacitySlider changes. */
+ /** Fires when minValue or maxValue of the OpacitySlider changes. */
on(type: "data-value-change", listener: (event: { maxValue: number; minValue: number; opacityInfo: any; target: OpacitySlider }) => void): esri.Handle;
/** Fires when an OpacitySlider handle is moved. */
on(type: "handle-value-change", listener: (event: { opacityInfo: any; target: OpacitySlider }) => void): esri.Handle;
+ /** Fires when the zoom state changes. */
+ on(type: "zoomed", listener: (event: { zoomed: boolean; target: OpacitySlider }) => void): esri.Handle;
on(type: string, listener: (event: any) => void): esri.Handle;
}
export = OpacitySlider;
@@ -4985,7 +5025,7 @@ declare module "esri/dijit/RendererSlider" {
showLabels: boolean | string[];
/** Toggle for showing the horizontal line indicators from the center of the handle. */
showTicks: boolean;
- /** Handle positions represented as numbers that fall between minimum and maximum. */
+ /** Required: Handle positions represented as numbers that fall between minimum and maximum. */
values: number[];
/**
* Creates a new RendererSlider widget.
@@ -5044,10 +5084,14 @@ declare module "esri/dijit/Search" {
activeSourceIndex: number;
/** Indicates whether to automatically add all the feature layers from the map. */
addLayersFromMap: boolean;
+ /** This is the default value used as a hint for input text when searching on multiple sources. */
+ allPlaceholder: string;
/** Indicates whether to automatically navigate to the selected result. */
autoNavigate: boolean;
- /** Indicates whether to automatically select and zoom to the first geocoded result. */
+ /** Indicates whether to automatically select the first geocoded result. */
autoSelect: boolean;
+ /** (Read-only), the default source used for the Search widget. */
+ defaultSource: any;
/** Indicates whether to enable an option to collapse/expand the search into a button. */
enableButtonMode: boolean;
/** Show the selected feature on the map using a default symbol determined by the source's geometry type. */
@@ -5056,6 +5100,8 @@ declare module "esri/dijit/Search" {
enableInfoWindow: boolean;
/** Indicates whether to enable showing a label for the geometry. */
enableLabel: boolean;
+ /** Indicates whether to display the option to search "All" sources. */
+ enableSearchingAll: boolean;
/** Indicates whether to enable the menu for selecting different sources. */
enableSourcesMenu: boolean;
/** Enable suggestions for the widget. */
@@ -5150,8 +5196,8 @@ declare module "esri/dijit/Search" {
/** Finalizes the creation of the Search widget. */
startup(): void;
/**
- * Performs a suggest() request on the active Locator.
- * @param value The string value used to suggest() on an active Locator.
+ * Performs a suggest() request on the active Locator or feature layer.
+ * @param value The string value used to suggest() on an active locator or feature layer.
*/
suggest(value?: string): any;
/** Fired when the widget's text input loses focus. */
@@ -5176,39 +5222,44 @@ declare module "esri/dijit/Search" {
declare module "esri/dijit/SizeInfoSlider" {
import esri = require("esri");
import RendererSlider = require("esri/dijit/RendererSlider");
+ import SimpleMarkerSymbol = require("esri/symbols/SimpleMarkerSymbol");
+ import SimpleLineSymbol = require("esri/symbols/SimpleLineSymbol");
+ /** A widget to assist with managing size with a renderer. */
class SizeInfoSlider extends RendererSlider {
- /** Optional. */
+ /** Optional, the classification method used for the SizeInfoSlider. */
classificationMethod: string;
- /** Required. */
+ /** Required: Handles identified by their index values within the stops array. */
handles: number[];
- /** Optional. */
+ /** Optional: Represents the histogram data object. */
histogram: any;
- /** Optional. */
- histogramWidth: boolean;
- /** Optional. */
+ /** Optional: Width of the histogram in pixels. */
+ histogramWidth: number;
+ /** Optional: The absolute maximum value of the slider. */
maxValue: number;
- /** Optional. */
+ /** Optional: The absolute minimum value of the slider. */
minValue: number;
- /** Optional. */
+ /** Optional, indicates how data values are normalized. */
normalizationType: string;
- /** Optional. */
+ /** Optional: The handle identified by its index value within the stops array. */
primaryHandle: number;
- /** Optional */
+ /** Optional: Represents the width of the SVG ramp in pixels. */
rampWidth: number;
- /** Property for showing handles. */
+ /** Optional: Indicates whether to display slider handles. */
showHandles: boolean;
- /** Optional. */
+ /** Optional: Indicates whether to display the histogram. */
showHistogram: boolean;
- /** Property for showing labels. */
+ /** Optional: Indicates whether to display the slider labels. */
showLabels: boolean;
- /** Property for showing ticks. */
+ /** Optional: Indicates whether to display the slider tick marks. */
showTicks: boolean;
- /** Required. */
+ /** Required: Defines the size of the symbol where feature size is proportional to data value. */
sizeInfo: any;
- /** Optional. */
+ /** Optional: Represents the statistics data object. */
statistics: any;
- /** Optional. */
+ /** Required: The SimpleLineSymbol or SimpleMarkerSymbol used with the widget. */
+ symbol: SimpleMarkerSymbol | SimpleLineSymbol;
+ /** Optional: Additional options to customize slider. */
zoomOptions: any;
/**
* Creates a new SizeInfoSlider widget.
@@ -5220,10 +5271,12 @@ declare module "esri/dijit/SizeInfoSlider" {
startup(): void;
/** Fires when the SizeInfoSlider properties change. */
on(type: "change", listener: (event: { sizeInfo: any; target: SizeInfoSlider }) => void): esri.Handle;
- /** Fires when minValue or maxValue of SizeInfoSlider change. */
+ /** Fires when minValue or maxValue of the SizeInfoSlider changes. */
on(type: "data-value-change", listener: (event: { maxValue: number; minValue: number; sizeInfo: any; target: SizeInfoSlider }) => void): esri.Handle;
/** Fires when a SizeInfoSlider handle is moved. */
on(type: "handle-value-change", listener: (event: { sizeInfo: any; target: SizeInfoSlider }) => void): esri.Handle;
+ /** Fires when the zoom state changes. */
+ on(type: "zoomed", listener: (event: { zoomed: boolean; target: SizeInfoSlider }) => void): esri.Handle;
on(type: string, listener: (event: any) => void): esri.Handle;
}
export = SizeInfoSlider;
@@ -6730,7 +6783,7 @@ declare module "esri/dijit/geoenrichment/DataBrowser" {
export = DataBrowser;
}
-declare module "esri/dijit/geoenrichment/InfoGraphic" {
+declare module "esri/dijit/geoenrichment/Infographic" {
import esri = require("esri");
import GeometryStudyArea = require("esri/tasks/geoenrichment/GeometryStudyArea");
import RingBuffer = require("esri/tasks/geoenrichment/RingBuffer");
@@ -7451,13 +7504,13 @@ declare module "esri/geometry/geometryEngine" {
import SpatialReference = require("esri/SpatialReference");
import Point = require("esri/geometry/Point");
- /** (Currently in beta) A client-side geometry engine. */
+ /** A client-side geometry engine. */
var geometryEngine: {
/**
* Creates planar (or Euclidean) buffer polygons at a specified distance around the input geometries.
* @param geometry The buffer input geometry.
* @param distance The specified distance(s) for buffering.
- * @param unit Unit for the distance(s).
+ * @param unit Measurement unit for the distance(s).
* @param unionResults Whether the output geometries should be unioned into a single polygon.
*/
buffer(geometry: Geometry | Geometry[], distance: number | number[], unit: string | number, unionResults?: boolean): Polygon | Polygon[];
@@ -7495,7 +7548,7 @@ declare module "esri/geometry/geometryEngine" {
* Densify geometries by plotting points between existing vertices.
* @param geometry The geometry to be densified.
* @param maxSegmentLength The maximum segment length allowed.
- * @param maxSegmentLengthUnit Unit for the maximum segment length.
+ * @param maxSegmentLengthUnit Measurement unit for maxSegmentLength.
*/
densify(geometry: Geometry, maxSegmentLength: number, maxSegmentLengthUnit: string | number): Geometry;
/**
@@ -7514,7 +7567,7 @@ declare module "esri/geometry/geometryEngine" {
* Calculates the shortest planar distance between two geometries.
* @param geometry1 First input geometry.
* @param geometry2 Second input geometry.
- * @param distanceUnit Units of the return value.
+ * @param distanceUnit Measurement unit of the return value.
*/
distance(geometry1: Geometry, geometry2: Geometry, distanceUnit: string | number): number;
/**
@@ -7545,27 +7598,34 @@ declare module "esri/geometry/geometryEngine" {
* @param geometry The geometry to be generalized.
* @param maxDeviation The maximum allowed deviation from the generalized geometry to the original geometry.
* @param removeDegenerateParts When true, the degenerate parts of the geometry will be removed from the output (may be undesired for drawing).
- * @param maxDeviationUnit A unit for maximum deviation.
+ * @param maxDeviationUnit Measurement unit for maxDeviation.
*/
generalize(geometry: Geometry, maxDeviation: number, removeDegenerateParts?: boolean, maxDeviationUnit?: string | number): Geometry;
/**
* Calculates the area of the input geometry.
* @param geometry The input geometry.
- * @param unit Units of the return value.
+ * @param unit Measurement unit of the return value.
*/
geodesicArea(geometry: Geometry, unit: string | number): number;
/**
* Creates geodesic buffer polygons at a specified distance around the input geometries.
* @param geometry The buffer input geometry.
* @param distance The specified distance(s) for buffering.
- * @param unit Unit for the distance(s).
+ * @param unit Measurement unit for the distance(s).
* @param unionResults Whether the output geometries should be unioned into a single polygon.
*/
geodesicBuffer(geometry: Geometry | Geometry[], distance: number | number[], unit: string | number, unionResults?: boolean): Polygon | Polygon[];
+ /**
+ * Returns a geodesically densified version of the input geometry.
+ * @param geometry A polyline or polygon geometry to densify.
+ * @param maxSegmentLength The maximum segment length allowed.
+ * @param maxSegmentLengthUnit Measurement unit for maxSegmentLength.
+ */
+ geodesicDensify(geometry: Polyline | Polygon, maxSegmentLength: number, maxSegmentLengthUnit?: number): Geometry;
/**
* Calculates the length of the input geometry.
* @param geometry The input geometry.
- * @param unit Units of the return value.
+ * @param unit Measurement unit of the return value.
*/
geodesicLength(geometry: Geometry, unit: string | number): number;
/**
@@ -7609,7 +7669,7 @@ declare module "esri/geometry/geometryEngine" {
* Creates offset version of the input geometry.
* @param geometry The geometries to offset.
* @param offsetDistance The offset distance for the Geometries.
- * @param offsetUnit Unit for the offset.
+ * @param offsetUnit Measurement unit for the offset.
* @param joinType The join type.
* @param bevelRatio Applicable to MITER, bevelRatio is multiplied by the offset distance and the result determines how far a mitered offset intersection can be located before it is beveled.
* @param flattenError Applicable to ROUND, flattenError determines the maximum distance of the resulting segments compared to the true circular arc.
@@ -7624,13 +7684,13 @@ declare module "esri/geometry/geometryEngine" {
/**
* Calculates the area of the input geometry.
* @param geometry The input geometry.
- * @param unit Units of the return value.
+ * @param unit Measurement unit of the return value.
*/
planarArea(geometry: Geometry, unit: string | number): number;
/**
* Calculates the length of the input geometry.
* @param geometry The input geometry.
- * @param unit Units of the return value.
+ * @param unit Measurement unit of the return value.
*/
planarLength(geometry: Geometry, unit: string | number): number;
/**
@@ -7685,14 +7745,15 @@ declare module "esri/geometry/geometryEngineAsync" {
import Polyline = require("esri/geometry/Polyline");
import SpatialReference = require("esri/SpatialReference");
import Point = require("esri/geometry/Point");
+ import Polygon = require("esri/geometry/Polygon");
- /** (Currently in beta) A client-side asynchronous geometry engine. */
+ /** A client-side asynchronous geometry engine. */
var geometryEngineAsync: {
/**
* Creates planar (or Euclidean) buffer polygons at a specified distance around the input geometries.
* @param geometry The buffer input geometry.
* @param distance The specified distance(s) for buffering.
- * @param unit Unit for the distance(s).
+ * @param unit Measurement unit for the distance(s).
* @param unionResults Whether the output geometries should be unioned into a single polygon.
*/
buffer(geometry: Geometry | Geometry[], distance: number | number[], unit: string | number, unionResults?: boolean): any;
@@ -7730,7 +7791,7 @@ declare module "esri/geometry/geometryEngineAsync" {
* Densify geometries by plotting points between existing vertices.
* @param geometry The geometry to be densified.
* @param maxSegmentLength The maximum segment length allowed.
- * @param maxSegmentLengthUnit Defaults to the units of the input geometries.
+ * @param maxSegmentLengthUnit Measurement unit for maxSegmentLength.
*/
densify(geometry: Geometry, maxSegmentLength: number, maxSegmentLengthUnit: string | number): any;
/**
@@ -7749,7 +7810,7 @@ declare module "esri/geometry/geometryEngineAsync" {
* Calculates the shortest planar distance between two geometries.
* @param geometry1 First input geometry.
* @param geometry2 Second input geometry.
- * @param distanceUnit Units of the return value.
+ * @param distanceUnit Measurement unit of the return value.
*/
distance(geometry1: Geometry, geometry2: Geometry, distanceUnit: string | number): any;
/**
@@ -7780,27 +7841,34 @@ declare module "esri/geometry/geometryEngineAsync" {
* @param geometry The geometry to be generalized.
* @param maxDeviation The maximum allowed deviation from the generalized geometry to the original geometry.
* @param removeDegenerateParts When true, the degenerate parts of the geometry will be removed from the output (may be undesired for drawing).
- * @param maxDeviationUnit Defaults to the units of the input geometries.
+ * @param maxDeviationUnit Measurement unit for maxDeviation.
*/
generalize(geometry: Geometry, maxDeviation: number, removeDegenerateParts?: boolean, maxDeviationUnit?: string | number): any;
/**
* Calculates the area of the input geometry.
* @param geometry The input geometry.
- * @param unit Units of the return value.
+ * @param unit Measurement unit of the return value.
*/
geodesicArea(geometry: Geometry, unit: string | number): any;
/**
* Creates geodesic buffer polygons at a specified distance around the input geometries.
* @param geometry The buffer input geometry.
* @param distance The specified distance(s) for buffering.
- * @param unit Unit for the distance(s).
+ * @param unit Measurement unit for the distance(s).
* @param unionResults Whether the output geometries should be unioned into a single polygon.
*/
geodesicBuffer(geometry: Geometry | Geometry[], distance: number | number[], unit: string | number, unionResults?: boolean): any;
+ /**
+ * Resolves to a geodesically densified version of the input geometry.
+ * @param geometry A polyline or polygon geometry to densify.
+ * @param maxSegmentLength The maximum segment length allowed.
+ * @param maxSegmentLengthUnit Measurement unit for maxSegmentLength.
+ */
+ geodesicDensify(geometry: Polyline | Polygon, maxSegmentLength: number, maxSegmentLengthUnit?: number): any;
/**
* Calculates the length of the input geometry.
* @param geometry The input geometry.
- * @param unit Units of the return value.
+ * @param unit Measurement unit of the return value.
*/
geodesicLength(geometry: Geometry, unit: string | number): any;
/**
@@ -7844,7 +7912,7 @@ declare module "esri/geometry/geometryEngineAsync" {
* Creates offset version of the input geometry.
* @param geometry The geometries to offset.
* @param offsetDistance The offset distance for the Geometries.
- * @param offsetUnit Unit for the offset.
+ * @param offsetUnit Measurement unit for the offset.
* @param joinType The join type.
* @param bevelRatio Applicable to MITER, bevelRatio is multiplied by the offset distance and the result determines how far a mitered offset intersection can be located before it is beveled.
* @param flattenError Applicable to ROUND, flattenError determines the maximum distance of the resulting segments compared to the true circular arc.
@@ -7859,13 +7927,13 @@ declare module "esri/geometry/geometryEngineAsync" {
/**
* Calculates the area of the input geometry.
* @param geometry The input geometry.
- * @param unit Units of the return value.
+ * @param unit Measurement unit of the return value.
*/
planarArea(geometry: Geometry, unit: string | number): any;
/**
* Calculates the length of the input geometry.
* @param geometry The input geometry.
- * @param unit Units of the return value.
+ * @param unit Measurement unit of the return value.
*/
planarLength(geometry: Geometry, unit: string | number): any;
/**
@@ -9219,7 +9287,7 @@ declare module "esri/layers/FeatureLayer" {
*/
setAutoGeneralize(enable: boolean): FeatureLayer;
/**
- * Set's the definition expression for the FeatureLayer.
+ * Sets the definition expression for the FeatureLayer.
* @param expression The definition expression to apply.
*/
setDefinitionExpression(expression: string): FeatureLayer;
@@ -9275,7 +9343,7 @@ declare module "esri/layers/FeatureLayer" {
*/
setScaleRange(minScale: number, maxScale: number): void;
/**
- * Set's the selection symbol for the feature layer.
+ * Sets the selection symbol for the feature layer.
* @param symbol Symbol for the current selection.
*/
setSelectionSymbol(symbol: Symbol): FeatureLayer;
@@ -9285,7 +9353,7 @@ declare module "esri/layers/FeatureLayer" {
*/
setShowLabels(showLabels: boolean): void;
/**
- * Set's the time definition for the feature layer.
+ * Sets the time definition for the feature layer.
* @param definition The new time extent used to filter the layer.
*/
setTimeDefinition(definition: TimeExtent): FeatureLayer;
@@ -9458,6 +9526,8 @@ declare module "esri/layers/GeoRSSLayer" {
items: Graphic[];
/** The name of the layer. */
name: string;
+ /** The publicly accessible URL to a GeoRSS file. */
+ url: string;
/**
* Creates a new GeoRSSLayer object.
* @param url URL to the GeoRSS resource.
@@ -9805,10 +9875,14 @@ declare module "esri/layers/LOD" {
declare module "esri/layers/LabelClass" {
import TextSymbol = require("esri/symbols/TextSymbol");
- /** LabelClass defines the styles of labels for ArcGISDynamicMapServiceLayer. */
+ /** Use label classes to restrict labels to certain features or to specify different label fields, symbols, scale ranges, label priorities, and sets of label placement options for different groups of labels. */
class LabelClass {
+ /** An array of objects representing field information to label. */
+ fieldInfos: any[];
/** Adjusts the formatting of labels. */
labelExpression: string;
+ /** Use this when working with FeatureLayer layer types. */
+ labelExpressionInfo: any;
/** The position of the label. */
labelPlacement: string;
/** The maximum scale to show labels. */
@@ -9824,7 +9898,7 @@ declare module "esri/layers/LabelClass" {
/** A where clause determining which features are labeled. */
where: string;
/**
- * Create a LabelClass, in order to be added to layerDrawingOption.labelingInfo.
+ * Creates a label class, used for formatting parameters, symbols, date, etc.
* @param json Various options to configure this LabelClass.
*/
constructor(json?: Object);
@@ -9840,7 +9914,7 @@ declare module "esri/layers/LabelLayer" {
import UniqueValueRenderer = require("esri/renderers/UniqueValueRenderer");
import ClassBreaksRenderer = require("esri/renderers/ClassBreaksRenderer");
- /** The LabelLayer inherits from the graphics layer and can be used to display texts and symbols on map. */
+ /** NOTE: Deprecated as of version 3.14, read below for additional information on the suggested method of labeling. */
class LabelLayer extends GraphicsLayer {
/**
* Creates a new Label layer.
@@ -10248,6 +10322,8 @@ declare module "esri/layers/RasterLayer" {
/** The RasterLayer is used to display image services. */
class RasterLayer extends Layer {
+ /** A function that takes a pixelData object as input, processes it, and returns it. */
+ pixelFilter: Function;
/**
* Creates a new RasterLayer object.
* @param url URL to the ArcGIS Server REST resource that represents a raster layer service.
@@ -10262,6 +10338,11 @@ declare module "esri/layers/RasterLayer" {
* @param doNotRefresh Use true to avoid refreshing the layer; false to refresh it.
*/
setImageFormat(imageFormat: string, doNotRefresh?: boolean): void;
+ /**
+ * Sets a pixelFilter on the layer.
+ * @param pixelFilter The function defining the PixelFilter to set on the layer.
+ */
+ setPixelFilter(pixelFilter: Function): void;
/**
* Determines if the layer will update its content based on the map's current time extent.
* @param use Use true to update the layer's content based on the map's current time extent.
@@ -10495,16 +10576,55 @@ declare module "esri/layers/TimeInfo" {
}
declare module "esri/layers/TimeReference" {
- /** TimeReference contains information about how the time was measured. */
+ /** TimeReference contains read-only information about how the time was captured when the data was created. */
class TimeReference {
- /** Indicates whether the time reference respects daylight savings time. */
+ /** A read-only property that indicates whether the time reference takes into account daylight savings time. */
respectsDaylightSaving: boolean;
- /** The time zone information associated with the time reference. */
+ /** The time zone in which the data was captured. */
timeZone: string;
}
export = TimeReference;
}
+declare module "esri/layers/VectorTileLayer" {
+ import esri = require("esri");
+ import Layer = require("esri/layers/layer");
+ import Extent = require("esri/geometry/Extent");
+ import SpatialReference = require("esri/SpatialReference");
+ import TileInfo = require("esri/layers/TileInfo");
+
+ /** A VectorTileLayer accesses cached tiles of data and renders it in vector format. */
+ class VectorTileLayer extends Layer {
+ /** The full extent of the layer. */
+ fullExtent: Extent;
+ /** The initial extent of the layer. */
+ initialExtent: Extent;
+ /** The spatial reference of the layer. */
+ spatialReference: SpatialReference;
+ /** The style object of the service with fully qualified URLs for glyphs and sprite. */
+ style: any;
+ /** Contains information about the tiling scheme for the layer. */
+ tileInfo: TileInfo;
+ /** The URL to the vector tile service or style JSON that will be used to draw the layer. */
+ url: string;
+ /**
+ * Create a new VectorTileLayer object.
+ * @param url The URL to the vector tile service or style JSON that will be used to draw the layer.
+ * @param options Optional parameters.
+ */
+ constructor(url: string | any, options?: esri.VectorTileLayerOptions);
+ /**
+ * Changes the style properties used to render the layers.
+ * @param styleUrl A url to a JSON file containing the stylesheet information to render the layer.
+ */
+ setStyle(styleUrl: string | any): void;
+ /** Fires when the style is changed on the layer. */
+ on(type: "style-change", listener: (event: { style: any; target: VectorTileLayer }) => void): esri.Handle;
+ on(type: string, listener: (event: any) => void): esri.Handle;
+ }
+ export = VectorTileLayer;
+}
+
declare module "esri/layers/WFSLayer" {
import esri = require("esri");
import Field = require("esri/layers/Field");
@@ -10513,7 +10633,7 @@ declare module "esri/layers/WFSLayer" {
import InfoTemplate = require("esri/InfoTemplate");
import Renderer = require("esri/renderers/Renderer");
- /** (Currently in beta)A layer for OGC Web Feature Services (WFS). */
+ /** (Currently in beta) A layer for OGC Web Feature Services (WFS). */
class WFSLayer {
/** An array of fields in the layer. */
fields: Field[];
@@ -11262,6 +11382,8 @@ declare module "esri/opsdashboard/DataSourceProxy" {
id: string;
/** Read-only: Indicates if the last query failed and the data source is in a broken state. */
isBroken: boolean;
+ /** Read-only: The mapWidgetId of the data source. */
+ mapWidgetId: string;
/** Read-only: The name of the data source. */
name: string;
/** Read-only: The name of the object id field. */
@@ -11279,6 +11401,8 @@ declare module "esri/opsdashboard/DataSourceProxy" {
* @param query The query object to apply.
*/
executeQuery(query: Query): any;
+ /** An object that contains service level metadata about whether or not the layer supports queries using statistics, order by fields, DISTINCT, pagination, query with distance, and returning queries with extents. */
+ getAdvancedQueryCapabilities(): any;
/** Retrieve the associated data source that supports selection. */
getAssociatedSelectionDataSourceProxy(): any;
/** Get the associated popupInfo for the data source if any available. */
@@ -11334,8 +11458,8 @@ declare module "esri/opsdashboard/ExtensionBase" {
static POLYLINE: any;
/** Read-only: Indicates if the host application is the Windows Operations Dashboard. */
isNative: boolean;
- /** Get the collection of data sources from the host application. */
- getDataSourceProxies(): any;
+ /** Read-only: The URL to the ArcGIS.com site or in-house portal that you are currently signed in to. */
+ portalUrl: string;
/** Get the collection of data sources from the host application. */
getDataSourceProxies(): any;
/** Get the data source corresponding to the data source id from the host application. */
@@ -11386,6 +11510,8 @@ declare module "esri/opsdashboard/ExtensionConfigurationBase" {
/** ExtensionConfigurationBase is a base class used by all the extension configuration proxies. */
class ExtensionConfigurationBase extends ExtensionBase {
+ /** The object that will store the Widget/MapTool/FeatureAction configuration. */
+ config: any;
/** Indicates that the configuration is ready to be persisted or not. */
readyToPersistConfig: boolean;
}
@@ -11467,10 +11593,10 @@ declare module "esri/opsdashboard/GraphicsLayerProxy" {
*/
addOrUpdateGraphic(graphic: Graphic): void;
/**
- * Update a graphic in the host graphics layer with a new version.
- * @param graphic The graphic to update in the host graphics layer.
+ * Update graphics in the host graphics layer with a new version.
+ * @param graphics The graphics to update in the host graphics layer.
*/
- addOrUpdateGraphics(graphic: Graphic): void;
+ addOrUpdateGraphics(graphics: Graphic[]): void;
/** Removes all the graphics from the host graphics layer. */
clear(): void;
/**
@@ -11625,8 +11751,6 @@ declare module "esri/opsdashboard/WidgetConfigurationProxy" {
/** WidgetConfigurationProxy is a class used to provide the configuration user experience for an operations dashboard extension widget. */
class WidgetConfigurationProxy extends ExtensionConfigurationBase {
- /** The object that will store the widget configuration. */
- config: any;
/**
* Called by the host application when the user has changed the selected data source in the data source selector.
* @param dataSourceProxy The selected data source.
@@ -11639,7 +11763,7 @@ declare module "esri/opsdashboard/WidgetConfigurationProxy" {
*/
getDataSourceConfig(dataSourceProxyOrDataSourceId: DataSourceProxy | string): any;
/**
- * Called by the host application when the user has changed the slected map widget in the map widget selector.
+ * Called by the host application when the user has changed the selected map widget in the map widget selector.
* @param mapWidgetProxy The selected map widget.
*/
mapWidgetSelectionChanged(mapWidgetProxy: MapWidgetProxy): void;
@@ -11897,7 +12021,7 @@ declare module "esri/renderers/BlendRenderer" {
import esri = require("esri");
import Symbol = require("esri/symbols/Symbol");
- /** (Currently in beta) BlendRenderer allows you to easily identify a predominant attribute among two or more competing attributes in a feature. */
+ /** (Currently in beta) BlendRenderer allows you to easily identify the predominant attribute among two or more competing attributes of a feature and visualizes the strength of that predominance using blended colors. */
class BlendRenderer {
/** This determines how colors are blended together. */
blendMode: string;
@@ -12129,7 +12253,7 @@ declare module "esri/renderers/Renderer" {
import Color = require("esri/Color");
import Symbol = require("esri/symbols/Symbol");
- /** The base class for the renderers - SimpleRenderer, ClassBreaksRenderer, UniqueValueRenderer, DotDensityRenderer, ScaleDependentRenderer, and TemporalRenderer used with a GraphicsLayer and FeatureLayer. */
+ /** The base class for the renderers - SimpleRenderer, ClassBreaksRenderer, UniqueValueRenderer, DotDensityRenderer, ScaleDependentRenderer, TemporalRenderer, HeatmapRenderer, and VectorFieldRenderer used with a GraphicsLayer and FeatureLayer. */
class Renderer {
/** An object defining a color ramp used to render the layer. */
colorInfo: any;
@@ -12188,11 +12312,14 @@ declare module "esri/renderers/Renderer" {
* @param info An object with the same properties as rotationInfo.
*/
setRotationInfo(info: any): Renderer;
- /** Set size info of the renderer to modify the symbol size based on data value. */
- setSizeInfo(): Renderer;
+ /**
+ * Set size info of the renderer to modify the symbol size based on data value.
+ * @param info An object with the same properties as sizeInfo.
+ */
+ setSizeInfo(info: any): Renderer;
/**
* Sets the renderer with the specified visualVariables.
- * @param visualParams The specified visualVariables.
+ * @param visualParams The specified visualVariables.
*/
setVisualVariables(visualParams: any[]): void;
/** Converts object to its ArcGIS Server JSON representation. */
@@ -12503,6 +12630,11 @@ declare module "esri/renderers/smartMapping" {
* @param params See the object specifications table below for the structure of the params object.
*/
createClassedSizeRenderer(params: any): any;
+ /**
+ * Creates an object defining a color ramp used to render a layer.
+ * @param params See the object specifications table below for the structure of the params object.
+ */
+ createColorInfo(params: any): any;
/**
* Creates a renderer for visualizing features using colors.
* @param params See the object specifications table below for the structure of the params object.
@@ -12518,6 +12650,16 @@ declare module "esri/renderers/smartMapping" {
* @param params See the object specifications table below for the structure of the params object.
*/
createOpacityInfo(params: any): any;
+ /**
+ * Creates a renderer for identifying features by their color.
+ * @param params See the Object Specifications table below for the structure of the params object.
+ */
+ createPredominanceRenderer(params: any): any;
+ /**
+ * Defines the size of the symbol where feature size is proportional to data value.
+ * @param params See the object specifications table below for the structure of the params object.
+ */
+ createSizeInfo(params: any): any;
/**
* Creates a renderer for visualizing features by varying their size based on data.
* @param params See the object specifications table below for the structure of the params object.
@@ -13113,6 +13255,10 @@ declare module "esri/symbols/TextSymbol" {
decoration: string;
/** Font for displaying text. */
font: Font;
+ /** The halo color used for the text symbol.Known limitations:IE 9 and below not supported.Sub-pixel halo (i.e. */
+ haloColor: Color;
+ /** The size (in pixel units) used if setting a halo on a text symbol.Known limitations:IE 9 and below not supported.Sub-pixel halo (i.e. */
+ haloSize: number;
/** Horizontal alignment of the text with respect to the graphic. */
horizontalAlignment: string;
/** Determines whether to adjust the spacing between characters in the text string. */
@@ -13164,6 +13310,16 @@ declare module "esri/symbols/TextSymbol" {
* @param font Text font.
*/
setFont(font: Font): TextSymbol;
+ /**
+ * Sets a halo color for the text symbol.NOTE: Known limitations when working with the text symbol halo:IE 9 and below not supported.Sub-pixel halo (i.e.
+ * @param color The color used for the text symbol halo.
+ */
+ setHaloColor(color: Color): TextSymbol;
+ /**
+ * Sets the size of the halo (in pixels) used for the text symbol.NOTE: Known limitations when working with the text symbol halo:IE 9 and below not supported.Sub-pixel halo (i.e.
+ * @param size The size (in pixels) of the text symbol halo.
+ */
+ setHaloSize(size: number): TextSymbol;
/**
* Updates the horizontal alignment of the text symbol.
* @param alignment Horizontal alignment of the text with respect to the graphic.
@@ -13658,6 +13814,8 @@ declare module "esri/tasks/FindParameters" {
contains: boolean;
/** An array of DynamicLayerInfos used to change the layer ordering or redefine the map. */
dynamicLayerInfos: DynamicLayerInfo[];
+ /** Specifies the number of decimal places for the geometries returned by the query operation. */
+ geometryPrecision: number;
/** Array of layer definition expressions that allows you to filter the features of individual layers. */
layerDefinitions: string[];
/** The layers to perform the find operation on. */
@@ -13731,26 +13889,26 @@ declare module "esri/tasks/FindTask" {
declare module "esri/tasks/GPMessage" {
/** Represents a message generated during the execution of a geoprocessing task. */
class GPMessage {
- /** esriJobMessageTypeAbort */
+ /** esriJobMessageTypeAbort - Indicates the job has aborted. */
static TYPE_ABORT: any;
- /** esriGPMessageTypeEmpty */
+ /** esriJobMessageTypeEmpty - Indicates the task returned an empty result. */
static TYPE_EMPTY: any;
- /** esriGPMessageTypeError */
+ /** esriJobMessageTypeError - Indicates an error was returned during the execution of the job. */
static TYPE_ERROR: any;
- /** esriGPMessageTypeInformative */
+ /** esriJobMessageTypeInformative - Indicates the message is informative. */
static TYPE_INFORMATIVE: any;
- /** TBA */
+ /** esriJobMessageTypeProcessDefinition */
static TYPE_PROCESS_DEFINITION: any;
- /** TBA */
+ /** esriJobMessageTypeProcessStart - Indicates the GP process has started. */
static TYPE_PROCESS_START: any;
- /** TBA */
+ /** esriJobMessageTypeProcessStop - Indicates the GP process has stopped. */
static TYPE_PROCESS_STOP: any;
- /** esriGPMessageTypeWarning */
+ /** esriJobMessageTypeWarning - Indicates the message is a warning. */
static TYPE_WARNING: any;
/** A description of the geoprocessing message. */
description: string;
/** The geoprocessing message type. */
- type: number;
+ type: string;
}
export = GPMessage;
}
@@ -14127,7 +14285,7 @@ declare module "esri/tasks/Geoprocessor" {
* @param callback The function to call when the method has completed.
* @param errback An error object is returned if an error occurs on the Server during task execution.
*/
- checkJobStatus(jobId: string, callback?: Function, errback?: Function): void;
+ checkJobStatus(jobId: string, callback?: Function, errback?: Function): any;
/**
* Sends a request to the server to execute a synchronous GP task.
* @param inputParameters The inputParameters argument specifies the input parameters accepted by the task and their corresponding values.
@@ -14187,7 +14345,7 @@ declare module "esri/tasks/Geoprocessor" {
* @param statusCallback Checks the current status of the job.
* @param errback An error object is returned if an error occurs on the Server during task execution.
*/
- submitJob(inputParameters: any, callback?: Function, statusCallback?: Function, errback?: Function): void;
+ submitJob(inputParameters: any, callback?: Function, statusCallback?: Function, errback?: Function): any;
/** Fires when an error occurs when executing the task. */
on(type: "error", listener: (event: { error: Error; target: Geoprocessor }) => void): esri.Handle;
/** Fires when a synchronous GP task is completed. */
@@ -14231,6 +14389,8 @@ declare module "esri/tasks/IdentifyParameters" {
dynamicLayerInfos: DynamicLayerInfo[];
/** The geometry used to select features during Identify. */
geometry: Geometry;
+ /** Specifies the number of decimal places for the geometries returned by the query operation. */
+ geometryPrecision: number;
/** Height of the map currently being viewed in pixels. */
height: number;
/** Array of layer definition expressions that allows you to filter the features of individual layers. */
@@ -14403,6 +14563,28 @@ declare module "esri/tasks/ImageServiceMeasureParameters" {
/** Defines parameters for the ImageServiceMeasureTask. */
class ImageServiceMeasureParameters {
+ /** Calculates the area and perimeter of given geometry. */
+ static OPERATION_AREA_PERIMETER: any;
+ /** Calculates the area and perimeter of the given geometry using the DEM defined by the service to refine the calculation. */
+ static OPERATION_AREA_PERIMETER_3D: any;
+ /** Calculates the height of a structure by measuring from the base of the structure to the top of the structure. */
+ static OPERATION_BASE_TOP: any;
+ /** Calculates the height of a structure by measuring from the base of the structure to the top of the structure's shadow on the ground. */
+ static OPERATION_BASE_TOP_SHADOW: any;
+ /** Calculates the centroid of a given area. */
+ static OPERATION_CENTROID: any;
+ /** Calculates the centroid of a given area, using the DEM defined by the service to refine the calculation. */
+ static OPERATION_CENTROID_3D: any;
+ /** Calculates the distance and azimuth angle between two points. */
+ static OPERATION_DISTANCE_ANGLE: any;
+ /** Calculates the distance and azimuth angle between two points using the DEM defined by the service to refine the calculation. */
+ static OPERATION_DISTANCE_ANGLE_3D: any;
+ /** Measures the location of a given point. */
+ static OPERATION_POINT: any;
+ /** Measures the location of a given point, using the DEM defined by the service to refine the calculation. */
+ static OPERATION_POINT_3D: any;
+ /** Calculates the height of a structure by measuring from the top of the structure to the top of the structure's shadow on the ground. */
+ static OPERATION_TOP_TOP_SHADOW: any;
/** The angular unit in which directions of line segments will be calculated. */
angularUnit: string;
/** The area unit in which areas of polygons will be calculated. */
@@ -14613,6 +14795,8 @@ declare module "esri/tasks/ParameterValue" {
class ParameterValue {
/** Specifies the type of data for the parameter. */
dataType: string;
+ /** The name of the output parameter as defined by the geoprocessing task in the Services Directory. */
+ paramName: string;
/** The value of the parameter. */
value: any;
}
@@ -14707,7 +14891,7 @@ declare module "esri/tasks/ProjectParameters" {
geometries: Geometry[];
/** The spatial reference to which you are projecting the geometries. */
outSR: SpatialReference;
- /** The well-known id {wkid:number} or well-known text {wkt:string} or for the datum transfomation to be applied on the projected geometries. */
+ /** The well-known id {wkid:number} or well-known text {wkt:string} or for the datum transformation to be applied on the projected geometries. */
transformation: any;
/** Indicates whether to transform forward or not. */
transformForward: boolean;
@@ -15331,6 +15515,8 @@ declare module "esri/tasks/datareviewer/BatchValidationTask" {
executeJob(parameters: BatchValidationParameters): any;
/** Retrieves all adhoc jobs from the server and returns an array of BatchValidationJob with the information. */
getAdhocJobsList(): any;
+ /** Returns an array of custom field names defined in a Reviewer workspace. */
+ getCustomFieldNames(): any;
/**
* Fetches Batch Validation Job details.
* @param jobId Job Id of the batch validation job.
@@ -15373,19 +15559,21 @@ declare module "esri/tasks/datareviewer/BatchValidationTask" {
/** Fires when the executeJob method is complete. */
on(type: "execute-job", listener: (event: { jobId: string; target: BatchValidationTask }) => void): esri.Handle;
/** Fires when the getAdhocJobsList method is complete. */
- on(type: "get-adhoc-jobs-list", listener: (event: { adhocJobs: any[]; target: BatchValidationTask }) => void): esri.Handle;
+ on(type: "get-adhoc-jobs-list", listener: (event: { adhocJobs: BatchValidationJob[]; target: BatchValidationTask }) => void): esri.Handle;
+ /** Fires when the getCustomFieldNames method is complete. */
+ on(type: "get-custom-field-names", listener: (event: { customFieldNames: string[]; target: BatchValidationTask }) => void): esri.Handle;
/** Fires when the getJobDetails method is complete. */
on(type: "get-job-details", listener: (event: { jobDetails: BatchValidationJob; target: BatchValidationTask }) => void): esri.Handle;
/** Fires when the getJobExecutionDetails method is complete. */
on(type: "get-job-execution-details", listener: (event: { jobInfo: BatchValidationJobInfo; target: BatchValidationTask }) => void): esri.Handle;
/** Fires when the getJobIds method is complete. */
- on(type: "get-job-ids", listener: (event: { adhocJobs: any[]; scheduledJobs: any[]; target: BatchValidationTask }) => void): esri.Handle;
+ on(type: "get-job-ids", listener: (event: { adhocJobs: string[]; scheduledJobs: string[]; target: BatchValidationTask }) => void): esri.Handle;
/** Fires when the getLifecycleStatusStrings method is complete. */
- on(type: "get-lifecycle-status-strings", listener: (event: { lifecycleStatusStrings: any[]; target: BatchValidationTask }) => void): esri.Handle;
+ on(type: "get-lifecycle-status-strings", listener: (event: { lifecycleStatusStrings: string[]; target: BatchValidationTask }) => void): esri.Handle;
/** Fires when the getReviewerSessions method is complete. */
- on(type: "get-reviewer-sessions", listener: (event: { reviewerSessions: any[]; target: BatchValidationTask }) => void): esri.Handle;
+ on(type: "get-reviewer-sessions", listener: (event: { reviewerSessions: ReviewerSession[]; target: BatchValidationTask }) => void): esri.Handle;
/** Fires when the getScheduledJobsList method is complete. */
- on(type: "get-scheduled-jobs-list", listener: (event: { scheduledJobs: any[]; target: BatchValidationTask }) => void): esri.Handle;
+ on(type: "get-scheduled-jobs-list", listener: (event: { scheduledJobs: BatchValidationJob[]; target: BatchValidationTask }) => void): esri.Handle;
/** Fires when the scheduleJob method is complete. */
on(type: "schedule-job", listener: (event: { jobId: string; target: BatchValidationTask }) => void): esri.Handle;
on(type: string, listener: (event: any) => void): esri.Handle;
@@ -15435,6 +15623,8 @@ declare module "esri/tasks/datareviewer/DashboardTask" {
* @param sessionOptions Session properties to be used to create the session.
*/
createReviewerSession(sessionName: string, sessionOptions: SessionOptions): any;
+ /** Returns an array of custom field names defined in a Reviewer workspace. */
+ getCustomFieldNames(): any;
/** Requests Dashboard results field names. */
getDashboardFieldNames(): any;
/**
@@ -15453,14 +15643,16 @@ declare module "esri/tasks/datareviewer/DashboardTask" {
on(type: "create-reviewer-sessions", listener: (event: { reviewerSession: ReviewerSession; target: DashboardTask }) => void): esri.Handle;
/** Fires when an error occurs during a DashboardTask method execution. */
on(type: "error", listener: (event: { error: Error; target: DashboardTask }) => void): esri.Handle;
+ /** Fires when the getCustomFieldNames method is complete. */
+ on(type: "get-custom-field-names", listener: (event: { customFieldNames: string[]; target: DashboardTask }) => void): esri.Handle;
/** Fires when the getDashboardFieldNames method is complete. */
- on(type: "get-dashboard-field-names", listener: (event: { fieldNames: any[]; target: DashboardTask }) => void): esri.Handle;
+ on(type: "get-dashboard-field-names", listener: (event: { fieldNames: string[]; target: DashboardTask }) => void): esri.Handle;
/** Fires when the getDashboardResults method is complete. */
on(type: "get-dashboard-results", listener: (event: { dashboardResult: DashboardResult; target: DashboardTask }) => void): esri.Handle;
/** Fires when the getLifecycleStatusStrings method is complete. */
- on(type: "get-lifecycle-status-strings", listener: (event: { lifecycleStatusStrings: any[]; target: DashboardTask }) => void): esri.Handle;
+ on(type: "get-lifecycle-status-strings", listener: (event: { lifecycleStatusStrings: string[]; target: DashboardTask }) => void): esri.Handle;
/** Fires when the getReviewerSessions method is complete. */
- on(type: "get-reviewer-sessions", listener: (event: { reviewerSessions: any[]; target: DashboardTask }) => void): esri.Handle;
+ on(type: "get-reviewer-sessions", listener: (event: { reviewerSessions: ReviewerSession[]; target: DashboardTask }) => void): esri.Handle;
on(type: string, listener: (event: any) => void): esri.Handle;
}
export = DashboardTask;
@@ -15542,8 +15734,8 @@ declare module "esri/tasks/datareviewer/ReviewerFilters" {
}
declare module "esri/tasks/datareviewer/ReviewerLifecycle" {
- /** The ReviewerLifecycle class specifies constant values for all lifecycle status and lifecycle phase strings within the Reviewer quality control workflow. */
- class ReviewerLifecycle {
+ /** The ReviewerLifecycle object specifies constant values for all lifecycle status and lifecycle phase strings within the Reviewer quality control workflow. */
+ var ReviewerLifecycle: {
/** Acceptable lifecycleStatus code = 4 belongs to Verification Phase. */
ACCEPTABLE: number;
/** Code for Correction Phase. */
@@ -15600,7 +15792,7 @@ declare module "esri/tasks/datareviewer/ReviewerLifecycle" {
* @param lifecycleStatus The lifecycle status code.
*/
toLifecycleStatusString(lifecycleStatus: number): string;
- }
+ };
export = ReviewerLifecycle;
}
@@ -15614,6 +15806,7 @@ declare module "esri/tasks/datareviewer/ReviewerResultsTask" {
import Geometry = require("esri/geometry/Geometry");
import ReviewerSession = require("esri/tasks/datareviewer/ReviewerSession");
import FeatureSet = require("esri/tasks/FeatureSet");
+ import FeatureEditResult = require("esri/layers/FeatureEditResult");
/** ReviewerResults allows access to the reviewer workspace. */
class ReviewerResultsTask {
@@ -15633,6 +15826,8 @@ declare module "esri/tasks/datareviewer/ReviewerResultsTask" {
* @param batchRunIds Array of batchRunIds used to get batch run details.
*/
getBatchRunDetails(batchRunIds: any[]): any;
+ /** Returns an array of custom field names defined in a Reviewer workspace. */
+ getCustomFieldNames(): any;
/**
* Utility operation that returns a where clause given a set of input filters.
* @param filters An instance of ReviewerFilters used to create a layer definition.
@@ -15646,8 +15841,10 @@ declare module "esri/tasks/datareviewer/ReviewerResultsTask" {
* @param filters Instance of ReviewerFilters used to query reviewer results.
*/
getResults(getResultsQueryParameters: GetResultsQueryParameters, filters?: ReviewerFilters): any;
+ /** Retrieves a list of field names that can be used to fetch or query results from reviewer workspace. */
+ getResultsFieldNames(): string[];
/** Extracts the MapServer url from the full ArcGIS Data Reviewer for Server SOE url. */
- getReviewerMapServerUrl(): any;
+ getReviewerMapServerUrl(): string;
/** Returns an array of sessions in a Reviewer workspace. */
getReviewerSessions(): any;
/**
@@ -15676,16 +15873,18 @@ declare module "esri/tasks/datareviewer/ReviewerResultsTask" {
on(type: "error", listener: (event: { error: Error; target: ReviewerResultsTask }) => void): esri.Handle;
/** Fires when the getBatchRunDetails method is complete. */
on(type: "get-batch-run-details", listener: (event: { featureSet: FeatureSet; target: ReviewerResultsTask }) => void): esri.Handle;
+ /** Fires when the getCustomFieldNames method is complete. */
+ on(type: "get-custom-field-names", listener: (event: { customFieldNames: string[]; target: ReviewerResultsTask }) => void): esri.Handle;
/** Fires when the getLayerDefinition method is complete. */
on(type: "get-layer-definition", listener: (event: { whereClause: string; target: ReviewerResultsTask }) => void): esri.Handle;
/** Fires when the getLifecycleStatusStrings method is complete. */
- on(type: "get-lifecycle-status-strings", listener: (event: { lifecycleStatusStrings: any[]; target: ReviewerResultsTask }) => void): esri.Handle;
+ on(type: "get-lifecycle-status-strings", listener: (event: { lifecycleStatusStrings: string[]; target: ReviewerResultsTask }) => void): esri.Handle;
/** Fires when the getResults method is complete. */
on(type: "get-results", listener: (event: { featureSet: FeatureSet; target: ReviewerResultsTask }) => void): esri.Handle;
/** Fires when the getReviewerSessions method is complete. */
- on(type: "get-reviewer-sessions", listener: (event: { reviewerSessions: any[]; target: ReviewerResultsTask }) => void): esri.Handle;
+ on(type: "get-reviewer-sessions", listener: (event: { reviewerSessions: ReviewerSession[]; target: ReviewerResultsTask }) => void): esri.Handle;
/** Fires when the updateLifecycleStatus method is complete. */
- on(type: "update-lifecycle-status", listener: (event: { featureEditResults: any[]; target: ReviewerResultsTask }) => void): esri.Handle;
+ on(type: "update-lifecycle-status", listener: (event: { featureEditResults: FeatureEditResult[]; target: ReviewerResultsTask }) => void): esri.Handle;
/** Fires when the writeFeatureAsResult method is complete. */
on(type: "write-feature-as-result", listener: (event: { success: boolean; target: ReviewerResultsTask }) => void): esri.Handle;
/** Fires when the writeResult method is complete. */
diff --git a/auth0.lock/auth0.lock.d.ts b/auth0.lock/auth0.lock.d.ts
index bef269dbc..3269103ab 100644
--- a/auth0.lock/auth0.lock.d.ts
+++ b/auth0.lock/auth0.lock.d.ts
@@ -72,6 +72,8 @@ interface Auth0LockStatic {
hide(callback: () => void): void;
logout(callback: () => void): void;
+
+ getClient(): Auth0Static;
}
declare var Auth0Lock: Auth0LockStatic;
diff --git a/aws-sdk/aws-sdk-tests.ts.tscparams b/aws-sdk/aws-sdk-tests.ts.tscparams
deleted file mode 100644
index 70401a77e..000000000
--- a/aws-sdk/aws-sdk-tests.ts.tscparams
+++ /dev/null
@@ -1 +0,0 @@
---noImplicitAny --module commonjs --target es5
\ No newline at end of file
diff --git a/backbone.localstorage/backbone.localstorage-tests.ts b/backbone.localstorage/backbone.localstorage-tests.ts
new file mode 100644
index 000000000..0d44897a8
--- /dev/null
+++ b/backbone.localstorage/backbone.localstorage-tests.ts
@@ -0,0 +1,6 @@
+///
+
+var store: Store = new Store('testStore');
+store.findAll();
+
+store.save();
diff --git a/backbone.localstorage/backbone.localstorage.d.ts b/backbone.localstorage/backbone.localstorage.d.ts
new file mode 100644
index 000000000..122c47587
--- /dev/null
+++ b/backbone.localstorage/backbone.localstorage.d.ts
@@ -0,0 +1,51 @@
+// Type definitions for backbone.localStorage 1.0.0
+// Project: https://github.com/jeromegn/Backbone.localStorage
+// Definitions by: Louis Grignon
+// Definitions: https://github.com/borisyankov/DefinitelyTyped
+
+///
+
+declare module Backbone {
+ interface Serializer {
+ serialize(item: any): any;
+ deserialize(data: any): any;
+ }
+
+ class LocalStorage {
+ name: string;
+ serializer: Serializer;
+ records: string[];
+
+ constructor(name: string, serializer?: Serializer);
+
+ save(): void;
+
+ // Add a model, giving it a (hopefully)-unique GUID, if it doesn't already
+ // have an id of it's own.
+ create(model: any): any;
+
+ // Update a model by replacing its copy in `this.data`.
+ update(model: any): any;
+
+ // Retrieve a model from `this.data` by id.
+ find(model: any): any;
+
+ // Return the array of all models currently in storage.
+ findAll(): any;
+
+ // Delete a model from `this.data`, returning it.
+ destroy(model: T): T;
+
+ localStorage(): any;
+
+ // Clear localStorage for specific collection.
+ _clear(): void;
+
+ _storageSize(): number;
+
+ _itemName(id: any): string;
+ }
+}
+
+import Store = Backbone.LocalStorage;
+
diff --git a/backbone/backbone-global.d.ts b/backbone/backbone-global.d.ts
index 764aa83d7..c16e1a59e 100644
--- a/backbone/backbone-global.d.ts
+++ b/backbone/backbone-global.d.ts
@@ -43,6 +43,7 @@ declare module Backbone {
interface PersistenceOptions {
url?: string;
+ data?: any;
beforeSend?: (jqxhr: JQueryXHR) => void;
success?: (modelOrCollection?: any, response?: any, options?: any) => void;
error?: (modelOrCollection?: any, jqxhr?: JQueryXHR, options?: any) => void;
diff --git a/bcrypt-nodejs/bcrypt-nodejs-tests.ts b/bcrypt-nodejs/bcrypt-nodejs-tests.ts
new file mode 100644
index 000000000..2a151c1c7
--- /dev/null
+++ b/bcrypt-nodejs/bcrypt-nodejs-tests.ts
@@ -0,0 +1,30 @@
+///
+
+import bCrypt = require("bcrypt-nodejs");
+
+function test_sync() {
+ var salt1 = bCrypt.genSaltSync();
+ var salt2 = bCrypt.genSaltSync(8);
+
+ var hash1 = bCrypt.hashSync('super secret');
+ var hash2 = bCrypt.hashSync('super secret', salt1);
+
+ var compare1 = bCrypt.compareSync('super secret', hash1);
+
+ var rounds1 = bCrypt.getRounds(hash2);
+}
+
+function test_async() {
+ var cbString = (error: Error, result: string) => {};
+ var cbVoid = () => {};
+ var cbBoolean = (error: Error, result: boolean) => {};
+
+ bCrypt.genSalt(8, cbString);
+
+ var salt = bCrypt.genSaltSync();
+ bCrypt.hash('super secret', salt, cbString);
+ bCrypt.hash('super secret', salt, cbVoid, cbString);
+
+ var hash = bCrypt.hashSync('super secret');
+ bCrypt.compare('super secret', hash, cbBoolean);
+}
\ No newline at end of file
diff --git a/bcrypt-nodejs/bcrypt-nodejs.d.ts b/bcrypt-nodejs/bcrypt-nodejs.d.ts
new file mode 100644
index 000000000..32b735d68
--- /dev/null
+++ b/bcrypt-nodejs/bcrypt-nodejs.d.ts
@@ -0,0 +1,68 @@
+// Type definitions for bcrypt-nodejs
+// Project: https://github.com/shaneGirish/bcrypt-nodejs
+// Definitions by: David Broder-Rodgers
+// Definitions: https://github.com/borisyankov/DefinitelyTyped
+
+declare module "bcrypt-nodejs" {
+ /**
+ * Generate a salt synchronously
+ * @param rounds Number of rounds to process the data for (default - 10)
+ * @return Generated salt
+ */
+ export function genSaltSync(rounds?: number): string;
+
+ /**
+ * Generate a salt asynchronously
+ * @param rounds Number of rounds to process the data for (default - 10)
+ * @param callback Callback with error and resulting salt, to be fired once the salt has been generated
+ */
+ export function genSalt(rounds: number, callback: (error: Error, result: string) => void): void;
+
+ /**
+ * Generate a hash synchronously
+ * @param data Data to be encrypted
+ * @param salt Salt to be used in encryption (default - new salt generated with 10 rounds)
+ * @return Generated hash
+ */
+ export function hashSync(data: string, salt?: string): string;
+
+ /**
+ * Generate a hash asynchronously
+ * @param data Data to be encrypted
+ * @param salt Salt to be used in encryption
+ * @param callback Callback with error and hashed result, to be fired once the data has been encrypted
+ */
+ export function hash(data: string, salt: string, callback: (error: Error, result: string) => void): void;
+
+ /**
+ * Generate a hash asynchronously
+ * @param data Data to be encrypted
+ * @param salt Salt to be used in encryption
+ * @param progressCallback Callback to be fired multiple times during the hash calculation to signify progress
+ * @param callback Callback with error and hashed result, to be fired once the data has been encrypted
+ */
+ export function hash(data: string, salt: string, progressCallback: () => void, callback: (error: Error, result: string) => void): void;
+
+ /**
+ * Compares data with a hash synchronously
+ * @param data Data to be compared
+ * @param hash Hash to be compared to
+ * @return true if matching, false otherwise
+ */
+ export function compareSync(data: string, hash: string): boolean;
+
+ /**
+ * Compares data with a hash asynchronously
+ * @param data Data to be compared
+ * @param hash Hash to be compared to
+ * @param callback Callback with error and match result, to be fired once the data has been compared
+ */
+ export function compare(data: string, hash: string, callback: (error: Error, result: boolean) => void): void;
+
+ /**
+ * Get number of rounds used for hash
+ * @param hash Hash from which the number of rounds used should be extracted
+ * @return number of rounds used to encrypt a given hash
+ */
+ export function getRounds(hash: string): number;
+}
diff --git a/bcryptjs/bcryptjs-tests.ts b/bcryptjs/bcryptjs-tests.ts
new file mode 100644
index 000000000..acfc48e43
--- /dev/null
+++ b/bcryptjs/bcryptjs-tests.ts
@@ -0,0 +1,54 @@
+///
+
+import bcryptjs = require("bcryptjs");
+
+let str: string;
+let num: number;
+let bool: boolean;
+
+str = bcryptjs.genSaltSync();
+str = bcryptjs.genSaltSync(10);
+
+bcryptjs.genSalt((err: Error, salt: string) => {
+ str = salt;
+});
+bcryptjs.genSalt(10, (err: Error, salt: string) => {
+ str = salt;
+});
+
+str = bcryptjs.hashSync("string");
+str = bcryptjs.hashSync("string", 10);
+str = bcryptjs.hashSync("string", "salt");
+
+bcryptjs.hash("string", 10, (err: Error, hash: string) => {
+ str = hash;
+});
+bcryptjs.hash("string", 10, (err: Error, hash: string) => {
+ str = hash;
+}, (percent: number) => {
+ num = percent;
+});
+
+bcryptjs.hash("string", "salt", (err: Error, hash: string) => {
+ str = hash;
+});
+bcryptjs.hash("string", "salt", (err: Error, hash: string) => {
+ str = hash;
+}, (percent: number) => {
+ num = percent;
+});
+
+bool = bcryptjs.compareSync("string1", "string2");
+
+bcryptjs.compare("string1", "string2", (err: Error, success: boolean) => {
+ bool = success;
+});
+bcryptjs.compare("string1", "string2", (err: Error, success: boolean) => {
+ bool = success;
+}, (percent: number) => {
+ num = percent;
+});
+
+num = bcryptjs.getRounds("string");
+
+str = bcryptjs.getSalt("string");
diff --git a/bcryptjs/bcryptjs.d.ts b/bcryptjs/bcryptjs.d.ts
new file mode 100644
index 000000000..3d3128d02
--- /dev/null
+++ b/bcryptjs/bcryptjs.d.ts
@@ -0,0 +1,82 @@
+// Type definitions for bcryptjs v2.3.0
+// Project: https://github.com/dcodeIO/bcrypt.js
+// Definitions by: Joshua Filby
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+declare module "bcryptjs" {
+
+ /**
+ * Sets the pseudo random number generator to use as a fallback if neither node's crypto module nor the Web Crypto API is available.
+ * Please note: It is highly important that the PRNG used is cryptographically secure and that it is seeded properly!
+ * @param random Function taking the number of bytes to generate as its sole argument, returning the corresponding array of cryptographically secure random byte values.
+ */
+ export function setRandomFallback(random: (random: number) => number[]): void;
+
+ /**
+ * Synchronously generates a salt.
+ * @param rounds Number of rounds to use, defaults to 10 if omitted
+ * @return Resulting salt
+ */
+ export function genSaltSync(rounds?: number): string;
+
+ /**
+ * Asynchronously generates a salt.
+ * @param callback Callback receiving the error, if any, and the resulting salt
+ */
+ export function genSalt(callback: (err: Error, salt: string) => void): void;
+
+ /**
+ * Asynchronously generates a salt.
+ * @param rounds Number of rounds to use, defaults to 10 if omitted
+ * @param callback Callback receiving the error, if any, and the resulting salt
+ */
+ export function genSalt(rounds: number, callback: (err: Error, salt: string) => void): void;
+
+ /**
+ * Synchronously generates a hash for the given string.
+ * @param s String to hash
+ * @param salt Salt length to generate or salt to use, default to 10
+ * @return Resulting hash
+ */
+ export function hashSync(s: string, salt?: number | string): string;
+
+ /**
+ * Asynchronously generates a hash for the given string.
+ * @param s String to hash
+ * @param salt Salt length to generate or salt to use
+ * @param callback Callback receiving the error, if any, and the resulting hash
+ * @param progressCallback Callback successively called with the percentage of rounds completed (0.0 - 1.0), maximally once per MAX_EXECUTION_TIME = 100 ms.
+ */
+ export function hash(s: string, salt: number | string, callback: (err: Error, hash: string) => void, progressCallback?: (percent: number) => void): void;
+
+ /**
+ * Synchronously tests a string against a hash.
+ * @param s String to compare
+ * @param hash Hash to test against
+ * @return true if matching, otherwise false
+ */
+ export function compareSync(s: string, hash: string): boolean;
+
+ /**
+ * Asynchronously compares the given data against the given hash.
+ * @param s Data to compare
+ * @param hash Data to be compared to
+ * @param callback Callback receiving the error, if any, otherwise the result
+ * @param progressCallback Callback successively called with the percentage of rounds completed (0.0 - 1.0), maximally once per MAX_EXECUTION_TIME = 100 ms.
+ */
+ export function compare(s: string, hash: string, callback: (err: Error, success: boolean) => void, progressCallback?: (percent: number) => void): void;
+
+ /**
+ * Gets the number of rounds used to encrypt the specified hash.
+ * @param hash Hash to extract the used number of rounds from
+ * @return Number of rounds used
+ */
+ export function getRounds(hash: string): number;
+
+ /**
+ * Gets the salt portion from a hash. Does not validate the hash.
+ * @param hash Hash to extract the salt from
+ * @return Extracted salt part
+ */
+ export function getSalt(hash: string): string;
+}
diff --git a/bezier-easing/bezier-easing-tests.ts b/bezier-easing/bezier-easing-tests.ts
new file mode 100644
index 000000000..eab1fb4f1
--- /dev/null
+++ b/bezier-easing/bezier-easing-tests.ts
@@ -0,0 +1,21 @@
+///
+
+function test_create_from_array() {
+ let easing: BezierEasing = BezierEasing([0, 0, 1, 0.5]);
+}
+
+function test_create_from_params() {
+ let easing: BezierEasing = BezierEasing(0, 0, 1, 0.5);
+}
+
+function test_create_from_builtins() {
+ let easing: BezierEasing = BezierEasing.css['ease-in'];
+}
+
+function test_methods() {
+ let easing: BezierEasing = BezierEasing.css['ease-in'];
+ let easedRatio: number = easing.get(0.5);
+ let points: Array = easing.getPoints();
+ let stringified: string = easing.toString();
+ let asCSS: string = easing.toCSS();
+}
diff --git a/bezier-easing/bezier-easing.d.ts b/bezier-easing/bezier-easing.d.ts
new file mode 100644
index 000000000..695368e7a
--- /dev/null
+++ b/bezier-easing/bezier-easing.d.ts
@@ -0,0 +1,24 @@
+// Type definitions for bezier-easing
+// Project: https://github.com/gre/bezier-easing
+// Definitions by: brian ridley
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+declare interface BezierEasing {
+ get(ratio: number): number;
+ getPoints(): Array;
+ toString(): string;
+ toCSS(): string;
+}
+
+declare function BezierEasing(points: Array): BezierEasing;
+declare function BezierEasing(a: number, b: number, c: number, d: number): BezierEasing;
+
+declare namespace BezierEasing {
+ let css: {
+ 'ease': BezierEasing,
+ 'linear': BezierEasing,
+ 'ease-in': BezierEasing,
+ 'ease-out': BezierEasing,
+ 'ease-in-out': BezierEasing
+ };
+}
diff --git a/big.js/big.js.d.ts b/big.js/big.js.d.ts
index d4ca239e3..2ad360a56 100644
--- a/big.js/big.js.d.ts
+++ b/big.js/big.js.d.ts
@@ -200,4 +200,9 @@ declare module BigJsLibrary {
}
}
+declare module "big.js" {
+ var bigjs : BigJsLibrary.BigJS;
+ export = bigjs;
+}
+
declare var Big: BigJsLibrary.BigJS;
diff --git a/blue-tape/blue-tape-tests.ts b/blue-tape/blue-tape-tests.ts
new file mode 100644
index 000000000..a01675a1c
--- /dev/null
+++ b/blue-tape/blue-tape-tests.ts
@@ -0,0 +1,170 @@
+///
+///
+///
+
+import tape = require('blue-tape');
+import P = require('bluebird');
+
+var name: string;
+var cb: tape.TestCase;
+var opts: tape.TestOptions;
+var t: tape.Test;
+
+tape(cb);
+tape(name, cb);
+tape(opts, cb);
+tape(name, opts, cb);
+
+tape(name, (test: tape.Test) => {
+ t = test;
+});
+
+tape.skip(name, cb);
+tape.only(name, cb);
+
+
+var sopts: tape.StreamOptions;
+var rs: NodeJS.ReadableStream;
+rs = tape.createStream();
+rs = tape.createStream(sopts);
+
+
+var htest: typeof tape;
+htest = tape.createHarness();
+
+
+tape(name, (test: tape.Test) => {
+ var num: number;
+ var ms: number;
+ var value: any;
+ var actual: any;
+ var expected: any;
+ var err: any;
+ var fn = function() {};
+ var msg: string;
+
+ var exceptionExpected: RegExp | (() => void);
+
+ test.plan(num);
+ test.end();
+ test.end(err);
+
+ test.fail(msg);
+ test.pass(msg);
+ test.timeoutAfter(ms);
+ test.skip(msg);
+
+ test.ok(value);
+ test.ok(value, msg);
+ test.true(value);
+ test.true(value, msg);
+ test.assert(value);
+ test.assert(value, msg);
+
+ test.notOk(value);
+ test.notOk(value, msg);
+ test.false(value);
+ test.false(value, msg);
+ test.notok(value);
+ test.notok(value, msg);
+
+ test.error(err, msg);
+ test.ifError(err, msg);
+ test.ifErr(err, msg);
+ test.iferror(err, msg);
+
+ test.equal(actual, expected);
+ test.equal(actual, expected, msg);
+ test.equals(actual, expected);
+ test.equals(actual, expected, msg);
+ test.isEqual(actual, expected);
+ test.isEqual(actual, expected, msg);
+ test.is(actual, expected);
+ test.is(actual, expected, msg);
+ test.strictEqual(actual, expected);
+ test.strictEqual(actual, expected, msg);
+ test.strictEquals(actual, expected);
+ test.strictEquals(actual, expected, msg);
+
+ test.notEqual(actual, expected);
+ test.notEqual(actual, expected, msg);
+ test.notEquals(actual, expected);
+ test.notEquals(actual, expected, msg);
+ test.notStrictEqual(actual, expected);
+ test.notStrictEqual(actual, expected, msg);
+ test.notStrictEquals(actual, expected);
+ test.notStrictEquals(actual, expected, msg);
+ test.isNotEqual(actual, expected);
+ test.isNotEqual(actual, expected, msg);
+ test.isNot(actual, expected);
+ test.isNot(actual, expected, msg);
+ test.not(actual, expected);
+ test.not(actual, expected, msg);
+ test.doesNotEqual(actual, expected);
+ test.doesNotEqual(actual, expected, msg);
+ test.isInequal(actual, expected);
+ test.isInequal(actual, expected, msg);
+
+ test.deepEqual(actual, expected);
+ test.deepEqual(actual, expected, msg);
+ test.deepEquals(actual, expected);
+ test.deepEquals(actual, expected, msg);
+ test.isEquivalent(actual, expected);
+ test.isEquivalent(actual, expected, msg);
+ test.same(actual, expected);
+ test.same(actual, expected, msg);
+
+ test.notDeepEqual(actual, expected);
+ test.notDeepEqual(actual, expected, msg);
+ test.notEquivalent(actual, expected);
+ test.notEquivalent(actual, expected, msg);
+ test.notDeeply(actual, expected);
+ test.notDeeply(actual, expected, msg);
+ test.notSame(actual, expected);
+ test.notSame(actual, expected, msg);
+ test.isNotDeepEqual(actual, expected);
+ test.isNotDeepEqual(actual, expected, msg);
+ test.isNotDeeply(actual, expected);
+ test.isNotDeeply(actual, expected, msg);
+ test.isNotEquivalent(actual, expected);
+ test.isNotEquivalent(actual, expected, msg);
+ test.isInequivalent(actual, expected);
+ test.isInequivalent(actual, expected, msg);
+
+ test.deepLooseEqual(actual, expected);
+ test.deepLooseEqual(actual, expected, msg);
+ test.looseEqual(actual, expected);
+ test.looseEqual(actual, expected, msg);
+ test.looseEquals(actual, expected);
+ test.looseEquals(actual, expected, msg);
+
+ test.notDeepLooseEqual(actual, expected);
+ test.notDeepLooseEqual(actual, expected, msg);
+ test.notLooseEqual(actual, expected);
+ test.notLooseEqual(actual, expected, msg);
+ test.notLooseEquals(actual, expected);
+ test.notLooseEquals(actual, expected, msg);
+
+ test.throws(fn);
+ test.throws(fn, msg);
+ test.throws(fn, exceptionExpected);
+ test.throws(fn, exceptionExpected, msg);
+
+ test.doesNotThrow(fn);
+ test.doesNotThrow(fn, msg);
+ test.doesNotThrow(fn, exceptionExpected);
+ test.doesNotThrow(fn, exceptionExpected, msg);
+
+ test.test(name, (st) => {
+ t = st;
+ });
+
+ test.comment(msg);
+});
+
+tape('simple delay', (test) => P.delay(1));
+
+tape('nested tests with promises', function(test) {
+ test.test('delay1', () => P.delay(1) );
+ test.test('delay2', () => P.delay(1) );
+});
diff --git a/blue-tape/blue-tape.d.ts b/blue-tape/blue-tape.d.ts
new file mode 100644
index 000000000..50bf0aab8
--- /dev/null
+++ b/blue-tape/blue-tape.d.ts
@@ -0,0 +1,12 @@
+// Type definitions for blue-tape v0.1.11
+// Project: https://github.com/spion/blue-tape
+// Definitions by: Haoqun Jiang
+// Definitions: https://github.com/borisyankov/DefinitelyTyped
+
+///
+///
+
+declare module 'blue-tape' {
+ import tape = require('tape');
+ export = tape;
+}
diff --git a/bluebird/bluebird-1.0.d.ts b/bluebird/bluebird-1.0.d.ts
index db9dd0dd2..b8287e57c 100644
--- a/bluebird/bluebird-1.0.d.ts
+++ b/bluebird/bluebird-1.0.d.ts
@@ -394,7 +394,7 @@ declare class Promise implements Promise.Thenable {
* Note that the original methods on the object are not overwritten but new methods are created with the `Async`-postfix. For example, if you `promisifyAll()` the node.js `fs` object use `fs.statAsync()` to call the promisified `stat` method.
*/
// TODO how to model promisifyAll?
- static promisifyAll(target: Object): Object;
+ static promisifyAll(target: Object): any;
/**
* Returns a function that can use `yield` to run asynchronous code synchronously. This feature requires the support of generators which are drafted in the next version of the language. Node version greater than `0.11.2` is required and needs to be executed with the `--harmony-generators` (or `--harmony`) command-line switch.
diff --git a/bluebird/bluebird-tests.ts b/bluebird/bluebird-tests.ts
index bd4f46fc4..278b1d229 100644
--- a/bluebird/bluebird-tests.ts
+++ b/bluebird/bluebird-tests.ts
@@ -85,15 +85,15 @@ var bazProm: Promise;
// - - - - - - - - - - - - - - - - -
-var numThen: Promise.Thenable;
-var strThen: Promise.Thenable;
-var anyThen: Promise.Thenable;
-var boolThen: Promise.Thenable;
-var objThen: Promise.Thenable