diff --git a/3d-bin-packing/index.d.ts b/3d-bin-packing/index.d.ts
index 2461538194..14bee6745e 100644
--- a/3d-bin-packing/index.d.ts
+++ b/3d-bin-packing/index.d.ts
@@ -9,8 +9,7 @@
///
///
-declare module "3d-bin-packing"
-{
+declare module "3d-bin-packing" {
export = bws.packer;
}
declare var ReactDataGrid: typeof AdazzleReactDataGrid.ReactDataGrid;
diff --git a/_debugger/index.d.ts b/_debugger/index.d.ts
index 324a875eba..1f8ef9e3f8 100644
--- a/_debugger/index.d.ts
+++ b/_debugger/index.d.ts
@@ -6,7 +6,7 @@
///
declare namespace NodeJS {
- export module _debugger {
+ export namespace _debugger {
export interface Packet {
raw: string;
headers: string[];
@@ -124,12 +124,12 @@ declare namespace NodeJS {
reqContinue(cb: RequestHandler): void;
}
- export var Client : {
+ export var Client: {
new (): ClientInstance
- }
+ };
}
}
-declare module "_debugger"{
+declare module "_debugger" {
export = NodeJS._debugger;
}
diff --git a/acc-wizard/acc-wizard-tests.ts b/acc-wizard/acc-wizard-tests.ts
index 74f8df765a..9d6de6b2fa 100644
--- a/acc-wizard/acc-wizard-tests.ts
+++ b/acc-wizard/acc-wizard-tests.ts
@@ -31,6 +31,6 @@ function testWithOptions() {
onInit: function() {},
onDestroy: function() {}
};
-
+
$('#test').accwizard(options);
}
\ No newline at end of file
diff --git a/acc-wizard/index.d.ts b/acc-wizard/index.d.ts
index 9c20bf3e5f..e524732dfb 100644
--- a/acc-wizard/index.d.ts
+++ b/acc-wizard/index.d.ts
@@ -9,49 +9,49 @@ interface AccWizardOptions {
* @type {boolean}
*/
addButtons: boolean;
-
+
/**
* @summary Selector for task sidebar.
* @type {string}
*/
sidebar: string;
-
+
/**
* @summary Class to indicate the active task in sidebar.
* @type {string}
*/
activeClass: string;
-
+
/**
* @summary Class to indicate task is complete.
* @type {string}
*/
completedClass: string;
-
+
/**
* @summary Class to indicate task is still pending.
* @type {string}
*/
todoClass: string;
-
+
/**
* @summary Class for step buttons within panels.
* @type {string}
*/
stepClass: string;
-
+
/**
* @summary Text for next button.
* @type {string}
*/
nextText: string;
-
+
/**
* @summary Text for back button.
* @type {string}
*/
backText: string;
-
+
/**
* @summary HTML input type for next button. (default: "submit")
* @type {string}
@@ -63,30 +63,30 @@ interface AccWizardOptions {
* @type {string}
*/
backType: string;
-
+
/**
* @summary Class(es) for next button.
* @type {string}
*/
nextClasses: string;
-
+
/**
* @summary Class(es) for back button.
* @type {string}
*/
backClasses: string;
-
+
/**
* @summary Auto-scrolling.
* @type {boolean}
*/
autoScrolling: boolean;
-
+
/**
* @summary Function to call on next step.
*/
onNext: Function;
-
+
/**
* @summary Function to call on back up.
*/
@@ -96,7 +96,7 @@ interface AccWizardOptions {
* @summary A chance to hook initialization.
*/
onInit: Function;
-
+
/**
* @summary A chance to hook destruction.
*/
diff --git a/ace/index.d.ts b/ace/index.d.ts
index 1ac19c7c63..4fc96f224e 100644
--- a/ace/index.d.ts
+++ b/ace/index.d.ts
@@ -14,9 +14,9 @@ declare namespace AceAjax {
export interface EditorCommand {
- name:string;
+ name: string;
- bindKey:any;
+ bindKey: any;
exec: Function;
@@ -31,9 +31,9 @@ declare namespace AceAjax {
platform: string;
- addCommands(commands:EditorCommand[]): void;
+ addCommands(commands: EditorCommand[]): void;
- addCommand(command:EditorCommand): void;
+ addCommand(command: EditorCommand): void;
exec(name: string, editor: Editor, args: any): void;
}
@@ -191,7 +191,7 @@ declare namespace AceAjax {
* @param column The starting column position
**/
new(doc: Document, row: number, column: number): Anchor;
- }
+ };
////////////////////////////////
/// BackgroundTokenizer
@@ -254,7 +254,7 @@ declare namespace AceAjax {
* @param editor The editor to associate with
**/
new(tokenizer: Tokenizer, editor: Editor): BackgroundTokenizer;
- }
+ };
////////////////
/// Document
@@ -445,7 +445,7 @@ declare namespace AceAjax {
* @param text The starting text
**/
new(text?: string[]): Document;
- }
+ };
////////////////////////////////
/// EditSession
@@ -1021,7 +1021,7 @@ declare namespace AceAjax {
new(content: string, mode?: string): IEditSession;
new (text: string[], mode?: string): IEditSession;
- }
+ };
////////////////////////////////
/// Editor
@@ -1063,7 +1063,7 @@ declare namespace AceAjax {
onChangeMode(e?: any): void;
- execCommand(command:string, args?: any): void;
+ execCommand(command: string, args?: any): void;
/**
* Sets a Configuration Option
@@ -1078,17 +1078,17 @@ declare namespace AceAjax {
/**
* Get a Configuration Option
**/
- getOption(name: any):any;
+ getOption(name: any): any;
/**
* Get Configuration Options
**/
- getOptions():any;
+ getOptions(): any;
/**
* Get rid of console warning by setting this to Infinity
**/
- $blockScrolling:number;
+ $blockScrolling: number;
/**
* Sets a new key handler, such as "vim" or "windows".
@@ -1591,7 +1591,7 @@ declare namespace AceAjax {
* @param row The new row number
* @param column The new column number
**/
- moveCursorTo(row: number, column?: number, animate?:boolean): void;
+ moveCursorTo(row: number, column?: number, animate?: boolean): void;
/**
* Moves the cursor to the position indicated by `pos.row` and `pos.column`.
@@ -1738,7 +1738,7 @@ declare namespace AceAjax {
* @param session The `EditSession` to refer to
**/
new(renderer: VirtualRenderer, session?: IEditSession): Editor;
- }
+ };
interface EditorChangeEvent {
start: Position;
@@ -1809,7 +1809,7 @@ declare namespace AceAjax {
new (session: Document, length: number, pos: number, others: string, mainClass: string, othersClass: string): PlaceHolder;
new (session: IEditSession, length: number, pos: Position, positions: Position[]): PlaceHolder;
- }
+ };
////////////////
/// RangeList
@@ -1830,7 +1830,7 @@ declare namespace AceAjax {
}
export var RangeList: {
new (): IRangeList;
- }
+ };
////////////////
/// Range
@@ -1841,13 +1841,13 @@ declare namespace AceAjax {
**/
export interface Range {
- startRow:number;
+ startRow: number;
- startColumn:number;
+ startColumn: number;
- endRow:number;
+ endRow: number;
- endColumn:number;
+ endColumn: number;
start: Position;
@@ -2034,7 +2034,7 @@ declare namespace AceAjax {
var Range: {
fromPoints(pos1: Position, pos2: Position): Range;
new(startRow: number, startColumn: number, endRow: number, endColumn: number): Range;
- }
+ };
////////////////
/// RenderLoop
@@ -2043,7 +2043,7 @@ declare namespace AceAjax {
export interface RenderLoop { }
var RenderLoop: {
new(): RenderLoop;
- }
+ };
////////////////
/// ScrollBar
@@ -2089,7 +2089,7 @@ declare namespace AceAjax {
* @param parent A DOM element
**/
new(parent: HTMLElement): ScrollBar;
- }
+ };
////////////////
/// Search
@@ -2152,7 +2152,7 @@ declare namespace AceAjax {
* - `skipCurrent`: Whether or not to include the current line in the search. Default to `false`.
**/
new(): Search;
- }
+ };
////////////////
/// Search
@@ -2413,7 +2413,7 @@ declare namespace AceAjax {
* @param session The session to use
**/
new(session: IEditSession): Selection;
- }
+ };
////////////////
/// Split
@@ -2497,7 +2497,7 @@ declare namespace AceAjax {
}
var Split: {
new(): Split;
- }
+ };
//////////////////
/// TokenIterator
@@ -2541,7 +2541,7 @@ declare namespace AceAjax {
* @param initialColumn The column to start the tokenizing at
**/
new(session: IEditSession, initialRow: number, initialColumn: number): TokenIterator;
- }
+ };
//////////////////
/// Tokenizer
@@ -2565,7 +2565,7 @@ declare namespace AceAjax {
* @param flag Any additional regular expression flags to pass (like "i" for case insensitive)
**/
new(rules: any, flag: string): Tokenizer;
- }
+ };
//////////////////
/// UndoManager
@@ -2627,7 +2627,7 @@ declare namespace AceAjax {
* Resets the current undo state and creates a new `UndoManager`.
**/
new(): UndoManager;
- }
+ };
////////////////////
/// VirtualRenderer
@@ -2977,7 +2977,7 @@ declare namespace AceAjax {
* @param theme The starting theme
**/
new(container: HTMLElement, theme?: string): VirtualRenderer;
- }
+ };
}
declare var ace: AceAjax.Ace;
diff --git a/ace/tests/ace-anchor-tests.ts b/ace/tests/ace-anchor-tests.ts
index 2cec45ce1d..e79fb0f69d 100644
--- a/ace/tests/ace-anchor-tests.ts
+++ b/ace/tests/ace-anchor-tests.ts
@@ -6,127 +6,127 @@ var exports = {
"test create anchor" : function() {
var doc = new AceAjax.Document("juhu");
var anchor = new AceAjax.Anchor(doc, 0, 0);
-
+
assert.position(anchor.getPosition(), 0, 0);
assert.equal(anchor.getDocument(), doc);
},
-
+
"test insert text in same row before cursor should move anchor column": function() {
var doc = new AceAjax.Document("juhu\nkinners");
var anchor = new AceAjax.Anchor(doc, 1, 4);
-
+
doc.insert({row: 1, column: 1}, "123");
assert.position(anchor.getPosition(), 1, 7);
},
-
+
"test insert lines before cursor should move anchor row": function() {
var doc = new AceAjax.Document("juhu\nkinners");
var anchor = new AceAjax.Anchor(doc, 1, 4);
-
+
doc.insertLines(1, ["123", "456"]);
- assert.position(anchor.getPosition(), 3, 4);
+ assert.position(anchor.getPosition(), 3, 4);
},
-
+
"test insert new line before cursor should move anchor column": function() {
var doc = new AceAjax.Document("juhu\nkinners");
var anchor = new AceAjax.Anchor(doc, 1, 4);
-
+
doc.insertNewLine({row: 0, column: 0});
- assert.position(anchor.getPosition(), 2, 4);
+ assert.position(anchor.getPosition(), 2, 4);
},
-
+
"test insert new line in anchor line before anchor should move anchor column and row": function() {
var doc = new AceAjax.Document("juhu\nkinners");
var anchor = new AceAjax.Anchor(doc, 1, 4);
-
+
doc.insertNewLine({row: 1, column: 2});
assert.position(anchor.getPosition(), 2, 2);
},
-
+
"test delete text in anchor line before anchor should move anchor column": function() {
var doc = new AceAjax.Document("juhu\nkinners");
var anchor = new AceAjax.Anchor(doc, 1, 4);
-
+
doc.remove(new AceAjax.Range(1, 1, 1, 3));
assert.position(anchor.getPosition(), 1, 2);
},
-
+
"test remove range which contains the anchor should move the anchor to the start of the range": function() {
var doc = new AceAjax.Document("juhu\nkinners");
var anchor = new AceAjax.Anchor(doc, 0, 3);
-
+
doc.remove(new AceAjax.Range(0, 1, 1, 3));
assert.position(anchor.getPosition(), 0, 1);
},
-
+
"test delete character before the anchor should have no effect": function() {
var doc = new AceAjax.Document("juhu\nkinners");
var anchor = new AceAjax.Anchor(doc, 1, 4);
-
+
doc.remove(new AceAjax.Range(1, 4, 1, 5));
assert.position(anchor.getPosition(), 1, 4);
},
-
+
"test delete lines in anchor line before anchor should move anchor row": function() {
var doc = new AceAjax.Document("juhu\n1\n2\nkinners");
var anchor = new AceAjax.Anchor(doc, 3, 4);
-
+
doc.removeLines(1, 2);
assert.position(anchor.getPosition(), 1, 4);
},
-
+
"test remove new line before the cursor": function() {
var doc = new AceAjax.Document("juhu\nkinners");
var anchor = new AceAjax.Anchor(doc, 1, 4);
-
+
doc.removeNewLine(0);
assert.position(anchor.getPosition(), 0, 8);
},
-
+
"test delete range which contains the anchor should move anchor to the end of the range": function() {
var doc = new AceAjax.Document("juhu\nkinners");
var anchor = new AceAjax.Anchor(doc, 1, 4);
-
+
doc.remove(new AceAjax.Range(0, 2, 1, 2));
assert.position(anchor.getPosition(), 0, 4);
},
-
+
"test delete line which contains the anchor should move anchor to the end of the range": function() {
var doc = new AceAjax.Document("juhu\nkinners\n123");
var anchor = new AceAjax.Anchor(doc, 1, 5);
-
+
doc.removeLines(1, 1);
assert.position(anchor.getPosition(), 1, 0);
},
-
+
"test remove after the anchor should have no effect": function() {
var doc = new AceAjax.Document("juhu\nkinners\n123");
var anchor = new AceAjax.Anchor(doc, 1, 2);
-
+
doc.remove(new AceAjax.Range(1, 4, 2, 2));
assert.position(anchor.getPosition(), 1, 2);
},
-
+
"test anchor changes triggered by document changes should emit change event": function(next) {
var doc = new AceAjax.Document("juhu\nkinners\n123");
var anchor = new AceAjax.Anchor(doc, 1, 5);
-
+
anchor.on("change", function(e) {
assert.position(anchor.getPosition(), 0, 0);
next();
});
-
+
doc.remove(new AceAjax.Range(0, 0, 2, 1));
},
-
+
"test only fire change event if position changes": function() {
var doc = new AceAjax.Document("juhu\nkinners\n123");
var anchor = new AceAjax.Anchor(doc, 1, 5);
-
+
anchor.on("change", function(e) {
assert.fail();
});
-
+
doc.remove(new AceAjax.Range(2, 0, 2, 1));
}
};
diff --git a/acl/index.d.ts b/acl/index.d.ts
index c95eafb06f..bc796f019c 100644
--- a/acl/index.d.ts
+++ b/acl/index.d.ts
@@ -41,7 +41,7 @@ interface Acl {
allow: {
(roles: Values, resources: strings, permissions: strings, cb?: Callback): Promise;
(aclSets: AclSet | AclSet[]): Promise;
- }
+ };
removeAllow: (role: string, resources: strings, permissions: strings, cb?: Callback) => Promise;
removePermissions: (role: string, resources: strings, permissions: strings, cb?: Function) => Promise;
allowedPermissions: (userId: Value, resources: strings, cb?: AnyCallback) => Promise;
diff --git a/actioncable/index.d.ts b/actioncable/index.d.ts
index 8d42c4d17a..5ddc96bff5 100644
--- a/actioncable/index.d.ts
+++ b/actioncable/index.d.ts
@@ -3,7 +3,7 @@
// Definitions by: Vincent Zhu
// Definitions: https://github.com/zhu1230/DefinitelyTyped
-declare module ActionCable {
+declare namespace ActionCable {
interface Channel {
unsubscribe(): void;
perform(action: string, data: {}): void;
diff --git a/adal/adal-angular.d.ts b/adal/adal-angular.d.ts
index 28d9682f19..cee5db4f24 100644
--- a/adal/adal-angular.d.ts
+++ b/adal/adal-angular.d.ts
@@ -13,16 +13,16 @@ declare namespace adal {
}
interface UserInfo {
- isAuthenticated: boolean,
- userName: string,
- loginError: string,
- profile: any
+ isAuthenticated: boolean;
+ userName: string;
+ loginError: string;
+ profile: any;
}
interface AdalAuthenticationService {
config: Config;
- userInfo: UserInfo,
+ userInfo: UserInfo;
login(): void;
loginInProgress(): boolean;
@@ -30,7 +30,7 @@ declare namespace adal {
getCachedToken(resource: string): string;
acquireToken(resource: string): angular.IPromise;
getUser(): angular.IPromise;
- getResourceForEndpoint(endpoint: string): string,
+ getResourceForEndpoint(endpoint: string): string;
clearCache(): void;
clearCacheForResource(resource: string): void;
info(message: string): void;
diff --git a/adal/index.d.ts b/adal/index.d.ts
index a896d687ec..db5bcfcf2a 100644
--- a/adal/index.d.ts
+++ b/adal/index.d.ts
@@ -38,15 +38,15 @@ declare namespace adal {
stateResponse: string;
requestType: string;
}
-
+
interface Logging {
log: (message: string) => void;
level: LoggingLevel;
}
-
+
enum LoggingLevel {
ERROR = 0,
- WARNING = 1,
+ WARNING = 1,
INFO = 2,
VERBOSE = 3
}
@@ -58,7 +58,7 @@ declare namespace adal {
interface AuthenticationContext {
instance: string;
- config: Config;
+ config: Config;
/**
* Gets initial Idtoken for the app backend
@@ -153,7 +153,7 @@ declare namespace adal {
getResourceForEndpoint(endpoint: string): string;
/**
- * Handles redirection after login operation.
+ * Handles redirection after login operation.
* Gets access token from url and saves token to the (local/session) storage
* or saves error in case unsuccessful login.
*/
diff --git a/adm-zip/adm-zip-tests.ts b/adm-zip/adm-zip-tests.ts
index 2418597087..fb5a5131df 100644
--- a/adm-zip/adm-zip-tests.ts
+++ b/adm-zip/adm-zip-tests.ts
@@ -39,16 +39,16 @@ function processZipEntry(zipEntry: AdmZip.IZipEntry) {
//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");
+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");
+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
+ 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
diff --git a/agenda/agenda-tests.ts b/agenda/agenda-tests.ts
index 8c5e3e19bb..d528b0713f 100644
--- a/agenda/agenda-tests.ts
+++ b/agenda/agenda-tests.ts
@@ -3,16 +3,16 @@ import * as Agenda from "agenda";
var mongoConnectionString = "mongodb://127.0.0.1/agenda";
var agenda = new Agenda({ db: { address: mongoConnectionString } });
-
-
+
+
agenda.define('delete old users', (job, done) => {
});
agenda.on('ready', () => {
agenda.every('3 minutes', 'delete old users');
-
- // Alternatively, you could also do:
+
+ // Alternatively, you could also do:
agenda.every('*/3 * * * *', 'delete old users');
agenda.start();
diff --git a/agenda/index.d.ts b/agenda/index.d.ts
index e859de3188..8c4d102326 100644
--- a/agenda/index.d.ts
+++ b/agenda/index.d.ts
@@ -218,7 +218,7 @@ declare namespace Agenda {
* The name of the collection to use.
*/
collection?: string;
- }
+ };
/**
* Specifies that Agenda should connect to MongoDB.
@@ -238,7 +238,7 @@ declare namespace Agenda {
* Connection options to pass to MongoDB.
*/
options?: any;
- }
+ };
}
/**
@@ -323,7 +323,7 @@ declare namespace Agenda {
/**
* Job's state
*/
- disabled: boolean
+ disabled: boolean;
}
/**
@@ -342,13 +342,13 @@ declare namespace Agenda {
* @param options An optional argument that can include a timezone field. The timezone should be a string as
* accepted by moment-timezone and is considered when using an interval in the cron string format.
*/
- repeatEvery(interval: string | number, options?: { timezone?: string }): Job
+ repeatEvery(interval: string | number, options?: { timezone?: string }): Job;
/**
* Specifies a time when the job should repeat. [Possible values](https://github.com/matthewmueller/date#examples).
* @param time
*/
- repeatAt(time: string): Job
+ repeatAt(time: string): Job;
/**
* Disables the job.
diff --git a/ajv/index.d.ts b/ajv/index.d.ts
index bf487fd341..465eb71654 100644
--- a/ajv/index.d.ts
+++ b/ajv/index.d.ts
@@ -86,16 +86,16 @@ declare namespace Ajv {
messages?: boolean;
beautify?: boolean;
cache?: any;
- }
+ };
type AjvValidate = ((data: any) => boolean | PromiseLike) & {
errors: ValidationError[];
- }
+ };
type AjxKeywordDefinition = {
async?: boolean;
type: string;
compile?: (schema: any, parentsSchema: any) => ((data: any) => boolean | PromiseLike);
validate?: (schema: any, data: any) => boolean;
- }
+ };
type ValidationError = {
keyword: string;
dataPath: string;
@@ -105,7 +105,7 @@ declare namespace Ajv {
schema: any;
parentSchema: any;
data: any;
- }
+ };
}
export = Ajv;
diff --git a/alertify/alertify-tests.ts b/alertify/alertify-tests.ts
index 61903e86ff..2d7eede051 100644
--- a/alertify/alertify-tests.ts
+++ b/alertify/alertify-tests.ts
@@ -3,13 +3,13 @@
alertify.init();
alertify.alert("This is an alert");
-alertify.alert("This is an alert with a callback", () => {
+alertify.alert("This is an alert with a callback", () => {
alertify.success("Alert finished");
}, "myCustomClass");
alertify.confirm("This is a confirm request");
-alertify.confirm("This is a confirm request with a callback", () => {
+alertify.confirm("This is a confirm request with a callback", () => {
alertify.success("Confirm finished");
}, "myCustomClass");
@@ -21,7 +21,7 @@ alertify.log("log message 2", "success", 3000);
alertify.prompt("prompt message 1");
alertify.prompt("prompt message 2", () => { console.log("callback"); }, "ok", "myClass");
-alertify.set({ delay: 1000 });
+alertify.set({ delay: 1000 });
alertify.set({ labels: { ok: "OK", cancel: "Cancel" }});
alertify.set({ buttonFocus: "ok" });
alertify.set({ buttonReverse: true });
diff --git a/alt/index.d.ts b/alt/index.d.ts
index 561de28ac3..11ffa7a775 100644
--- a/alt/index.d.ts
+++ b/alt/index.d.ts
@@ -8,65 +8,65 @@
declare namespace AltJS {
interface StoreReduce {
- action:any;
+ action: any;
data: any;
}
export interface StoreModel {
//Actions
- bindAction?( action:Action, handler:ActionHandler):void;
- bindActions?(actions:ActionsClass):void;
+ bindAction?( action: Action, handler: ActionHandler): void;
+ bindActions?(actions: ActionsClass): void;
//Methods/Listeners
- exportPublicMethods?(exportConfig:any):void;
- bindListeners?(config:{[methodName:string]:Action | Actions}):void;
- exportAsync?(source:Source):void;
- registerAsync?(datasource:Source):void;
+ exportPublicMethods?(exportConfig: any): void;
+ bindListeners?(config: {[methodName: string]: Action | Actions}): void;
+ exportAsync?(source: Source): void;
+ registerAsync?(datasource: Source): void;
//state
- setState?(state:S):void;
- setState?(stateFn:(currentState:S, nextState:S) => S):void;
- getState?():S;
- waitFor?(store:AltStore):void;
+ setState?(state: S): void;
+ setState?(stateFn: (currentState: S, nextState: S) => S): void;
+ getState?(): S;
+ waitFor?(store: AltStore): void;
//events
- onSerialize?(fn:(data:any) => any):void;
- onDeserialize?(fn:(data:any) => any):void;
- on?(event:AltJS.lifeCycleEvents, callback:() => any):void;
- emitChange?():void;
- waitFor?(storeOrStores:AltStore | Array>):void;
- otherwise?(data:any, action:AltJS.Action):void;
- observe?(alt:Alt):any;
- reduce?(state:any, config:StoreReduce):Object;
- preventDefault?():void;
- afterEach?(payload:Object, state:Object):void;
- beforeEach?(payload:Object, state:Object):void;
+ onSerialize?(fn: (data: any) => any): void;
+ onDeserialize?(fn: (data: any) => any): void;
+ on?(event: AltJS.lifeCycleEvents, callback: () => any): void;
+ emitChange?(): void;
+ waitFor?(storeOrStores: AltStore | Array>): void;
+ otherwise?(data: any, action: AltJS.Action): void;
+ observe?(alt: Alt): any;
+ reduce?(state: any, config: StoreReduce): Object;
+ preventDefault?(): void;
+ afterEach?(payload: Object, state: Object): void;
+ beforeEach?(payload: Object, state: Object): void;
// TODO: Embed dispatcher interface in def
- dispatcher?:any;
+ dispatcher?: any;
//instance
- getInstance?():AltJS.AltStore;
- alt?:Alt;
- displayName?:string;
+ getInstance?(): AltJS.AltStore;
+ alt?: Alt;
+ displayName?: string;
}
- export type Source = {[name:string]: () => SourceModel};
+ export type Source = {[name: string]: () => SourceModel};
export interface SourceModel {
- local(state:any, ...args: any[]):any;
- remote(state:any, ...args: any[]):Promise;
- shouldFetch?(fetchFn:(...args:Array) => boolean):void;
- loading?:(args:any) => void;
- success?:(state:S) => void;
- error?:(args:any) => void;
- interceptResponse?(response:any, action:Action, ...args:Array):any;
+ local(state: any, ...args: any[]): any;
+ remote(state: any, ...args: any[]): Promise;
+ shouldFetch?(fetchFn: (...args: Array) => boolean): void;
+ loading?: (args: any) => void;
+ success?: (state: S) => void;
+ error?: (args: any) => void;
+ interceptResponse?(response: any, action: Action, ...args: Array): any;
}
export interface AltStore {
- getState():S;
- listen(handler:(state:S) => any):() => void;
- unlisten(handler:(state:S) => any):void;
- emitChange():void;
+ getState(): S;
+ listen(handler: (state: S) => any): () => void;
+ unlisten(handler: (state: S) => any): void;
+ emitChange(): void;
}
export enum lifeCycleEvents {
@@ -77,64 +77,64 @@ declare namespace AltJS {
error
}
- export type Actions = {[action:string]:Action};
+ export type Actions = {[action: string]: Action};
export interface Action {
- ( args:T):void;
- defer(data:any):void;
+ ( args: T): void;
+ defer(data: any): void;
}
export interface ActionsClass {
- generateActions?( ...action:Array):void;
- dispatch( ...payload:Array):void;
- actions?:Actions;
+ generateActions?( ...action: Array): void;
+ dispatch( ...payload: Array): void;
+ actions?: Actions;
}
- type StateTransform = (store:StoreModel) => AltJS.AltStore;
+ type StateTransform = (store: StoreModel) => AltJS.AltStore;
interface AltConfig {
- dispatcher?:any;
- serialize?:(serializeFn:(data:Object) => string) => void;
- deserialize?:(deserializeFn:(serialData:string) => Object) => void;
- storeTransforms?:Array;
- batchingFunction?:(callback:( ...data:Array) => any) => void;
+ dispatcher?: any;
+ serialize?: (serializeFn: (data: Object) => string) => void;
+ deserialize?: (deserializeFn: (serialData: string) => Object) => void;
+ storeTransforms?: Array;
+ batchingFunction?: (callback: ( ...data: Array) => any) => void;
}
class Alt {
- constructor(config?:AltConfig);
- actions:Actions;
- bootstrap(jsonData:string):void;
- takeSnapshot( ...storeNames:Array):string;
- flush():Object;
- recycle( ...stores:Array>):void;
- rollback():void;
- dispatch(action?:AltJS.Action, data?:Object, details?:any):void;
+ constructor(config?: AltConfig);
+ actions: Actions;
+ bootstrap(jsonData: string): void;
+ takeSnapshot( ...storeNames: Array): string;
+ flush(): Object;
+ recycle( ...stores: Array>): void;
+ rollback(): void;
+ dispatch(action?: AltJS.Action, data?: Object, details?: any): void;
//Actions methods
- addActions(actionsName:string, ActionsClass: ActionsClassConstructor):void;
- createActions(ActionsClass: ActionsClassConstructor, exportObj?: Object):T;
- createActions(ActionsClass: ActionsClassConstructor, exportObj?: Object, ...constructorArgs:Array):T;
- generateActions( ...actions:Array):T;
- getActions(actionsName:string):AltJS.Actions;
+ addActions(actionsName: string, ActionsClass: ActionsClassConstructor): void;
+ createActions(ActionsClass: ActionsClassConstructor, exportObj?: Object): T;
+ createActions(ActionsClass: ActionsClassConstructor, exportObj?: Object, ...constructorArgs: Array): T;
+ generateActions( ...actions: Array): T;
+ getActions(actionsName: string): AltJS.Actions;
//Stores methods
- addStore(name:string, store:StoreModel, saveStore?:boolean):void;
- createStore(store:StoreModel, name?:string):AltJS.AltStore;
- getStore(name:string):AltJS.AltStore;
+ addStore(name: string, store: StoreModel, saveStore?: boolean): void;
+ createStore(store: StoreModel, name?: string): AltJS.AltStore;
+ getStore(name: string): AltJS.AltStore;
}
export interface AltFactory {
- new(config?:AltConfig):Alt;
+ new(config?: AltConfig): Alt;
}
- type ActionsClassConstructor = new (alt:Alt) => AltJS.ActionsClass;
+ type ActionsClassConstructor = new (alt: Alt) => AltJS.ActionsClass;
- type ActionHandler = ( ...data:Array) => any;
- type ExportConfig = {[key:string]:(...args:Array) => any};
+ type ActionHandler = ( ...data: Array) => any;
+ type ExportConfig = {[key: string]: (...args: Array) => any};
}
declare module "alt/utils/chromeDebug" {
- function chromeDebug(alt:AltJS.Alt):void;
+ function chromeDebug(alt: AltJS.Alt): void;
export = chromeDebug;
}
@@ -143,24 +143,24 @@ declare module "alt/AltContainer" {
import React = require("react");
interface ContainerProps {
- store?:AltJS.AltStore;
- stores?:Array>;
- inject?:{[key:string]:any};
- actions?:{[key:string]:Object};
- render?:(...props:Array) => React.ReactElement;
- flux?:AltJS.Alt;
- transform?:(store:AltJS.AltStore, actions:any) => any;
- shouldComponentUpdate?:(props:any) => boolean;
- component?:React.Component;
+ store?: AltJS.AltStore;
+ stores?: Array>;
+ inject?: {[key: string]: any};
+ actions?: {[key: string]: Object};
+ render?: (...props: Array) => React.ReactElement;
+ flux?: AltJS.Alt;
+ transform?: (store: AltJS.AltStore, actions: any) => any;
+ shouldComponentUpdate?: (props: any) => boolean;
+ component?: React.Component;
}
type AltContainer = React.ReactElement;
- var AltContainer:React.ComponentClass;
+ var AltContainer: React.ComponentClass;
export = AltContainer;
}
declare module "alt" {
- var alt:AltJS.AltFactory;
+ var alt: AltJS.AltFactory;
export = alt;
}
diff --git a/amazon-product-api/index.d.ts b/amazon-product-api/index.d.ts
index 6cb7389c73..e86165e6f6 100644
--- a/amazon-product-api/index.d.ts
+++ b/amazon-product-api/index.d.ts
@@ -6,9 +6,9 @@
interface ICredentials {
- awsId: string,
- awsSecret: string,
- awsTag: string
+ awsId: string;
+ awsSecret: string;
+ awsTag: string;
}
interface IAmazonProductQueryCallback {
diff --git a/amplitude-js/index.d.ts b/amplitude-js/index.d.ts
index 613f5ad5d8..61a814003a 100644
--- a/amplitude-js/index.d.ts
+++ b/amplitude-js/index.d.ts
@@ -3,7 +3,7 @@
// Definitions by: Arvydas Sidorenko
// Definitions: https://github.com/Asido/DefinitelyTyped
-declare module amplitude {
+declare namespace amplitude {
interface Config {
batchEvents?: boolean;
cookieExpiration?: number;
diff --git a/amqp-rpc/index.d.ts b/amqp-rpc/index.d.ts
index 337f8d8a16..eccd2937c1 100644
--- a/amqp-rpc/index.d.ts
+++ b/amqp-rpc/index.d.ts
@@ -18,7 +18,7 @@ export interface Options {
};
ipml_options?: {
defaultExchangeName?: string;
- }
+ };
conn_options?: any;
}
diff --git a/amqplib/index.d.ts b/amqplib/index.d.ts
index b406e00ac0..56e2e6d211 100644
--- a/amqplib/index.d.ts
+++ b/amqplib/index.d.ts
@@ -162,7 +162,7 @@ declare module 'amqplib/properties' {
declare module 'amqplib/callback_api' {
import events = require('events');
- import shared = require('amqplib/properties')
+ import shared = require('amqplib/properties');
export import Replies = shared.Replies;
export import Options = shared.Options;
diff --git a/angular-agility/index.d.ts b/angular-agility/index.d.ts
index 2ff1fcf1f2..889dab629e 100644
--- a/angular-agility/index.d.ts
+++ b/angular-agility/index.d.ts
@@ -8,29 +8,29 @@
declare namespace aa {
export interface ILabelStrategies {
- [strategyName: string]: (element:ng.IAugmentedJQueryStatic, labelText:string, isRequired:boolean)=>void;
+ [strategyName: string]: (element: ng.IAugmentedJQueryStatic, labelText: string, isRequired: boolean) => void;
}
export interface IFieldGroupStrategies {
- [strategyName: string]: (element:ng.IAugmentedJQueryStatic)=>void;
+ [strategyName: string]: (element: ng.IAugmentedJQueryStatic) => void;
}
export interface IValMsgPlacementStrategies {
- [strategyName: string]: (formFieldElement:ng.IAugmentedJQueryStatic, formName:string, formFieldName:string)=>void;
+ [strategyName: string]: (formFieldElement: ng.IAugmentedJQueryStatic, formName: string, formFieldName: string) => void;
}
export interface IValidIconStrategy {
- validIcon:string;
- invalidIcon:string;
- getContainer(element:ng.IAugmentedJQueryStatic):void;
+ validIcon: string;
+ invalidIcon: string;
+ getContainer(element: ng.IAugmentedJQueryStatic): void;
}
export interface ISpinnerClickStrategies {
- [strategyName: string]: (element:ng.IAugmentedJQueryStatic)=>void;
+ [strategyName: string]: (element: ng.IAugmentedJQueryStatic) => void;
}
export interface IOnNavigateAwayStrategies {
- [strategyName: string]: (rootFormScope:ng.IScope, rootForm:ng.IAugmentedJQueryStatic, $injector:ng.auto.IInjectorService)=>void;
+ [strategyName: string]: (rootFormScope: ng.IScope, rootForm: ng.IAugmentedJQueryStatic, $injector: ng.auto.IInjectorService) => void;
}
export interface IValidationMessages {
@@ -42,27 +42,27 @@ declare namespace aa {
}
export interface IFormExtensionsProvider extends ng.IServiceProvider {
- defaultLabelStrategy:string;
- defaultFieldGroupStrategy:string;
- defaultValMsgPlacementStrategy:string;
- validIconStrategy:IValidIconStrategy;
- defaultSpinnerClickStrategy:string;
- defaultNotifyTarget:string;
- defaultOnNavigateAwayStrategy:string;
- validationMessages:IValidationMessages;
- valMsgForTemplate:string;
- confirmResetStrategy:()=>boolean;
- globalSettings:IGlobalSettings;
+ defaultLabelStrategy: string;
+ defaultFieldGroupStrategy: string;
+ defaultValMsgPlacementStrategy: string;
+ validIconStrategy: IValidIconStrategy;
+ defaultSpinnerClickStrategy: string;
+ defaultNotifyTarget: string;
+ defaultOnNavigateAwayStrategy: string;
+ validationMessages: IValidationMessages;
+ valMsgForTemplate: string;
+ confirmResetStrategy: () => boolean;
+ globalSettings: IGlobalSettings;
- labelStrategies:ILabelStrategies;
- fieldGroupStrategies:IFieldGroupStrategies;
- valMsgPlacementStrategies:IValMsgPlacementStrategies;
- spinnerClickStrategies:ISpinnerClickStrategies;
- onNavigateAwayStrategies:IOnNavigateAwayStrategies;
+ labelStrategies: ILabelStrategies;
+ fieldGroupStrategies: IFieldGroupStrategies;
+ valMsgPlacementStrategies: IValMsgPlacementStrategies;
+ spinnerClickStrategies: ISpinnerClickStrategies;
+ onNavigateAwayStrategies: IOnNavigateAwayStrategies;
}
export interface INotifyPredicate {
- (message:string, options:any, notifier:any):any;
+ (message: string, options: any, notifier: any): any;
}
export interface INotifyDefaults {
@@ -74,33 +74,33 @@ declare namespace aa {
}
export interface INotifyConfig {
- name:string;
- template?:string;
- templateName?:string;
- options:INotifyOptions;
- namedDefaults:INotifyDefaults;
+ name: string;
+ template?: string;
+ templateName?: string;
+ options: INotifyOptions;
+ namedDefaults: INotifyDefaults;
}
export interface INotifyOptions {
- cssClasses?:string;
- messageType:string;
- allowHtml:boolean;
- message:string;
+ cssClasses?: string;
+ messageType: string;
+ allowHtml: boolean;
+ message: string;
}
export interface INotifyConfigProvider extends ng.IServiceProvider {
- notifyConfigs:any;
- defaultTargetContainerName:string;
- defaultNotifyConfig:string;
- addOrUpdateNotifyConfig(name:string, opts:INotifyConfig):void;
- optionsTransformer(options:INotifyOptions, $sce:ng.ISCEService):void;
+ notifyConfigs: any;
+ defaultTargetContainerName: string;
+ defaultNotifyConfig: string;
+ addOrUpdateNotifyConfig(name: string, opts: INotifyConfig): void;
+ optionsTransformer(options: INotifyOptions, $sce: ng.ISCEService): void;
}
export interface IExternalFormValidationConfig {
- validations:any;
- ignore?:any;
- globals?:any;
- resolve?:any;
- resolveFn?:(modelValue:string)=>string;
+ validations: any;
+ ignore?: any;
+ globals?: any;
+ resolve?: any;
+ resolveFn?: (modelValue: string) => string;
}
}
diff --git a/angular-bootstrap-lightbox/index.d.ts b/angular-bootstrap-lightbox/index.d.ts
index 9c7438b042..2c1c8a9099 100644
--- a/angular-bootstrap-lightbox/index.d.ts
+++ b/angular-bootstrap-lightbox/index.d.ts
@@ -21,31 +21,31 @@ declare namespace angular.bootstrap.lightbox {
}
export interface IImageDimensionParameter {
- windowWidth:number;
- windowHeight:number;
- imageWidth:number;
- imageHeight:number;
+ windowWidth: number;
+ windowHeight: number;
+ imageWidth: number;
+ imageHeight: number;
}
export interface IModalDimensionsParameter {
- windowWidth:number;
- windowHeight:number;
- imageDisplayWidth:number;
- imageDisplayHeight:number;
+ windowWidth: number;
+ windowHeight: number;
+ imageDisplayWidth: number;
+ imageDisplayHeight: number;
}
export interface IModalDimensions {
- width:number;
- height:number;
+ width: number;
+ height: number;
}
export interface ILightbox {
- openModal(images:ILightboxImageInfo[], index:number):void;
+ openModal(images: ILightboxImageInfo[], index: number): void;
}
export interface ILightBoxProvider {
- templateUrl:string;
- calculateImageDimensionLimits:(dimensions:IImageDimensionParameter)=>IImageDimensionLimits;
- calculateModalDimensions:(dimensions:IModalDimensionsParameter)=>IModalDimensions;
+ templateUrl: string;
+ calculateImageDimensionLimits: (dimensions: IImageDimensionParameter) => IImageDimensionLimits;
+ calculateModalDimensions: (dimensions: IModalDimensionsParameter) => IModalDimensions;
}
}
diff --git a/angular-breadcrumb/index.d.ts b/angular-breadcrumb/index.d.ts
index a21d7f7ce0..6a83360798 100644
--- a/angular-breadcrumb/index.d.ts
+++ b/angular-breadcrumb/index.d.ts
@@ -19,14 +19,13 @@ declare namespace angular.ui {
* When defined to true, the state is never included in the chain of states and never appears in the breadcrumb
**/
skip?: boolean;
- },
+ };
ncyBreadcrumbLabel?: string;
ncyBreadcrumbLink?: string;
}
}
declare namespace ncy {
-
/**
* Provider that returns an instance of $breadcrumb service. It contains the global configuration of the module.
**/
@@ -36,7 +35,7 @@ declare namespace ncy {
**/
setOptions(options: breadcrumbProviderOptions): void;
}
-
+
/**
* Global configuration options for angular-breadcrumb
**/
@@ -51,7 +50,7 @@ declare namespace ncy {
**/
template?: string;
- /**
+ /**
* Contains the path to a template file. This property takes precedence over the template property.
**/
templateUrl?: string;
diff --git a/angular-cookie/angular-cookie-tests.ts b/angular-cookie/angular-cookie-tests.ts
index 7600762086..f9a0a778f2 100644
--- a/angular-cookie/angular-cookie-tests.ts
+++ b/angular-cookie/angular-cookie-tests.ts
@@ -3,16 +3,16 @@ angular.module('myApp', ['ipCookie'])
ipCookie('key', 'value');
ipCookie('key', { value: 'value'});
ipCookie('key', [1, 2, 3]);
-
+
ipCookie('key', 'value', { expires: 21 });
ipCookie('key', 'value', { encode: function (value) { return value; } });
-
+
ipCookie();
ipCookie('key');
ipCookie('key', undefined, {decode: function (value) { return value; }});
-
+
ipCookie.remove('key');
ipCookie.remove('key', { path: '/some/path/' });
-
+
var obj: Object = '255';
}]);
\ No newline at end of file
diff --git a/angular-deferred-bootstrap/index.d.ts b/angular-deferred-bootstrap/index.d.ts
index c01059cf25..10f103626a 100644
--- a/angular-deferred-bootstrap/index.d.ts
+++ b/angular-deferred-bootstrap/index.d.ts
@@ -7,14 +7,14 @@
declare var deferredBootstrapper: angular.IDeferredBootstrapperStatic;
-declare module angular {
+declare namespace angular {
interface IDeferredBootstrapperStatic {
- bootstrap(configParam: IConfigParam): ng.IPromise
+ bootstrap(configParam: IConfigParam): ng.IPromise;
}
interface IConfigParam {
- element?: Node,
- module?: string,
- resolve: any
+ element?: Node;
+ module?: string;
+ resolve: any;
}
}
\ No newline at end of file
diff --git a/angular-dialog-service/index.d.ts b/angular-dialog-service/index.d.ts
index 7d667c032c..1049508243 100644
--- a/angular-dialog-service/index.d.ts
+++ b/angular-dialog-service/index.d.ts
@@ -60,23 +60,23 @@ declare namespace angular.dialogservice {
/**
* Opens a new error modal instance.
*/
- error(header: string, msg: string, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance
+ error(header: string, msg: string, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance;
/**
* Opens a new wait modal instance.
*/
- wait(header: string, msg: string, progress: number, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance
+ wait(header: string, msg: string, progress: number, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance;
/**
* Opens a new notify modal instance.
*/
- notify(header: string, msg: string, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance
+ notify(header: string, msg: string, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance;
/**
* Opens a new confirm modal instance.
*/
- confirm(header: string, msg: string, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance
+ confirm(header: string, msg: string, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance;
/**
* Opens a new custom modal instance.
*/
- create(url: string, ctrlr: string, data: any, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance
+ create(url: string, ctrlr: string, data: any, opts?: IDialogOptions): ng.ui.bootstrap.IModalServiceInstance;
}
}
diff --git a/angular-environment/index.d.ts b/angular-environment/index.d.ts
index 94972d1383..ca558ff08b 100644
--- a/angular-environment/index.d.ts
+++ b/angular-environment/index.d.ts
@@ -18,24 +18,24 @@ declare namespace angular.environment {
* Retrieves the correct version of a
* variable for the current environment.
*/
- read: (key: string) => any;
+ read: (key: string) => any;
}
interface Service {
/**
* Retrieve the current environment
*/
- get: () => string,
+ get: () => string;
/**
* Force sets the current environment
*/
- set: (environment: string) => void,
+ set: (environment: string) => void;
/**
* Evaluates current environment against
* environment parameter.
*/
- is: (environment: string) => boolean,
+ is: (environment: string) => boolean;
/**
* Retrieves the correct version of a
@@ -48,10 +48,10 @@ declare namespace angular.environment {
/**
* Map of domains to their environments
*/
- domains: { [environment: string]: Array },
+ domains: { [environment: string]: Array };
/**
* List of variables split by environment
*/
- vars: { [environment: string]: { [variable: string]: any }},
+ vars: { [environment: string]: { [variable: string]: any }};
}
}
diff --git a/angular-es/index.d.ts b/angular-es/index.d.ts
index 0972b42da0..5b41f6a034 100644
--- a/angular-es/index.d.ts
+++ b/angular-es/index.d.ts
@@ -29,13 +29,13 @@ declare module 'angular-es' {
* @see https://docs.angularjs.org/guide/component
*/
interface iComponent {
- template: string,
- selector: string,
- controllerAs?: string,
- require?: string,
- templateUrl?: string,
- transclude?: string,
- bindings?: Object
+ template: string;
+ selector: string;
+ controllerAs?: string;
+ require?: string;
+ templateUrl?: string;
+ transclude?: string;
+ bindings?: Object;
}
/**
diff --git a/angular-formly/angular-formly-tests.ts b/angular-formly/angular-formly-tests.ts
index 83f13af2d4..94afc86eec 100644
--- a/angular-formly/angular-formly-tests.ts
+++ b/angular-formly/angular-formly-tests.ts
@@ -21,14 +21,14 @@ class FormConfig {
extends: 'input'
});
- formlyConfig.disableWarnings = true;
+ formlyConfig.disableWarnings = true;
formlyConfig.templateManipulators = undefined;
formlyConfig.extras.apiCheckInstance = null;
formlyConfig.extras.defaultHideDirective = 'ng-if';
formlyConfig.extras.disableNgModelAttrsManipulator = true;
formlyConfig.extras.errorExistsAndShouldBeVisibleExpression = angular.noop;
- formlyConfig.extras.explicitAsync = true;
+ formlyConfig.extras.explicitAsync = true;
formlyConfig.extras.fieldTransform = angular.noop;
formlyConfig.extras.getFieldId = angular.noop;
formlyConfig.extras.ngModelAttrsManipulatorPreferUnbound = true;
diff --git a/angular-growl-v2/angular-growl-v2-tests.ts b/angular-growl-v2/angular-growl-v2-tests.ts
index b02c768add..1e670dcb17 100644
--- a/angular-growl-v2/angular-growl-v2-tests.ts
+++ b/angular-growl-v2/angular-growl-v2-tests.ts
@@ -58,7 +58,7 @@ app.controller("Ctrl", ($scope:angular.IScope,
growlMessages.destroyAllMessages(0);
growlMessages.addMessage(messages[0]);
growlMessages.deleteMessage(messages[1]);
-
+
var testMessage = growl.warning(message);
testMessage.setText("Some other message");
testMessage.destroy();
diff --git a/angular-load/index.d.ts b/angular-load/index.d.ts
index 8e7c22b6b6..d5fd416d2f 100644
--- a/angular-load/index.d.ts
+++ b/angular-load/index.d.ts
@@ -8,8 +8,8 @@
declare namespace angular.load {
interface IAngularLoadService {
- loadScript(url:string): ng.IPromise;
- loadCSS(url:string): ng.IPromise;
+ loadScript(url: string): ng.IPromise;
+ loadCSS(url: string): ng.IPromise;
}
}
diff --git a/angular-locker/index.d.ts b/angular-locker/index.d.ts
index b3395b223d..c9d0bf7720 100644
--- a/angular-locker/index.d.ts
+++ b/angular-locker/index.d.ts
@@ -10,7 +10,7 @@ import * as angular from 'angular';
declare module 'angular' {
export namespace locker {
interface ILockerServicePutFunction {
- (current: any): any
+ (current: any): any;
}
interface ILockerService {
@@ -46,7 +46,7 @@ declare module 'angular' {
*
* @param {String|Function} key - The key to remove
*/
- has(key: string): boolean
+ has(key: string): boolean;
/**
* Get the storage keys as an array
*/
diff --git a/angular-material/angular-material-0.8.3.d.ts b/angular-material/angular-material-0.8.3.d.ts
index 0a19ec3764..d7ce0d12a8 100644
--- a/angular-material/angular-material-0.8.3.d.ts
+++ b/angular-material/angular-material-0.8.3.d.ts
@@ -12,7 +12,7 @@ declare namespace angular.material {
controller?: any;
locals?: {[index: string]: any};
targetEvent?: any;
- resolve?: {[index: string]: angular.IPromise}
+ resolve?: {[index: string]: angular.IPromise};
controllerAs?: string;
parent?: Element;
disableParentScroll?: boolean;
@@ -49,7 +49,7 @@ declare namespace angular.material {
controller?: any;
locals?: {[index: string]: any};
bindToController?: boolean;
- resolve?: {[index: string]: angular.IPromise}
+ resolve?: {[index: string]: angular.IPromise};
controllerAs?: string;
parent?: Element;
onComplete?: Function;
@@ -110,7 +110,7 @@ declare namespace angular.material {
controller?: any;
locals?: {[index: string]: any};
bindToController?: boolean;
- resolve?: {[index: string]: angular.IPromise}
+ resolve?: {[index: string]: angular.IPromise};
controllerAs?: string;
parent?: Element;
}
diff --git a/angular-material/angular-material-0.9.0.d.ts b/angular-material/angular-material-0.9.0.d.ts
index 6ab01e7b13..9d6e06d075 100644
--- a/angular-material/angular-material-0.9.0.d.ts
+++ b/angular-material/angular-material-0.9.0.d.ts
@@ -14,7 +14,7 @@ declare namespace angular.material {
controller?: string|Function;
locals?: {[index: string]: any};
targetEvent?: MouseEvent;
- resolve?: {[index: string]: angular.IPromise}
+ resolve?: {[index: string]: angular.IPromise};
controllerAs?: string;
parent?: string|Element|JQuery; // default: root node
disableParentScroll?: boolean; // default: true
@@ -47,14 +47,14 @@ declare namespace angular.material {
scope?: angular.IScope; // default: new child scope
preserveScope?: boolean; // default: false
disableParentScroll?: boolean; // default: true
- hasBackdrop?: boolean // default: true
+ hasBackdrop?: boolean; // default: true
clickOutsideToClose?: boolean; // default: false
escapeToClose?: boolean; // default: true
focusOnOpen?: boolean; // default: true
controller?: string|Function;
locals?: {[index: string]: any};
bindToController?: boolean; // default: false
- resolve?: {[index: string]: angular.IPromise}
+ resolve?: {[index: string]: angular.IPromise};
controllerAs?: string;
parent?: string|Element|JQuery; // default: root node
onComplete?: Function;
@@ -118,7 +118,7 @@ declare namespace angular.material {
controller?: string|Function;
locals?: {[index: string]: any};
bindToController?: boolean; // default: false
- resolve?: {[index: string]: angular.IPromise}
+ resolve?: {[index: string]: angular.IPromise};
controllerAs?: string;
parent?: string|Element|JQuery; // default: root node
}
diff --git a/angular-material/angular-material-tests.ts b/angular-material/angular-material-tests.ts
index 61bafd49b0..ace99ec451 100644
--- a/angular-material/angular-material-tests.ts
+++ b/angular-material/angular-material-tests.ts
@@ -21,9 +21,9 @@ myApp.config((
.dark(true);
var browserColors: ng.material.IBrowserColors = {
- theme: 'default',
- palette: 'neonRed',
- hue: '500'
+ theme: 'default',
+ palette: 'neonRed',
+ hue: '500'
};
$mdThemingProvider.enableBrowserColor(browserColors);
@@ -185,7 +185,7 @@ myApp.controller('PanelController', ($scope: ng.IScope, $mdPanel: ng.material.IP
disableParentScroll: true,
zIndex: 150
};
-
+
$mdPanel.create(config);
var panelRef = $mdPanel.create(config);
diff --git a/angular-material/index.d.ts b/angular-material/index.d.ts
index ffdab5839b..97d36f2677 100644
--- a/angular-material/index.d.ts
+++ b/angular-material/index.d.ts
@@ -99,7 +99,7 @@ declare module 'angular' {
controller?: string | Function;
locals?: { [index: string]: any };
bindToController?: boolean; // default: false
- resolve?: { [index: string]: () => angular.IPromise }
+ resolve?: { [index: string]: () => angular.IPromise };
controllerAs?: string;
parent?: string | Element | JQuery; // default: root node
onShowing?: Function;
@@ -176,7 +176,7 @@ declare module 'angular' {
controller?: string | Function;
locals?: { [index: string]: any };
bindToController?: boolean; // default: false
- resolve?: { [index: string]: () => angular.IPromise }
+ resolve?: { [index: string]: () => angular.IPromise };
controllerAs?: string;
parent?: string | Element | JQuery; // default: root node
}
@@ -318,7 +318,7 @@ declare module 'angular' {
controllerAs?: string;
bindToController?: boolean; // default: true
locals?: { [index: string]: any };
- resolve?: { [index: string]: () => angular.IPromise }
+ resolve?: { [index: string]: () => angular.IPromise };
attachTo?: string | JQuery | Element;
propagateContainerEvents?: boolean;
panelClass?: string;
diff --git a/angular-media-queries/index.d.ts b/angular-media-queries/index.d.ts
index 1b0cf67d60..b209b9cef3 100644
--- a/angular-media-queries/index.d.ts
+++ b/angular-media-queries/index.d.ts
@@ -14,7 +14,7 @@ declare module 'angular' {
// Returns a value indicating if the current device has a retina screen
isRetina: boolean;
-
+
is(list: Array | string): boolean;
// Executes the callback function on window resize with the match truthiness as the first argument.
@@ -28,7 +28,7 @@ declare module 'angular' {
onChange(scope: angular.IScope, list: Array | string, callback: (result: boolean) => void): boolean;
// Executes the callback only when inside of the particular screensize.
- // The 'scope' parameter is optional. If it's not passed in, '$rootScope' is used.
+ // The 'scope' parameter is optional. If it's not passed in, '$rootScope' is used.
when(list: Array | string, callback: (result: boolean) => void, scope?: angular.IScope): boolean;
}
}
diff --git a/angular-media-queries/match-media-tests.ts b/angular-media-queries/match-media-tests.ts
index e24c43c073..f3cfdd2f62 100644
--- a/angular-media-queries/match-media-tests.ts
+++ b/angular-media-queries/match-media-tests.ts
@@ -9,21 +9,21 @@ myApp.controller('TestController', ($log: angular.ILogService,
var fnCallback = (result: boolean) => {
$log.info(`Result: ${result}`);
}
-
+
// '.isRetina' examples
if(screenSize.isRetina) {
$log.info("Retina screen detected")
}
-
+
// '.is(...)' examples
var res = screenSize.is(["xs", "sm"]);
fnCallback(res);
res = screenSize.is("xs, lg")
fnCallback(res);
-
+
// '.on(...)' examples
-
+
res = screenSize.on(["xs", "sm"], fnCallback);
fnCallback(res);
@@ -35,7 +35,7 @@ myApp.controller('TestController', ($log: angular.ILogService,
res = screenSize.on("xs, lg", fnCallback, $scope);
fnCallback(res);
-
+
// '.onChange(...)' examples
res = screenSize.onChange($scope, ["xs", "sm"], fnCallback);
@@ -43,9 +43,9 @@ myApp.controller('TestController', ($log: angular.ILogService,
res = screenSize.onChange($scope, "xs, lg", fnCallback);
fnCallback(res);
-
+
// '.when(...)' examples
-
+
res = screenSize.when(["xs", "sm"], fnCallback);
fnCallback(res);
diff --git a/angular-meteor/angular-meteor-tests.ts b/angular-meteor/angular-meteor-tests.ts
index 6a379b8bac..99c8bfeae1 100644
--- a/angular-meteor/angular-meteor-tests.ts
+++ b/angular-meteor/angular-meteor-tests.ts
@@ -15,11 +15,11 @@ interface CustomScope extends angular.meteor.IScope {
todos: angular.meteor.AngularMeteorCollection;
stickyTodos: angular.meteor.AngularMeteorCollection;
notAutoTodos: angular.meteor.AngularMeteorCollection;
-
+
todo: ITodo;
todoNotAuto: TodoAngularMeteorObject;
todoSubscribed: TodoAngularMeteorObject;
-
+
save: (todo: ITodo) => void;
saveAll: () =>void;
autoSave: (todo: ITodo) => void;
@@ -36,7 +36,7 @@ var app = angular.module('angularMeteorTestApp');
app.controller("mainCtrl", ['$scope', '$meteor', ($scope: CustomScope, $meteor: angular.meteor.IMeteorService) => {
// Bind all the todos to $scope.todos
$scope.todos = $meteor.collection(Todos);
-
+
$scope.sticky = true;
// Bind all sticky todos to $scope.stickyTodos
// Binds the query to $scope.sticky so that if it changes, Meteor will re-run the query and bind it
@@ -44,46 +44,46 @@ app.controller("mainCtrl", ['$scope', '$meteor', ($scope: CustomScope, $meteor:
$scope.stickyTodos = $meteor.collection(function(){
return Todos.find({sticky: $scope.getReactively('sticky')});
});
-
+
// Bind without auto-save all todos to $scope.notAutoTodos
$scope.notAutoTodos = $meteor.collection(Todos, false).subscribe("publicTodos");
-
+
$scope.todoNotAuto = $meteor.object(Todos, 'TodoID', false);
$scope.todoSubscribed = $meteor.object(Todos, 'TodoID').subscribe('todos');
$scope.todo = $scope.todoNotAuto.getRawObject();
$scope.todoNotAuto.reset();
$scope.todoNotAuto.save($scope.todo).then((data) => { return data == 1; });;
-
+
// todo might be an object like this {text: "Learn Angular", sticky: false}
// or an array like this:
// [{text: "Learn Angular", sticky: false}, {text: "Hello World", sticky: true}]
-
+
$scope.save = function(todo) {
$scope.notAutoTodos.save(todo);
};
-
+
$scope.saveAll = function() {
$scope.notAutoTodos.save();
};
-
+
$scope.autoSave = function(todo) {
$scope.todos.push(todo);
};
-
+
// todoId might be an string like this "WhrnEez5yBRgo4yEm"
// or an array like this ["WhrnEez5yBRgo4yEm","gH6Fa4DXA3XxQjXNS"]
$scope.remove = function(todoId) {
$scope.notAutoTodos.remove(todoId);
};
-
+
$scope.removeAll = function() {
$scope.notAutoTodos.remove();
};
-
+
$scope.removeAuto = function(todo) {
$scope.todos.splice( $scope.todos.indexOf(todo), 1 );
}
-
+
$scope.toSticky = function(todo) {
if (angular.isArray(todo)){
angular.forEach(todo, function(object) {
@@ -92,53 +92,53 @@ app.controller("mainCtrl", ['$scope', '$meteor', ($scope: CustomScope, $meteor:
} else {
todo.sticky = true;
}
-
+
$scope.stickyTodos.save(todo);
};
-
+
var todoObject = {name:'first todo'};
var todosArray = [{name:'second todo'}, {name:'third todo'}];
var todoSecondObject = {name:'forth todo'};
-
+
$scope.todos.save(todoObject); // todos equals [{name:'first todo'}]
-
+
$scope.todos.save(todosArray); // todos equals [{name:'first todo'}, {name:'second todo'}, {name:'third todo'}]
-
+
$scope.todos.push(todoSecondObject); // The scope variable equals to [{name:'first todo'}, {name:'second todo'}, {name:'third todo'}, {name:'forth todo'}]
// but the collection still equals to [{name:'first todo'}, {name:'second todo'}, {name:'third todo'}]
-
+
$scope.todos.save(); // Now the collection also equals to [{name:'first todo'}, {name:'second todo'}, {name:'third todo'}, {name:'forth todo'}]
-
+
$scope.todos.remove('firstTodoId'); // scope and collection equals to [{name:'second todo'}, {name:'third todo'}, {name:'forth todo'}]
-
+
var todoIdsArray = ['secondTodoId', 'thirdTodoId'];
$scope.todos.remove(todoIdsArray); // removes everything matches the array of IDs both in scope and in collection
-
+
$scope.todos.pop(); // removes only in scope
-
+
$scope.todos.remove(); // syncs also in Meteor collection
-
+
// Subscribe ->
-
+
$meteor.subscribe('todos').then((subscriptionHandle) => {
// Bind all the todos to $scope.todos
$scope.todos = $meteor.collection(Todos);
-
+
console.log($scope.todos + ' is ready');
-
+
// You can use the subscription handle to stop the subscription if you want
subscriptionHandle.stop();
});
-
+
$scope.subscribe('todos').then((subscriptionHandle) => {
// Bind all the todos to $scope.books
$scope.todos = $meteor.collection(Todos);
-
+
console.log($scope.todos + ' is ready');
-
+
// No need to stop the subscription, it will automatically close on scope destroy
});
-
+
$meteor.call('subscribe', $scope.todo._id, $scope.currentUser._id).then((data) => {
// Handle success
console.log('success subscribing', data.name);
@@ -146,22 +146,22 @@ app.controller("mainCtrl", ['$scope', '$meteor', ($scope: CustomScope, $meteor:
// Handle error
console.log('failed', err);
});
-
+
if (!$scope.loggingIn) {
$meteor.waitForUser();
-
+
$meteor.requireUser();
-
+
$meteor.requireValidUser(user => {
return user.username == 'admin';
});
-
+
$meteor.loginWithPassword('user', 'password').then(() => {
console.log('Login success');
}, err => {
console.log('Login error - ', err);
});
-
+
$meteor.createUser({
username:'moma',
email:'example@gmail.com',
@@ -172,45 +172,45 @@ app.controller("mainCtrl", ['$scope', '$meteor', ($scope: CustomScope, $meteor:
}, err => {
console.log('Login error - ', err);
});
-
+
$meteor.changePassword('old', 'new232f3').then(() => {
console.log('Change password success');
}, err => {
console.log('Error changing password - ', err);
});
-
+
$meteor.forgotPassword({email: 'sample@gmail.com'}).then(() => {
console.log('Success sending forgot password email');
}, err => {
console.log('Error sending forgot password email - ', err);
});
-
+
$meteor.resetPassword('tokenID', 'new232f3').then(() => {
console.log('Reset password success');
}, err => {
console.log('Error resetting password - ', err);
});
-
+
$meteor.verifyEmail('tokenID').then(() => {
console.log('Success verifying password ');
}, err => {
console.log('Error verifying password - ', err);
});
-
+
$meteor.logout().then(() => {
console.log('Logout success');
}, err => {
console.log('logout error - ', err);
});
-
+
$meteor.logoutOtherClients().then(() => {
console.log('Logout success');
}, err => {
console.log('logout error - ', err);
});
-
+
var loginWithOptions = {requestPermissions: ['email']};
-
+
$meteor.loginWithFacebook({requestPermissions: ['email']}).then(() => {
console.log('Login success');
}, err => {
@@ -242,14 +242,14 @@ app.controller("mainCtrl", ['$scope', '$meteor', ($scope: CustomScope, $meteor:
console.log('Login error - ', err);
});
}
-
+
$meteor.autorun($scope, () => { console.log("Aurorun triggered."); });
$meteor.getCollectionByName('collectionName');
-
+
// requires meteor add mdg:camera
$meteor.getPicture().then(function(data){
$scope['picture'] = data;
});
-
+
$meteor.session('counter').bind($scope, 'counter');
}]);
diff --git a/angular-meteor/index.d.ts b/angular-meteor/index.d.ts
index 8d64d3bae0..31d96243ce 100644
--- a/angular-meteor/index.d.ts
+++ b/angular-meteor/index.d.ts
@@ -51,7 +51,7 @@ declare module 'angular' {
* @param definitions - Object containing `name` => `function` definition, where each name is a string and each function is the helper function. Should return a [MongoDB Cursor](http://docs.meteor.com/#/full/mongo_cursor)
* @return This method returns this, which the the reactive context, in order to provide the ability to chain the logic.
*/
- helpers(definitions : { [helperName : string] : () => Mongo.Cursor }): IScope;
+ helpers(definitions: { [helperName: string]: () => Mongo.Cursor }): IScope;
/**
* This method is a wrapper of Tracker.autorun and shares exactly the same API.
@@ -61,7 +61,7 @@ declare module 'angular' {
*
* @param runFunc - The function to run. It receives one argument: the Computation object that will be returned.
*/
- autorun(runFunc : () => void) : Tracker.Computation;
+ autorun(runFunc: () => void): Tracker.Computation;
}
/**
@@ -76,7 +76,7 @@ declare module 'angular' {
* @param [autoClientSave=true] - By default, changes in the Angular collection will automatically update the Meteor collection.
* - However if set to false, changes in the client won't be automatically propagated back to the Meteor collection.
*/
- collection(collection: Mongo.Collection|ReactiveResult|Function|(()=>T), autoClientSave?: boolean): AngularMeteorCollection;
+ collection(collection: Mongo.Collection|ReactiveResult|Function|(() => T), autoClientSave?: boolean): AngularMeteorCollection;
/**
* A service that wraps the Meteor collections to enable reactivity within AngularJS.
@@ -87,7 +87,7 @@ declare module 'angular' {
* - However if set to false, changes in the client won't be automatically propagated back to the Meteor collection.
* @param [updateCollection] - A collection object which will be used for updates (insert, update, delete).
*/
- collection(collection: Mongo.Collection|ReactiveResult|Function|(()=>T), autoClientSave: boolean, updateCollection: Mongo.Collection): AngularMeteorCollection2;
+ collection(collection: Mongo.Collection|ReactiveResult|Function|(() => T), autoClientSave: boolean, updateCollection: Mongo.Collection): AngularMeteorCollection2;
/**
* A service that wraps a Meteor object to enable reactivity within AngularJS.
@@ -307,7 +307,7 @@ declare module 'angular' {
*
* @param subscriptionName - The subscription name to subscribe to. Exactly like the first parameter in $meteor.subscribe service.
*/
- subscribe(subscriptionName:string): AngularMeteorObject;
+ subscribe(subscriptionName: string): AngularMeteorObject;
}
/**
@@ -342,7 +342,7 @@ declare module 'angular' {
*
* @param subscriptionName - The subscription name to subscribe to. Exactly like the first parameter in $meteor.subscribe service.
*/
- subscribe(subscriptionName:string): AngularMeteorCollection2;
+ subscribe(subscriptionName: string): AngularMeteorCollection2;
}
interface ILoginWithExternalService {
diff --git a/angular-mocks/angular-mocks-tests.ts b/angular-mocks/angular-mocks-tests.ts
index d0d1dc5dce..bea900ffff 100644
--- a/angular-mocks/angular-mocks-tests.ts
+++ b/angular-mocks/angular-mocks-tests.ts
@@ -451,11 +451,11 @@ requestHandler.passThrough().passThrough();
requestHandler.respond((method, url, data, headers) => [404, 'data', { header: 'value' }, 'responseText']);
requestHandler.respond((method, url, data, headers) => [404, 'data', { header: 'value' }, 'responseText']).respond({});
requestHandler.respond((method, url, data, headers) => { return [404, { key: 'value' }, { header: 'value' }, 'responseText']; });
-requestHandler.respond((method, url, data, headers, params) => {
+requestHandler.respond((method, url, data, headers, params) => {
if(params.id === 1) {
return [200, { key: 'value'}, { header: 'value'}, 'responseText'];
} else {
- return [404, { key: 'value' }, { header: 'value' }, 'responseText'];
+ return [404, { key: 'value' }, { header: 'value' }, 'responseText'];
}
});
requestHandler.respond('data');
diff --git a/angular-mocks/index.d.ts b/angular-mocks/index.d.ts
index 8aa172e293..4f0f21890f 100644
--- a/angular-mocks/index.d.ts
+++ b/angular-mocks/index.d.ts
@@ -32,13 +32,13 @@ declare module 'angular' {
// see https://docs.angularjs.org/api/ngMock/function/angular.mock.dump
dump(obj: any): string;
- inject: IInjectStatic
+ inject: IInjectStatic;
// see https://docs.angularjs.org/api/ngMock/function/angular.mock.module
module: {
(...modules: any[]): any;
sharedInjector(): void;
- }
+ };
// see https://docs.angularjs.org/api/ngMock/type/angular.mock.TzDate
TzDate(offset: number, timestamp: number): Date;
diff --git a/angular-odata-resources/index.d.ts b/angular-odata-resources/index.d.ts
index 3af2573bf8..732cbbcf89 100644
--- a/angular-odata-resources/index.d.ts
+++ b/angular-odata-resources/index.d.ts
@@ -72,7 +72,7 @@ declare namespace OData {
// Also, static calls always return the IResource (or IResourceArray) retrieved
// https://github.com/angular/angular.js/blob/v1.2.0/src/ngResource/resource.js#L538-L549
interface IResourceClass {
- new(dataOrParams? : any) : IResource;
+ new(dataOrParams?: any): IResource;
get(): IResource;
get(params: Object): IResource;
get(success: Function, error?: Function): IResource;
@@ -266,7 +266,7 @@ declare namespace OData {
(queryString: string, success: () => any, error: () => any, isSingleElement?: boolean, forceSingleElement?: boolean): T;
}
- interface ICountResult{
+ interface ICountResult {
result: number;
$promise: angular.IPromise;
}
@@ -281,18 +281,18 @@ declare namespace OData {
constructor(callback: ProviderCallback);
filter(operand1: any, operand2?: any, operand3?: any): Provider;
orderBy(arg1: string, arg2?: string): Provider;
- transformUrl(transformMethod : (url:string)=>string): Provider;
+ transformUrl(transformMethod: (url: string) => string): Provider;
take(amount: number): Provider;
skip(amount: number): Provider;
private execute();
- query(success?: ((p:T[])=>void), error?: (()=>void)): T[];
- single(success?: ((p:T)=>void), error?: (()=>void)): T;
- get(key: any, success?: ((p:T)=>void), error?: (()=>void)): T;
+ query(success?: ((p: T[]) => void), error?: (() => void)): T[];
+ single(success?: ((p: T) => void), error?: (() => void)): T;
+ get(key: any, success?: ((p: T) => void), error?: (() => void)): T;
expand(...params: string[]): Provider;
expand(params: string[]): Provider;
select(...params: string[]): Provider;
select(params: string[]): Provider;
- count(success?: (result: ICountResult) => any, error?: () => any):ICountResult;
+ count(success?: (result: ICountResult) => any, error?: () => any): ICountResult;
withInlineCount(): Provider;
}
diff --git a/angular-resource/index.d.ts b/angular-resource/index.d.ts
index afde3cad14..42f34fb02f 100644
--- a/angular-resource/index.d.ts
+++ b/angular-resource/index.d.ts
@@ -52,7 +52,7 @@ declare module 'angular' {
// Hash of action descriptors allows custom action names
interface IActionHash {
- [action: string]: IActionDescriptor
+ [action: string]: IActionDescriptor;
}
// Just a reference to facilitate describing new actions
@@ -70,7 +70,7 @@ declare module 'angular' {
* would be used for multiple requests. If you are looking for a way to cancel requests, you should
* use the cancellable option.
*/
- timeout?: number
+ timeout?: number;
cancellable?: boolean;
withCredentials?: boolean;
responseType?: string;
@@ -115,7 +115,7 @@ declare module 'angular' {
// Also, static calls always return the IResource (or IResourceArray) retrieved
// https://github.com/angular/angular.js/blob/v1.2.0/src/ngResource/resource.js#L538-L549
interface IResourceClass {
- new(dataOrParams? : any) : T & IResource;
+ new(dataOrParams?: any) : T & IResource;
get: IResourceMethod;
query: IResourceArrayMethod;
diff --git a/angular-route/index.d.ts b/angular-route/index.d.ts
index dc1f6507bf..b0fbbe6bf9 100644
--- a/angular-route/index.d.ts
+++ b/angular-route/index.d.ts
@@ -44,7 +44,7 @@ declare module 'angular' {
updateParams(newParams: { [key: string]: string }): void;
}
- type InlineAnnotatedFunction = Function | Array
+ type InlineAnnotatedFunction = Function | Array;
/**
* see http://docs.angularjs.org/api/ngRoute/provider/$routeProvider#when for API documentation
@@ -71,7 +71,7 @@ declare module 'angular' {
*
* {Array.