WIP

WIP

WIP

WIP

WIP

WIP: Remove trailing newlines

WIP

WIP

WIP

WIP

WIP

WIP

WIP

WIP: All tests pass

WIP

WIP

WIP
This commit is contained in:
Andy Hanson
2016-11-28 11:16:06 -08:00
parent cd4debea25
commit 89fa98a712
1473 changed files with 77478 additions and 76346 deletions
+1 -2
View File
@@ -9,8 +9,7 @@
/// <reference types="react-data-grid" />
/// <reference types="three" />
declare module "3d-bin-packing"
{
declare module "3d-bin-packing" {
export = bws.packer;
}
declare var ReactDataGrid: typeof AdazzleReactDataGrid.ReactDataGrid;
+4 -4
View File
@@ -6,7 +6,7 @@
/// <reference types="node"/>
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;
}
+1 -1
View File
@@ -31,6 +31,6 @@ function testWithOptions() {
onInit: function() {},
onDestroy: function() {}
};
$('#test').accwizard(options);
}
+14 -14
View File
@@ -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.
*/
+30 -30
View File
@@ -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;
+33 -33
View File
@@ -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));
}
};
+1 -1
View File
@@ -41,7 +41,7 @@ interface Acl {
allow: {
(roles: Values, resources: strings, permissions: strings, cb?: Callback): Promise<void>;
(aclSets: AclSet | AclSet[]): Promise<void>;
}
};
removeAllow: (role: string, resources: strings, permissions: strings, cb?: Callback) => Promise<void>;
removePermissions: (role: string, resources: strings, permissions: strings, cb?: Function) => Promise<void>;
allowedPermissions: (userId: Value, resources: strings, cb?: AnyCallback) => Promise<void>;
+1 -1
View File
@@ -3,7 +3,7 @@
// Definitions by: Vincent Zhu <https://github.com/zhu1230>
// Definitions: https://github.com/zhu1230/DefinitelyTyped
declare module ActionCable {
declare namespace ActionCable {
interface Channel {
unsubscribe(): void;
perform(action: string, data: {}): void;
+6 -6
View File
@@ -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<string>;
getUser(): angular.IPromise<User>;
getResourceForEndpoint(endpoint: string): string,
getResourceForEndpoint(endpoint: string): string;
clearCache(): void;
clearCacheForResource(resource: string): void;
info(message: string): void;
+5 -5
View File
@@ -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.
*/
+3 -3
View File
@@ -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
+4 -4
View File
@@ -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();
+5 -5
View File
@@ -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.
+4 -4
View File
@@ -86,16 +86,16 @@ declare namespace Ajv {
messages?: boolean;
beautify?: boolean;
cache?: any;
}
};
type AjvValidate = ((data: any) => boolean | PromiseLike<boolean>) & {
errors: ValidationError[];
}
};
type AjxKeywordDefinition = {
async?: boolean;
type: string;
compile?: (schema: any, parentsSchema: any) => ((data: any) => boolean | PromiseLike<boolean>);
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;
+3 -3
View File
@@ -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 });
+82 -82
View File
@@ -8,65 +8,65 @@
declare namespace AltJS {
interface StoreReduce {
action:any;
action: any;
data: any;
}
export interface StoreModel<S> {
//Actions
bindAction?( action:Action<any>, handler:ActionHandler):void;
bindActions?(actions:ActionsClass):void;
bindAction?( action: Action<any>, handler: ActionHandler): void;
bindActions?(actions: ActionsClass): void;
//Methods/Listeners
exportPublicMethods?(exportConfig:any):void;
bindListeners?(config:{[methodName:string]:Action<any> | Actions}):void;
exportAsync?(source:Source):void;
registerAsync?(datasource:Source):void;
exportPublicMethods?(exportConfig: any): void;
bindListeners?(config: {[methodName: string]: Action<any> | 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<any>):void;
setState?(state: S): void;
setState?(stateFn: (currentState: S, nextState: S) => S): void;
getState?(): S;
waitFor?(store: AltStore<any>): 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<any> | Array<AltStore<any>>):void;
otherwise?(data:any, action:AltJS.Action<any>):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<any> | Array<AltStore<any>>): void;
otherwise?(data: any, action: AltJS.Action<any>): 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<S>;
alt?:Alt;
displayName?:string;
getInstance?(): AltJS.AltStore<S>;
alt?: Alt;
displayName?: string;
}
export type Source = {[name:string]: () => SourceModel<any>};
export type Source = {[name: string]: () => SourceModel<any>};
export interface SourceModel<S> {
local(state:any, ...args: any[]):any;
remote(state:any, ...args: any[]):Promise<S>;
shouldFetch?(fetchFn:(...args:Array<any>) => boolean):void;
loading?:(args:any) => void;
success?:(state:S) => void;
error?:(args:any) => void;
interceptResponse?(response:any, action:Action<any>, ...args:Array<any>):any;
local(state: any, ...args: any[]): any;
remote(state: any, ...args: any[]): Promise<S>;
shouldFetch?(fetchFn: (...args: Array<any>) => boolean): void;
loading?: (args: any) => void;
success?: (state: S) => void;
error?: (args: any) => void;
interceptResponse?(response: any, action: Action<any>, ...args: Array<any>): any;
}
export interface AltStore<S> {
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<any>};
export type Actions = {[action: string]: Action<any>};
export interface Action<T> {
( args:T):void;
defer(data:any):void;
( args: T): void;
defer(data: any): void;
}
export interface ActionsClass {
generateActions?( ...action:Array<string>):void;
dispatch( ...payload:Array<any>):void;
actions?:Actions;
generateActions?( ...action: Array<string>): void;
dispatch( ...payload: Array<any>): void;
actions?: Actions;
}
type StateTransform = (store:StoreModel<any>) => AltJS.AltStore<any>;
type StateTransform = (store: StoreModel<any>) => AltJS.AltStore<any>;
interface AltConfig {
dispatcher?:any;
serialize?:(serializeFn:(data:Object) => string) => void;
deserialize?:(deserializeFn:(serialData:string) => Object) => void;
storeTransforms?:Array<StateTransform>;
batchingFunction?:(callback:( ...data:Array<any>) => any) => void;
dispatcher?: any;
serialize?: (serializeFn: (data: Object) => string) => void;
deserialize?: (deserializeFn: (serialData: string) => Object) => void;
storeTransforms?: Array<StateTransform>;
batchingFunction?: (callback: ( ...data: Array<any>) => any) => void;
}
class Alt {
constructor(config?:AltConfig);
actions:Actions;
bootstrap(jsonData:string):void;
takeSnapshot( ...storeNames:Array<string>):string;
flush():Object;
recycle( ...stores:Array<AltJS.AltStore<any>>):void;
rollback():void;
dispatch(action?:AltJS.Action<any>, data?:Object, details?:any):void;
constructor(config?: AltConfig);
actions: Actions;
bootstrap(jsonData: string): void;
takeSnapshot( ...storeNames: Array<string>): string;
flush(): Object;
recycle( ...stores: Array<AltJS.AltStore<any>>): void;
rollback(): void;
dispatch(action?: AltJS.Action<any>, data?: Object, details?: any): void;
//Actions methods
addActions(actionsName:string, ActionsClass: ActionsClassConstructor):void;
createActions<T>(ActionsClass: ActionsClassConstructor, exportObj?: Object):T;
createActions<T>(ActionsClass: ActionsClassConstructor, exportObj?: Object, ...constructorArgs:Array<any>):T;
generateActions<T>( ...actions:Array<string>):T;
getActions(actionsName:string):AltJS.Actions;
addActions(actionsName: string, ActionsClass: ActionsClassConstructor): void;
createActions<T>(ActionsClass: ActionsClassConstructor, exportObj?: Object): T;
createActions<T>(ActionsClass: ActionsClassConstructor, exportObj?: Object, ...constructorArgs: Array<any>): T;
generateActions<T>( ...actions: Array<string>): T;
getActions(actionsName: string): AltJS.Actions;
//Stores methods
addStore(name:string, store:StoreModel<any>, saveStore?:boolean):void;
createStore<S>(store:StoreModel<S>, name?:string):AltJS.AltStore<S>;
getStore(name:string):AltJS.AltStore<any>;
addStore(name: string, store: StoreModel<any>, saveStore?: boolean): void;
createStore<S>(store: StoreModel<S>, name?: string): AltJS.AltStore<S>;
getStore(name: string): AltJS.AltStore<any>;
}
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>) => any;
type ExportConfig = {[key:string]:(...args:Array<any>) => any};
type ActionHandler = ( ...data: Array<any>) => any;
type ExportConfig = {[key: string]: (...args: Array<any>) => 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<any>;
stores?:Array<AltJS.AltStore<any>>;
inject?:{[key:string]:any};
actions?:{[key:string]:Object};
render?:(...props:Array<any>) => React.ReactElement<any>;
flux?:AltJS.Alt;
transform?:(store:AltJS.AltStore<any>, actions:any) => any;
shouldComponentUpdate?:(props:any) => boolean;
component?:React.Component<any, any>;
store?: AltJS.AltStore<any>;
stores?: Array<AltJS.AltStore<any>>;
inject?: {[key: string]: any};
actions?: {[key: string]: Object};
render?: (...props: Array<any>) => React.ReactElement<any>;
flux?: AltJS.Alt;
transform?: (store: AltJS.AltStore<any>, actions: any) => any;
shouldComponentUpdate?: (props: any) => boolean;
component?: React.Component<any, any>;
}
type AltContainer = React.ReactElement<ContainerProps>;
var AltContainer:React.ComponentClass<ContainerProps>;
var AltContainer: React.ComponentClass<ContainerProps>;
export = AltContainer;
}
declare module "alt" {
var alt:AltJS.AltFactory;
var alt: AltJS.AltFactory;
export = alt;
}
+3 -3
View File
@@ -6,9 +6,9 @@
interface ICredentials {
awsId: string,
awsSecret: string,
awsTag: string
awsId: string;
awsSecret: string;
awsTag: string;
}
interface IAmazonProductQueryCallback {
+1 -1
View File
@@ -3,7 +3,7 @@
// Definitions by: Arvydas Sidorenko <https://github.com/Asido>
// Definitions: https://github.com/Asido/DefinitelyTyped
declare module amplitude {
declare namespace amplitude {
interface Config {
batchEvents?: boolean;
cookieExpiration?: number;
+1 -1
View File
@@ -18,7 +18,7 @@ export interface Options {
};
ipml_options?: {
defaultExchangeName?: string;
}
};
conn_options?: any;
}
+1 -1
View File
@@ -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;
+44 -44
View File
@@ -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;
}
}
+14 -14
View File
@@ -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;
}
}
+3 -4
View File
@@ -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;
+4 -4
View File
@@ -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';
}]);
+5 -5
View File
@@ -7,14 +7,14 @@
declare var deferredBootstrapper: angular.IDeferredBootstrapperStatic;
declare module angular {
declare namespace angular {
interface IDeferredBootstrapperStatic {
bootstrap(configParam: IConfigParam): ng.IPromise<boolean>
bootstrap(configParam: IConfigParam): ng.IPromise<boolean>;
}
interface IConfigParam {
element?: Node,
module?: string,
resolve: any
element?: Node;
module?: string;
resolve: any;
}
}
+5 -5
View File
@@ -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;
}
}
+6 -6
View File
@@ -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<string> },
domains: { [environment: string]: Array<string> };
/**
* List of variables split by environment
*/
vars: { [environment: string]: { [variable: string]: any }},
vars: { [environment: string]: { [variable: string]: any }};
}
}
+7 -7
View File
@@ -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;
}
/**
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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();
+2 -2
View File
@@ -8,8 +8,8 @@
declare namespace angular.load {
interface IAngularLoadService {
loadScript(url:string): ng.IPromise<any>;
loadCSS(url:string): ng.IPromise<any>;
loadScript(url: string): ng.IPromise<any>;
loadCSS(url: string): ng.IPromise<any>;
}
}
+2 -2
View File
@@ -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
*/
+3 -3
View File
@@ -12,7 +12,7 @@ declare namespace angular.material {
controller?: any;
locals?: {[index: string]: any};
targetEvent?: any;
resolve?: {[index: string]: angular.IPromise<any>}
resolve?: {[index: string]: angular.IPromise<any>};
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<any>}
resolve?: {[index: string]: angular.IPromise<any>};
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<any>}
resolve?: {[index: string]: angular.IPromise<any>};
controllerAs?: string;
parent?: Element;
}
+4 -4
View File
@@ -14,7 +14,7 @@ declare namespace angular.material {
controller?: string|Function;
locals?: {[index: string]: any};
targetEvent?: MouseEvent;
resolve?: {[index: string]: angular.IPromise<any>}
resolve?: {[index: string]: angular.IPromise<any>};
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<any>}
resolve?: {[index: string]: angular.IPromise<any>};
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<any>}
resolve?: {[index: string]: angular.IPromise<any>};
controllerAs?: string;
parent?: string|Element|JQuery; // default: root node
}
+4 -4
View File
@@ -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);
+3 -3
View File
@@ -99,7 +99,7 @@ declare module 'angular' {
controller?: string | Function;
locals?: { [index: string]: any };
bindToController?: boolean; // default: false
resolve?: { [index: string]: () => angular.IPromise<any> }
resolve?: { [index: string]: () => angular.IPromise<any> };
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<any> }
resolve?: { [index: string]: () => angular.IPromise<any> };
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<any> }
resolve?: { [index: string]: () => angular.IPromise<any> };
attachTo?: string | JQuery | Element;
propagateContainerEvents?: boolean;
panelClass?: string;
+2 -2
View File
@@ -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> | 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> | 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> | string, callback: (result: boolean) => void, scope?: angular.IScope): boolean;
}
}
+7 -7
View File
@@ -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);
+47 -47
View File
@@ -15,11 +15,11 @@ interface CustomScope extends angular.meteor.IScope {
todos: angular.meteor.AngularMeteorCollection<ITodo>;
stickyTodos: angular.meteor.AngularMeteorCollection<ITodo>;
notAutoTodos: angular.meteor.AngularMeteorCollection<ITodo>;
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<ITodo>(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 = <TodoAngularMeteorObject>$meteor.object(Todos, 'TodoID', false);
$scope.todoSubscribed = <TodoAngularMeteorObject>$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<ITodo>('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');
}]);
+6 -6
View File
@@ -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<any> }): IScope;
helpers(definitions: { [helperName: string]: () => Mongo.Cursor<any> }): 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<T>(collection: Mongo.Collection<T>|ReactiveResult|Function|(()=>T), autoClientSave?: boolean): AngularMeteorCollection<T>;
collection<T>(collection: Mongo.Collection<T>|ReactiveResult|Function|(() => T), autoClientSave?: boolean): AngularMeteorCollection<T>;
/**
* 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<T, U>(collection: Mongo.Collection<T>|ReactiveResult|Function|(()=>T), autoClientSave: boolean, updateCollection: Mongo.Collection<U>): AngularMeteorCollection2<T, U>;
collection<T, U>(collection: Mongo.Collection<T>|ReactiveResult|Function|(() => T), autoClientSave: boolean, updateCollection: Mongo.Collection<U>): AngularMeteorCollection2<T, U>;
/**
* 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<T>;
subscribe(subscriptionName: string): AngularMeteorObject<T>;
}
/**
@@ -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<T, U>;
subscribe(subscriptionName: string): AngularMeteorCollection2<T, U>;
}
interface ILoginWithExternalService {
+2 -2
View File
@@ -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');
+2 -2
View File
@@ -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;
+7 -7
View File
@@ -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<T> {
new(dataOrParams? : any) : IResource<T>;
new(dataOrParams?: any): IResource<T>;
get(): IResource<T>;
get(params: Object): IResource<T>;
get(success: Function, error?: Function): IResource<T>;
@@ -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<any>;
}
@@ -281,18 +281,18 @@ declare namespace OData {
constructor(callback: ProviderCallback<T>);
filter(operand1: any, operand2?: any, operand3?: any): Provider<T>;
orderBy(arg1: string, arg2?: string): Provider<T>;
transformUrl(transformMethod : (url:string)=>string): Provider<T>;
transformUrl(transformMethod: (url: string) => string): Provider<T>;
take(amount: number): Provider<T>;
skip(amount: number): Provider<T>;
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<T>;
expand(params: string[]): Provider<T>;
select(...params: string[]): Provider<T>;
select(params: string[]): Provider<T>;
count(success?: (result: ICountResult) => any, error?: () => any):ICountResult;
count(success?: (result: ICountResult) => any, error?: () => any): ICountResult;
withInlineCount(): Provider<T>;
}
+3 -3
View File
@@ -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<T> {
new(dataOrParams? : any) : T & IResource<T>;
new(dataOrParams?: any) : T & IResource<T>;
get: IResourceMethod<T>;
query: IResourceArrayMethod<T>;
+3 -3
View File
@@ -44,7 +44,7 @@ declare module 'angular' {
updateParams(newParams: { [key: string]: string }): void;
}
type InlineAnnotatedFunction = Function | Array<string | Function>
type InlineAnnotatedFunction = Function | Array<string | Function>;
/**
* see http://docs.angularjs.org/api/ngRoute/provider/$routeProvider#when for API documentation
@@ -71,7 +71,7 @@ declare module 'angular' {
*
* {Array.<Object>} - route parameters extracted from the current $location.path() by applying the current route
*/
template?: string | { ($routeParams?: angular.route.IRouteParamsService): string; }
template?: string | { ($routeParams?: angular.route.IRouteParamsService): string; };
/**
* {string=|function()=}
* Path or function that returns a path to an html template that should be used by ngView.
@@ -80,7 +80,7 @@ declare module 'angular' {
*
* {Array.<Object>} - route parameters extracted from the current $location.path() by applying the current route
*/
templateUrl?: string | { ($routeParams?: angular.route.IRouteParamsService): string; }
templateUrl?: string | { ($routeParams?: angular.route.IRouteParamsService): string; };
/**
* {Object.<string, function>=} - An optional map of dependencies which should be injected into the controller. If any of these dependencies are promises, the router will wait for them all to be resolved or one to be rejected before the controller is instantiated. If all the promises are resolved successfully, the values of the resolved promises are injected and $routeChangeSuccess event is fired. If any of the promises are rejected the $routeChangeError event is fired. The map object is:
*
+1 -1
View File
@@ -16,7 +16,7 @@ declare namespace ngSignalr {
/**
* Creates a new Hub connection
*/
new (hubName: string, options: HubOptions): Hub
new (hubName: string, options: HubOptions): Hub;
}
class Hub {
+3 -3
View File
@@ -6,20 +6,20 @@
/// <reference types="angular" />
/**
* SpinnerService
* SpinnerService
* see https://github.com/urish/angular-spinner
*/
interface ISpinnerService {
/**
* Start selected spinner
*
*
* @param spinner key
*/
spin(key: string): void;
/**
* Stop selected spinner
*
*
* @param spinner key
*/
stop(key: string): void;
+3 -3
View File
@@ -143,7 +143,7 @@ class UrlLocatorTestService implements IUrlLocatorTestService {
private $state: ng.ui.IStateService
) {
$rootScope.$on("$locationChangeSuccess", (event: ng.IAngularEvent) => this.onLocationChangeSuccess(event));
$rootScope.$on('$stateNotFound', (event: ng.IAngularEvent, unfoundState: ng.ui.IUnfoundState, fromState: ng.ui.IState, fromParams: {}) =>
$rootScope.$on('$stateNotFound', (event: ng.IAngularEvent, unfoundState: ng.ui.IUnfoundState, fromState: ng.ui.IState, fromParams: {}) =>
this.onStateNotFound(event, unfoundState, fromState, fromParams));
}
@@ -166,14 +166,14 @@ class UrlLocatorTestService implements IUrlLocatorTestService {
});
}
}
private onStateNotFound(event: ng.IAngularEvent,
unfoundState: ng.ui.IUnfoundState,
fromState: ng.ui.IState,
fromParams: {}) {
var unfoundTo: string = unfoundState.to;
var unfoundToParams: {} = unfoundState.toParams;
var unfoundOptions: ng.ui.IStateOptions = unfoundState.options
var unfoundOptions: ng.ui.IStateOptions = unfoundState.options
}
private stateServiceTest() {
+3 -3
View File
@@ -97,9 +97,9 @@ declare module 'angular' {
}
interface IUnfoundState {
to: string,
toParams: {},
options: IStateOptions
to: string;
toParams: {};
options: IStateOptions;
}
interface IStateProvider extends angular.IServiceProvider {
+1 -1
View File
@@ -54,7 +54,7 @@ declare module 'angular' {
/**
* Holds the ui-sortable element that the dragged item originated from.
*/
source: ng.IAugmentedJQuery
source: ng.IAugmentedJQuery;
/**
* Holds the array that is specified by the `ng-model` of the [`source`](#source) ui-sortable element.
+16 -16
View File
@@ -12,14 +12,14 @@ declare module "angular" {
* Options available to be specified for IWebSocketProvider.
*/
type IWebSocketConfigOptions = {
scope?: ng.IScope;
rootScopeFailOver?: boolean;
useApplyAsync?: boolean;
initialTimeout?: number;
maxTimeout?: number;
binaryType?: "blob" | "arraybuffer";
reconnectIfNotNormalClose?: boolean;
}
scope?: ng.IScope;
rootScopeFailOver?: boolean;
useApplyAsync?: boolean;
initialTimeout?: number;
maxTimeout?: number;
binaryType?: "blob" | "arraybuffer";
reconnectIfNotNormalClose?: boolean;
};
interface IWebSocketProvider {
/**
* Creates and opens an IWebSocket instance.
@@ -41,20 +41,20 @@ declare module "angular" {
/** If true, each message handled will safely call `$rootScope.$digest()`. */
autoApply?: boolean;
}
};
/** Type corresponding to onMessage callbaks stored in $Websocket#onMessageCallbacks instance. */
type IWebSocketMessageHandler = {
fn: (evt: MessageEvent) => void;
pattern: string | RegExp;
autoApply: boolean;
}
fn: (evt: MessageEvent) => void;
pattern: string | RegExp;
autoApply: boolean;
};
/** Type corresponding to items stored in $WebSocket#sendQueue instance. */
type IWebSocketQueueItem = {
message: any;
defered: ng.IPromise<void>;
}
message: any;
defered: ng.IPromise<void>;
};
interface IWebSocket {
+1 -1
View File
@@ -9,6 +9,6 @@ import * as angular from 'angular';
declare module 'angular' {
interface IAngularStatic {
throttle:( fn:Function, throttle:number, options?:{leading?:boolean; trailing?:boolean;} ) => Function;
throttle: (fn: Function, throttle: number, options?: {leading?: boolean; trailing?: boolean}) => Function;
}
}
+30 -30
View File
@@ -1436,7 +1436,7 @@ declare namespace angular {
(data: any, headersGetter: IHttpHeadersGetter, status: number): any;
}
type HttpHeaderType = {[requestType: string]:string|((config:IRequestConfig) => string)};
type HttpHeaderType = {[requestType: string]: string|((config: IRequestConfig) => string)};
interface IHttpRequestConfigHeaders {
[requestType: string]: any;
@@ -1529,7 +1529,7 @@ declare namespace angular {
* @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining.
* otherwise, returns the current configured value.
*/
useLegacyPromiseExtensions(value:boolean) : boolean | IHttpProvider;
useLegacyPromiseExtensions(value: boolean): boolean | IHttpProvider;
}
///////////////////////////////////////////////////////////////////////////
@@ -1852,7 +1852,7 @@ declare namespace angular {
///////////////////////////////////////////////////////////////////////////
// AUTO module (angular.js)
///////////////////////////////////////////////////////////////////////////
export module auto {
export namespace auto {
///////////////////////////////////////////////////////////////////////
// InjectorService
@@ -1862,33 +1862,33 @@ declare namespace angular {
annotate(fn: Function, strictDi?: boolean): string[];
annotate(inlineAnnotatedFunction: any[]): string[];
get<T>(name: string, caller?: string): T;
get(name: '$anchorScroll'): IAnchorScrollService
get(name: '$cacheFactory'): ICacheFactoryService
get(name: '$compile'): ICompileService
get(name: '$controller'): IControllerService
get(name: '$document'): IDocumentService
get(name: '$exceptionHandler'): IExceptionHandlerService
get(name: '$filter'): IFilterService
get(name: '$http'): IHttpService
get(name: '$httpBackend'): IHttpBackendService
get(name: '$httpParamSerializer'): IHttpParamSerializer
get(name: '$httpParamSerializerJQLike'): IHttpParamSerializer
get(name: '$interpolate'): IInterpolateService
get(name: '$interval'): IIntervalService
get(name: '$locale'): ILocaleService
get(name: '$location'): ILocationService
get(name: '$log'): ILogService
get(name: '$parse'): IParseService
get(name: '$q'): IQService
get(name: '$rootElement'): IRootElementService
get(name: '$rootScope'): IRootScopeService
get(name: '$sce'): ISCEService
get(name: '$sceDelegate'): ISCEDelegateService
get(name: '$templateCache'): ITemplateCacheService
get(name: '$templateRequest'): ITemplateRequestService
get(name: '$timeout'): ITimeoutService
get(name: '$window'): IWindowService
get<T>(name: '$xhrFactory'): IXhrFactory<T>
get(name: '$anchorScroll'): IAnchorScrollService;
get(name: '$cacheFactory'): ICacheFactoryService;
get(name: '$compile'): ICompileService;
get(name: '$controller'): IControllerService;
get(name: '$document'): IDocumentService;
get(name: '$exceptionHandler'): IExceptionHandlerService;
get(name: '$filter'): IFilterService;
get(name: '$http'): IHttpService;
get(name: '$httpBackend'): IHttpBackendService;
get(name: '$httpParamSerializer'): IHttpParamSerializer;
get(name: '$httpParamSerializerJQLike'): IHttpParamSerializer;
get(name: '$interpolate'): IInterpolateService;
get(name: '$interval'): IIntervalService;
get(name: '$locale'): ILocaleService;
get(name: '$location'): ILocationService;
get(name: '$log'): ILogService;
get(name: '$parse'): IParseService;
get(name: '$q'): IQService;
get(name: '$rootElement'): IRootElementService;
get(name: '$rootScope'): IRootScopeService;
get(name: '$sce'): ISCEService;
get(name: '$sceDelegate'): ISCEDelegateService;
get(name: '$templateCache'): ITemplateCacheService;
get(name: '$templateRequest'): ITemplateRequestService;
get(name: '$timeout'): ITimeoutService;
get(name: '$window'): IWindowService;
get<T>(name: '$xhrFactory'): IXhrFactory<T>;
has(name: string): boolean;
instantiate<T>(typeConstructor: Function, locals?: any): T;
invoke(inlineAnnotatedFunction: any[]): any;
+6 -6
View File
@@ -10,7 +10,7 @@ declare var angular: ng.IAngularStatic;
// Support for painless dependency injection
interface Function {
$inject:string[];
$inject: string[];
}
///////////////////////////////////////////////////////////////////////////////
@@ -93,8 +93,8 @@ declare namespace ng {
constant(object: Object): IModule;
controller(name: string, controllerConstructor: Function): IModule;
controller(name: string, inlineAnnotadedConstructor: any[]): IModule;
controller(object : Object): IModule;
directive(name: string, directiveFactory: (...params:any[])=> IDirective): IModule;
controller(object: Object): IModule;
directive(name: string, directiveFactory: (...params: any[]) => IDirective): IModule;
directive(name: string, inlineAnnotadedFunction: any[]): IModule;
directive(object: Object): IModule;
factory(name: string, serviceFactoryFunction: Function): IModule;
@@ -125,7 +125,7 @@ declare namespace ng {
///////////////////////////////////////////////////////////////////////////
interface IAttributes {
$set(name: string, value: any): void;
$observe(name: string, fn:(value?:any)=>any):void;
$observe(name: string, fn: (value?: any) => any): void;
$attr: any;
}
@@ -669,7 +669,7 @@ declare namespace ng {
// and http://docs.angularjs.org/guide/directive
///////////////////////////////////////////////////////////////////////////
interface IDirective{
interface IDirective {
priority?: number;
template?: any;
templateUrl?: any;
@@ -722,7 +722,7 @@ declare namespace ng {
///////////////////////////////////////////////////////////////////////////
// AUTO module (angular.js)
///////////////////////////////////////////////////////////////////////////
export module auto {
export namespace auto {
///////////////////////////////////////////////////////////////////////
// InjectorService
+6 -6
View File
@@ -164,7 +164,7 @@ declare namespace ng {
* @param controllerConstructor Controller constructor fn (optionally decorated with DI annotations in the array notation).
*/
controller(name: string, inlineAnnotatedConstructor: any[]): IModule;
controller(object : Object): IModule;
controller(object: Object): IModule;
directive(name: string, directiveFactory: IDirectiveFactory): IModule;
directive(name: string, inlineAnnotatedFunction: any[]): IModule;
directive(object: Object): IModule;
@@ -245,7 +245,7 @@ declare namespace ng {
// The observer function will be invoked once during the next $digest
// following compilation. The observer is then invoked whenever the
// interpolated value changes.
$observe(name: string, fn:(value?:any)=>any): Function;
$observe(name: string, fn: (value?: any) => any): Function;
// A map of DOM element attribute names to the normalized name. This is needed
// to do reverse lookup from normalized name back to actual name.
@@ -347,7 +347,7 @@ declare namespace ng {
$watchCollection(watchExpression: (scope: IScope) => any, listener: (newValue: any, oldValue: any, scope: IScope) => any): Function;
$watchGroup(watchExpressions: any[], listener: (newValue: any, oldValue: any, scope: IScope) => any): Function;
$watchGroup(watchExpressions: {(scope: IScope) : any}[], listener: (newValue: any, oldValue: any, scope: IScope) => any): Function;
$watchGroup(watchExpressions: {(scope: IScope): any}[], listener: (newValue: any, oldValue: any, scope: IScope) => any): Function;
$parent: IScope;
@@ -647,13 +647,13 @@ declare namespace ng {
catch<TResult>(onRejected: (reason: any) => IPromise<TResult>): IPromise<TResult>;
catch<TResult>(onRejected: (reason: any) => TResult): IPromise<TResult>;
finally<TResult>(finallyCallback: ()=>any):IPromise<TResult>;
finally<TResult>(finallyCallback: () => any): IPromise<TResult>;
}
interface IDeferred<T> {
resolve(value?: T): void;
reject(reason?: any): void;
notify(state?:any): void;
notify(state?: any): void;
promise: IPromise<T>;
}
@@ -1127,7 +1127,7 @@ declare namespace ng {
///////////////////////////////////////////////////////////////////////////
// AUTO module (angular.js)
///////////////////////////////////////////////////////////////////////////
export module auto {
export namespace auto {
///////////////////////////////////////////////////////////////////////
// InjectorService
+6 -6
View File
@@ -293,8 +293,8 @@ declare namespace angular {
* @param name The name of the service to decorate
* @param decorator This function will be invoked when the service needs to be instantiated and should return the decorated service instance. The function is called using the injector.invoke method and is therefore fully injectable. Local injection arguments: $delegate - The original service instance, which can be monkey patched, configured, decorated or delegated to.
*/
decorator(name:string, decoratorConstructor: Function): IModule;
decorator(name:string, inlineAnnotatedConstructor: any[]): IModule;
decorator(name: string, decoratorConstructor: Function): IModule;
decorator(name: string, inlineAnnotatedConstructor: any[]): IModule;
// Properties
name: string;
@@ -1504,7 +1504,7 @@ declare namespace angular {
* @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining.
* otherwise, returns the current configured value.
*/
useLegacyPromiseExtensions(value:boolean) : boolean | IHttpProvider;
useLegacyPromiseExtensions(value: boolean): boolean | IHttpProvider;
}
///////////////////////////////////////////////////////////////////////////
@@ -1715,7 +1715,7 @@ declare namespace angular {
* Whether transclusion is enabled. Enabled by default.
*/
transclude?: boolean;
require? : Object;
require?: Object;
$canActivate?: () => boolean;
$routeConfig?: RouteDefinition[];
}
@@ -1766,7 +1766,7 @@ declare namespace angular {
name?: string;
priority?: number;
replace?: boolean;
require? : any;
require?: any;
restrict?: string;
scope?: any;
template?: string | Function;
@@ -1814,7 +1814,7 @@ declare namespace angular {
///////////////////////////////////////////////////////////////////////////
// AUTO module (angular.js)
///////////////////////////////////////////////////////////////////////////
export module auto {
export namespace auto {
///////////////////////////////////////////////////////////////////////
// InjectorService
+1 -1
View File
@@ -133,7 +133,7 @@ declare namespace ng {
whenPUT(url: RegExp, data?: RegExp, headers?: any): mock.IRequestHandler;
}
export module mock {
export namespace mock {
// returned interface by the the mocked HttpBackendService expect/when methods
interface IRequestHandler {
+1 -1
View File
@@ -209,7 +209,7 @@ declare namespace ng {
whenPUT(url: RegExp, data?: Object, headers?: Object): mock.IRequestHandler;
}
export module mock {
export namespace mock {
// returned interface by the the mocked HttpBackendService expect/when methods
interface IRequestHandler {
+8 -9
View File
@@ -59,7 +59,7 @@ declare namespace ng.resource {
// 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<T> {
new(dataOrParams? : any) : T;
new(dataOrParams?: any): T;
get(): T;
get(params: Object): T;
get(success: Function, error?: Function): T;
@@ -115,8 +115,8 @@ declare namespace ng.resource {
$delete(success: Function, error?: Function): ng.IPromise<T>;
/** the promise of the original server interaction that created this instance. **/
$promise : ng.IPromise<T>;
$resolved : boolean;
$promise: ng.IPromise<T>;
$resolved: boolean;
}
/**
@@ -124,8 +124,8 @@ declare namespace ng.resource {
*/
interface IResourceArray<T> extends Array<T> {
/** the promise of the original server interaction that created this collection. **/
$promise : ng.IPromise<IResourceArray<T>>;
$resolved : boolean;
$promise: ng.IPromise<IResourceArray<T>>;
$resolved: boolean;
}
/** when creating a resource factory via IModule.factory */
@@ -144,9 +144,8 @@ declare namespace ng {
}
}
interface Array<T>
{
interface Array<T> {
/** the promise of the original server interaction that created this collection. **/
$promise : ng.IPromise<Array<T>>;
$resolved : boolean;
$promise: ng.IPromise<Array<T>>;
$resolved: boolean;
}
+9 -10
View File
@@ -82,7 +82,7 @@ declare namespace angular.resource {
// 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<T> {
new(dataOrParams? : any) : T;
new(dataOrParams?: any): T;
get(): T;
get(params: Object): T;
get(success: Function, error?: Function): T;
@@ -138,11 +138,11 @@ declare namespace angular.resource {
$delete(success: Function, error?: Function): angular.IPromise<T>;
/** the promise of the original server interaction that created this instance. **/
$promise : angular.IPromise<T>;
$resolved : boolean;
$promise: angular.IPromise<T>;
$resolved: boolean;
toJSON: () => {
[index: string]: any;
}
};
}
/**
@@ -150,8 +150,8 @@ declare namespace angular.resource {
*/
interface IResourceArray<T> extends Array<T & IResource<T>> {
/** the promise of the original server interaction that created this collection. **/
$promise : angular.IPromise<IResourceArray<T>>;
$resolved : boolean;
$promise: angular.IPromise<IResourceArray<T>>;
$resolved: boolean;
}
/** when creating a resource factory via IModule.factory */
@@ -177,9 +177,8 @@ declare namespace angular {
}
}
interface Array<T>
{
interface Array<T> {
/** the promise of the original server interaction that created this collection. **/
$promise : angular.IPromise<Array<T>>;
$resolved : boolean;
$promise: angular.IPromise<Array<T>>;
$resolved: boolean;
}
+1 -1
View File
@@ -23,7 +23,7 @@ declare namespace ng.sanitize {
// Filters included with the ngSanitize
// see https://code.angularjs.org/1.2.26/docs/api/ngSanitize/filter
///////////////////////////////////////////////////////////////////////////
export module filter {
export namespace filter {
// Finds links in text input and turns them into html links.
// Supports http/https/ftp/mailto and plain email address links.
+2 -2
View File
@@ -61,7 +61,7 @@ declare namespace angularScenario {
toBeGreaterThan(value: any): void;
}
export interface CustomMatchers extends Matchers{
export interface CustomMatchers extends Matchers {
}
export interface Expect extends CustomMatchers {
@@ -97,7 +97,7 @@ declare namespace angularScenario {
export interface Element {
count(): Future;
click(): any;
query(callback: (selectedDOMElements: any[], callbackWhenDone: (objNull: any, futureValue: any) => any) =>any): any;
query(callback: (selectedDOMElements: any[], callbackWhenDone: (objNull: any, futureValue: any) => any) => any): any;
val(): Future;
text(): Future;
html(): Future;
+3 -3
View File
@@ -24,7 +24,7 @@ interface AngularFire {
$update(key: string, data: Object): ng.IPromise<Firebase>;
$update(data: any): ng.IPromise<Firebase>;
$transaction(updateFn: (currentData: any) => any, applyLocally?: boolean): ng.IPromise<FirebaseDataSnapshot>;
$transaction(key:string, updateFn: (currentData: any) => any, applyLocally?: boolean): ng.IPromise<FirebaseDataSnapshot>;
$transaction(key: string, updateFn: (currentData: any) => any, applyLocally?: boolean): ng.IPromise<FirebaseDataSnapshot>;
}
/**
@@ -111,7 +111,7 @@ interface AngularFireObject extends AngularFireSimpleObject {
* @param {object} scope
* @param {string} varName
* @returns a promise which resolves to an unbind method after data is set in scope
*/
*/
$bindTo(scope: ng.IScope, varName: string): ng.IPromise<any>;
/**
@@ -124,7 +124,7 @@ interface AngularFireObject extends AngularFireSimpleObject {
* @param {Function} cb
* @param {Object} [context]
* @returns {Function} invoke to stop observing events
*/
*/
$watch(callback: Function, context?: any): Function;
/**
+9 -9
View File
@@ -7,12 +7,12 @@
declare namespace angulartics {
interface IAngularticsStatic {
waitForVendorApi(objectName:string, delay:number, containsField?:any, registerFn?:any, onTimeout?:boolean): void;
waitForVendorApi(objectName: string, delay: number, containsField?: any, registerFn?: any, onTimeout?: boolean): void;
}
interface IAnalyticsService {
eventTrack(eventName: string, properties?: any): any;
pageTrack(path:string, location?:angular.ILocationService): any;
pageTrack(path: string, location?: angular.ILocationService): any;
setAlias(alias: string): any;
setUsername(username: string): any;
setUserProperties(properties: any): any;
@@ -27,12 +27,12 @@ declare namespace angulartics {
withAutoBase(value: boolean): void;
developerMode(value: boolean): void;
registerPageTrack(callback:(path:string, location?:angular.ILocationService) => any): void;
registerPageTrack(callback: (path: string, location?: angular.ILocationService) => any): void;
registerEventTrack(callback: (eventName: string, properties?: any) => any): void;
registerSetAlias(callback: (alias: string) => any): void
registerSetUsername(callback: (username: string) => any): void
registerSetUserProperties(callback: (userProperties: any) => any): void
registerSetSuperProperties(callback: (superProperties: any) => any): void
registerSetAlias(callback: (alias: string) => any): void;
registerSetUsername(callback: (username: string) => any): void;
registerSetUserProperties(callback: (userProperties: any) => any): void;
registerSetSuperProperties(callback: (superProperties: any) => any): void;
settings: {
pageTracking: {
@@ -42,8 +42,8 @@ declare namespace angulartics {
autoBasePath: boolean
},
developerMode: boolean
}
};
}
}
declare var angulartics:angulartics.IAngularticsStatic;
declare var angulartics: angulartics.IAngularticsStatic;
+24 -24
View File
@@ -3,33 +3,33 @@ import ansi = require('ansi-styles');
var styles = [
ansi.reset,
ansi.reset,
ansi.bold,
ansi.dim,
ansi.italic,
ansi.underline,
ansi.inverse,
ansi.hidden,
ansi.strikethrough,
ansi.bold,
ansi.dim,
ansi.italic,
ansi.underline,
ansi.inverse,
ansi.hidden,
ansi.strikethrough,
ansi.black,
ansi.red,
ansi.green,
ansi.yellow,
ansi.blue,
ansi.magenta,
ansi.cyan,
ansi.white,
ansi.gray,
ansi.black,
ansi.red,
ansi.green,
ansi.yellow,
ansi.blue,
ansi.magenta,
ansi.cyan,
ansi.white,
ansi.gray,
ansi.bgBlack,
ansi.bgRed,
ansi.bgGreen,
ansi.bgYellow,
ansi.bgBlue,
ansi.bgMagenta,
ansi.bgCyan,
ansi.bgBlack,
ansi.bgRed,
ansi.bgGreen,
ansi.bgYellow,
ansi.bgBlue,
ansi.bgMagenta,
ansi.bgCyan,
ansi.bgWhite
]
+555 -558
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -153,7 +153,7 @@ export interface Queryable extends events.EventEmitter {
* The second form is not needed for normal use, but must be implemented by adapters to work correctly
* with ConnectionPool and Transaction. See Adapter.createQuery for more details.
*/
query(text: string, params?: any[], callback?: (error: Error, results: ResultSet) => void): Query
query(text: string, params?: any[], callback?: (error: Error, results: ResultSet) => void): Query;
/**
* The second form is not needed for normal use, but must be implemented by adapters to work correctly
+94 -94
View File
@@ -5,9 +5,9 @@
interface AnyDBPool extends anydbSQL.DatabaseConnection {
query: (text: string, values: any[], callback: (err: Error, result: any) => void) => void
begin: () => anydbSQL.Transaction
close: (err: Error) => void
query: (text: string, values: any[], callback: (err: Error, result: any) => void) => void;
begin: () => anydbSQL.Transaction;
close: (err: Error) => void;
}
interface Dictionary<T> { [key: string]: T; }
@@ -17,109 +17,109 @@ declare namespace anydbSQL {
export interface ColumnDefinition {
primaryKey?: boolean;
dataType?: string;
references?: { table: string; column: string }
notNull?: boolean
references?: { table: string; column: string };
notNull?: boolean;
}
export interface TableDefinition {
name: string
columns: Dictionary<ColumnDefinition>
has?: Dictionary<{ from: string; many?: boolean }>
name: string;
columns: Dictionary<ColumnDefinition>;
has?: Dictionary<{ from: string; many?: boolean }>;
}
export interface QueryLike {
query: string;
values: any[]
text: string
values: any[];
text: string;
}
export interface DatabaseConnection {
queryAsync<T>(query: string, ...params: any[]): Promise<{ rowCount: number; rows: T[] }>
queryAsync<T>(query: QueryLike): Promise<{ rowCount: number; rows: T[] }>
queryAsync<T>(query: string, ...params: any[]): Promise<{ rowCount: number; rows: T[] }>;
queryAsync<T>(query: QueryLike): Promise<{ rowCount: number; rows: T[] }>;
}
export interface Transaction extends DatabaseConnection {
rollback(): void
commitAsync(): Promise<void>
rollback(): void;
commitAsync(): Promise<void>;
}
export interface SubQuery<T> {
select(node: Column<T>): SubQuery<T>
where(...nodes: any[]): SubQuery<T>
from(table: TableNode): SubQuery<T>
group(...nodes: any[]): SubQuery<T>
order(criteria: OrderByValueNode): SubQuery<T>
notExists(subQuery: SubQuery<any>): SubQuery<T>
select(node: Column<T>): SubQuery<T>;
where(...nodes: any[]): SubQuery<T>;
from(table: TableNode): SubQuery<T>;
group(...nodes: any[]): SubQuery<T>;
order(criteria: OrderByValueNode): SubQuery<T>;
notExists(subQuery: SubQuery<any>): SubQuery<T>;
}
interface Executable<T> {
get(): Promise<T>
getWithin(tx: DatabaseConnection): Promise<T>
exec(): Promise<void>
all(): Promise<T[]>
execWithin(tx: DatabaseConnection): Promise<void>
allWithin(tx: DatabaseConnection): Promise<T[]>
get(): Promise<T>;
getWithin(tx: DatabaseConnection): Promise<T>;
exec(): Promise<void>;
all(): Promise<T[]>;
execWithin(tx: DatabaseConnection): Promise<void>;
allWithin(tx: DatabaseConnection): Promise<T[]>;
toQuery(): QueryLike;
}
interface Queryable<T> {
where(...nodes: any[]): Query<T>
delete(): ModifyingQuery
select<U>(...nodes: any[]): Query<U>
selectDeep<U>(table: Table<T>): Query<T>
selectDeep<U>(...nodesOrTables: any[]): Query<U>
where(...nodes: any[]): Query<T>;
delete(): ModifyingQuery;
select<U>(...nodes: any[]): Query<U>;
selectDeep<U>(table: Table<T>): Query<T>;
selectDeep<U>(...nodesOrTables: any[]): Query<U>;
}
export interface Query<T> extends Executable<T>, Queryable<T> {
from(table: TableNode): Query<T>
update(o: Dictionary<any>): ModifyingQuery
update(o: {}): ModifyingQuery
group(...nodes: any[]): Query<T>
order(...criteria: OrderByValueNode[]): Query<T>
limit(l: number): Query<T>
offset(o: number): Query<T>
from(table: TableNode): Query<T>;
update(o: Dictionary<any>): ModifyingQuery;
update(o: {}): ModifyingQuery;
group(...nodes: any[]): Query<T>;
order(...criteria: OrderByValueNode[]): Query<T>;
limit(l: number): Query<T>;
offset(o: number): Query<T>;
}
export interface ModifyingQuery extends Executable<void> {
returning<U>(...nodes: any[]): Query<U>
where(...nodes: any[]): ModifyingQuery
returning<U>(...nodes: any[]): Query<U>;
where(...nodes: any[]): ModifyingQuery;
}
export interface TableNode {
join(table: TableNode): JoinTableNode
leftJoin(table: TableNode): JoinTableNode
join(table: TableNode): JoinTableNode;
leftJoin(table: TableNode): JoinTableNode;
}
export interface JoinTableNode extends TableNode {
on(filter: BinaryNode): TableNode
on(filter: string): TableNode
on(filter: BinaryNode): TableNode;
on(filter: string): TableNode;
}
interface CreateQuery extends Executable<void> {
ifNotExists(): Executable<void>
ifNotExists(): Executable<void>;
}
interface DropQuery extends Executable<void> {
ifExists(): Executable<void>
ifExists(): Executable<void>;
}
export interface Table<T> extends TableNode, Queryable<T> {
create(): CreateQuery
drop(): DropQuery
as(name: string): Table<T>
update(o: any): ModifyingQuery
insert(row: T): ModifyingQuery
insert(rows: T[]): ModifyingQuery
select(): Query<T>
select<U>(...nodes: any[]): Query<U>
from<U>(table: TableNode): Query<U>
star(): Column<any>
subQuery<U>(): SubQuery<U>
create(): CreateQuery;
drop(): DropQuery;
as(name: string): Table<T>;
update(o: any): ModifyingQuery;
insert(row: T): ModifyingQuery;
insert(rows: T[]): ModifyingQuery;
select(): Query<T>;
select<U>(...nodes: any[]): Query<U>;
from<U>(table: TableNode): Query<U>;
star(): Column<any>;
subQuery<U>(): SubQuery<U>;
eventEmitter: {
emit: (type: string, ...args: any[]) => void
on: (eventName: string, handler: Function) => void
}
columns: Column<any>[]
emit: (type: string, ...args: any[]) => void;
on: (eventName: string, handler: Function) => void;
};
columns: Column<any>[];
sql: SQL;
alter(): AlterQuery<T>
alter(): AlterQuery<T>;
}
export interface AlterQuery<T> extends Executable<void> {
addColumn(column: Column<any>): AlterQuery<T>;
@@ -128,59 +128,59 @@ declare namespace anydbSQL {
renameColumn(column: Column<any>, newColumn: Column<any>): AlterQuery<T>;
renameColumn(column: Column<any>, newName: string): AlterQuery<T>;
renameColumn(name: string, newName: string): AlterQuery<T>;
rename(newName: string): AlterQuery<T>
rename(newName: string): AlterQuery<T>;
}
export interface SQL {
functions: {
LOWER(c: Column<string>): Column<string>
}
};
}
export interface BinaryNode {
and(node: BinaryNode): BinaryNode
or(node: BinaryNode): BinaryNode
and(node: BinaryNode): BinaryNode;
or(node: BinaryNode): BinaryNode;
}
export interface Column<T> {
in(arr: T[]): BinaryNode
in(subQuery: SubQuery<T>): BinaryNode
notIn(arr: T[]): BinaryNode
equals(node: any): BinaryNode
notEquals(node: any): BinaryNode
gte(node: any): BinaryNode
lte(node: any): BinaryNode
gt(node: any): BinaryNode
lt(node: any): BinaryNode
like(str: string): BinaryNode
in(arr: T[]): BinaryNode;
in(subQuery: SubQuery<T>): BinaryNode;
notIn(arr: T[]): BinaryNode;
equals(node: any): BinaryNode;
notEquals(node: any): BinaryNode;
gte(node: any): BinaryNode;
lte(node: any): BinaryNode;
gt(node: any): BinaryNode;
lt(node: any): BinaryNode;
like(str: string): BinaryNode;
multiply: {
(node: Column<T>): Column<T>
(n: number): Column<number>
}
isNull(): BinaryNode
isNotNull(): BinaryNode
sum(): Column<number>
count(): Column<number>
count(name: string): Column<number>
distinct(): Column<T>
as(name: string): Column<T>
ascending: OrderByValueNode
descending: OrderByValueNode
asc: OrderByValueNode
desc: OrderByValueNode
};
isNull(): BinaryNode;
isNotNull(): BinaryNode;
sum(): Column<number>;
count(): Column<number>;
count(name: string): Column<number>;
distinct(): Column<T>;
as(name: string): Column<T>;
ascending: OrderByValueNode;
descending: OrderByValueNode;
asc: OrderByValueNode;
desc: OrderByValueNode;
}
export interface AnydbSql extends DatabaseConnection {
define<T>(map: TableDefinition): Table<T>;
transaction<T>(fn: (tx: Transaction) => Promise<T>): Promise<T>
allOf(...tables: Table<any>[]): any
models: Dictionary<Table<any>>
transaction<T>(fn: (tx: Transaction) => Promise<T>): Promise<T>;
allOf(...tables: Table<any>[]): any;
models: Dictionary<Table<any>>;
functions: {
LOWER: (name: Column<string>) => Column<string>
RTRIM: (name: Column<string>) => Column<string>
}
makeFunction(name: string): Function
begin(): Transaction
};
makeFunction(name: string): Function;
begin(): Transaction;
open(): void;
close(): void;
getPool(): AnyDBPool;
+1 -1
View File
@@ -34,7 +34,7 @@ interface StaticRendererResult {
css: {
content: string;
renderedClassNames: string[];
}
};
}
/**
+7 -7
View File
@@ -14,29 +14,29 @@ declare namespace ApigeeAccess {
function getQuota(options?: any): QuotaService;
function getMode(): "apigee" | "standalone";
interface CacheOptions{
interface CacheOptions {
resource?: string;
scope?: "global" | "application" | "exclusive";
defaultTtl?: number;
timeout?: number;
}
interface Cache{
interface Cache {
put(key: string, data: any, ttl?: number, callback?: (err: any) => void): void;
get(key: string, callback: (err: any, data: any) => void): void;
remove(key: string, callback?: (err: any) => void): void;
}
interface SecureVault{
interface SecureVault {
getKeys(callback: (err: any, data: any) => void): void;
get(key: string, callback: (err: any, data: any) => void): void;
get(key: string, callback: (err: any, data: any) => void): void;
}
interface QuotaService{
interface QuotaService {
apply(options?: QuotaServiceApplyOptions, callback?: (err: any, data: QuotaServiceApplyCallbackData) => void): void;
}
interface QuotaServiceApplyOptions{
interface QuotaServiceApplyOptions {
identifier: string;
timeUnit: "minute" | "hour" | "day" | "week" | "month";
allow: number;
@@ -44,7 +44,7 @@ declare namespace ApigeeAccess {
weight?: number;
}
interface QuotaServiceApplyCallbackData{
interface QuotaServiceApplyCallbackData {
used: number;
allowed: number;
isAllowed: boolean;
+3 -3
View File
@@ -81,7 +81,7 @@ export declare class Connection extends events.EventEmitter {
constructor(options: ConnectionOptions);
/**
* This is the business end of the module. Create a `Notification` object and pass it in, along with a single recipient or an array of them and node-apn will take care of the rest, delivering the notification to each recipient.
*
*
* A "recipient" is either a `Device` object, a `String`, or a `Buffer` containing the device token. `Device` objects are used internally and will be created if necessary. Where applicable, all events will return a `Device` regardless of the type passed to this method.
*/
pushNotification(notification: Notification, recipient: Device | string | Buffer | (Device | string | Buffer)[]): void;
@@ -111,7 +111,7 @@ export declare class Connection extends events.EventEmitter {
on(event: "completed", listener: () => void): this;
/**
* Emitted when Apple returns a notification as invalid but the notification has already been expunged from the cache - usually due to high throughput and indicates that notifications will be getting lost. The parameter is an estimate of how many notifications have been lost. You should experiment with increasing the cache size or enabling ```autoAdjustCache``` if you see this frequently.
*
*
* **Note**: With ```autoAdjustCache``` enabled this event will still be emitted when an adjustment is triggered.
*/
on(event: "cacheTooSmall", listener: (sizeDifference: number) => void): this;
@@ -157,7 +157,7 @@ export declare class Notification {
public expiry: number;
/**
* From Apple's Documentation, Provide one of the following values:
*
*
* - 10 - The push message is sent immediately. (Default)
* > The push notification must trigger an alert, sound, or badge on the device. It is an error use this priority for a push that contains only the content-available key.
* - 5 - The push message is sent at a time that conserves power on the device receiving it.
+1 -1
View File
@@ -431,7 +431,7 @@ interface appFrameworkStatic {
cssPrefix: string;
cssTransformStart: string;
cssTransformEnd: string;
}
};
}
interface appFrameworkCollection {
+33 -33
View File
@@ -5,15 +5,15 @@ function test_AppEvents() {
App.onError = function (options: any) {
//do something
}
App.onExit = function (options: any) {
//do something
}
App.onLaunch = function (options: any) {
//do something
}
App.reload({ someProperty: 'Testing...' });
}
@@ -34,21 +34,21 @@ function test_FeatureElement() {
textField.addEventListener("change", function() {
change.call(this, textField);
});
var change = function (textField: AppleTVJS.FeatureElement){
var keyboard: AppleTVJS.Keyboard = textField.getFeature('Keyboard');
var text = keyboard.text;
};
var menuBar = document.getElementById("menuBar");
textField.addEventListener("change", function() {
change.call(this, textField);
});
var select = function (menuBar: AppleTVJS.FeatureElement) {
var menuBarDocument: AppleTVJS.MenuBarDocument = menuBar.getFeature('MenuBarDocument');
var document = menuBarDocument.getDocument(menuBar);
menuBarDocument.setDocument(document, menuBar);
menuBarDocument.setSelectedItem(menuBar);
@@ -61,50 +61,50 @@ function test_MediaItem() {
mediaItem.contentRatingDomain = "movie";
mediaItem.contentRatingRanking = 1;
mediaItem.description = "Media Item";
var highlight = new AppleTVJS.Highlight();
highlight.description = "Highlight";
highlight.duration = 10;
highlight.imageURL = "http://google.com/img.png";
highlight.name = "Name of Highlight";
highlight.starttime = 10;
var highlightGroup = new AppleTVJS.HighlightGroup();
highlightGroup.name = "Highlight Group";
highlightGroup.hightlights.push(highlight);
mediaItem.highlightGroups.push(highlightGroup);
var interstitial = new AppleTVJS.Interstitial();
interstitial.duration = 10;
interstitial.starttime = 20;
mediaItem.interstitials.push(interstitial);
mediaItem.isExplicit = false;
mediaItem.resumeTime = 0;
mediaItem.subtitle = "Subtitle";
var loadAssetIDCallback = function (assetID: string, error: string) {
//do something
};
mediaItem.loadAssetID = function (url: string, loadAssetIDCallback: (assetID: string, error: string) => void) {
//do something
};
var loadCertificateCallback = function (certificate: string, error: string) {
//do something
};
mediaItem.loadCertificate = function (url: string, loadCertificateCallback: (certificate: string, error: string) => void) {
//do something
};
var loadKeyCallback = function (key: string, renewalDate: string, error: string) {
//do something
};
mediaItem.loadKey = function (url: string, loadKeyCallback: (key: string, renewalDate: string, error: string) => void) {
//do something
};
@@ -138,55 +138,55 @@ function test_Player() {
playlist.pop();
var result: AppleTVJS.MediaItem[] = playlist.splice(0, 1, mediaItem);
var length: number = playlist.length;
var player = new AppleTVJS.Player();
player.playlist = playlist;
var parser = new DOMParser();
var document = parser.parseFromString('<document></document>', "application/xml");
player.overlayDocument = document;
player.present();
player.pause();
player.play();
var playbackState: string = player.playbackState;
player.seekToTime(10);
player.setPlaybackRate(2);
player.stop();
var currentMediaItem: AppleTVJS.MediaItem = player.currentMediaItem;
var nextMediaItem: AppleTVJS.MediaItem = player.nextMediaItem;
var previousMediaItem: AppleTVJS.MediaItem = player.previousMediaItem;
player.mediaItemDidChange = function (reason: string) {
//do something
};
player.requestSeekToTime = function (result) {
//do something
};
player.shouldHandleStateChange = function (result: boolean) {
//do something
};
player.stateDidChange = function (){
//do something
};
player.stateWillChange = function (){
//do something
};
player.timeBoundaryDidCross = function (){
//do something
};
player.timeDidChange = function (){
//do something
};
player.timedMetadata = function (){
//do something
};
+1 -1
View File
@@ -377,7 +377,7 @@ declare namespace AppleTVJS {
maxMovieRatingForCountry(countryCode: string): string;
/** The maximum television show ranking allowed. */
maxTVShowRank: number
maxTVShowRank: number;
/** Sets the maximum television show rating allowed for the specified country. */
maxTVShowRatingForCountry(countryCode: string): string;
+6 -6
View File
@@ -3,7 +3,7 @@
// Definitions by: Kamil Szostak <https://github.com/kamilszostak>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module AI {
declare namespace AI {
enum SeverityLevel {
Verbose = 0,
Information = 1,
@@ -127,7 +127,7 @@ declare module AI {
}
}
declare module Microsoft.ApplicationInsights.Context {
declare namespace Microsoft.ApplicationInsights.Context {
interface IApplication {
/**
* The application version.
@@ -288,7 +288,7 @@ declare module Microsoft.ApplicationInsights.Context {
}
}
declare module Microsoft.Telemetry {
declare namespace Microsoft.Telemetry {
class Domain {
constructor();
}
@@ -305,7 +305,7 @@ declare module Microsoft.Telemetry {
}
}
declare module Microsoft.ApplicationInsights.Telemetry {
declare namespace Microsoft.ApplicationInsights.Telemetry {
class Event implements Microsoft.ApplicationInsights.ISerializable {
static envelopeType: string;
@@ -481,7 +481,7 @@ declare module Microsoft.ApplicationInsights.Telemetry {
}
}
declare module Microsoft.ApplicationInsights.Telemetry.Common {
declare namespace Microsoft.ApplicationInsights.Telemetry.Common {
class Base extends Microsoft.Telemetry.Base implements Microsoft.ApplicationInsights.ISerializable {
/**
* The data contract for serializing this object.
@@ -543,7 +543,7 @@ declare module Microsoft.ApplicationInsights.Telemetry.Common {
}
}
declare module Microsoft.ApplicationInsights {
declare namespace Microsoft.ApplicationInsights {
interface IConfig {
instrumentationKey?: string;
endpointUrl?: string;
+8 -8
View File
@@ -10,9 +10,9 @@ interface AutoCollectConsole {
}
interface AutoCollectExceptions {
constructor(client:Client): AutoCollectExceptions;
constructor(client: Client): AutoCollectExceptions;
isInitialized(): boolean;
enable(isEnabled:boolean): void;
enable(isEnabled: boolean): void;
}
interface AutoCollectPerformance {
@@ -338,12 +338,12 @@ interface Client {
* @param max the max sample for this set
* @param stdDev the standard deviation of the set
*/
trackMetric(name: string, value: number, count?:number, min?: number, max?: number, stdDev?: number, properties?: {
trackMetric(name: string, value: number, count?: number, min?: number, max?: number, stdDev?: number, properties?: {
[key: string]: string;
}): void;
/**
* Log an incoming http request to your server. The request data will be tracked during the response "finish" event if it is successful or the request "error"
* Log an incoming http request to your server. The request data will be tracked during the response "finish" event if it is successful or the request "error"
* event if it fails. The request duration is automatically calculated as the timespan between when the trackRequest method was called, and when the response "finish"
* or request "error" events were fired.
* @param request The http.IncomingMessage object to track
@@ -353,7 +353,7 @@ interface Client {
trackRequest(request: any /* http.IncomingMessage */, response: any /* http.ServerResponse */, properties?: {
[key: string]: string;
}): void;
/**
* Log an incoming http request to your server. The request data is tracked synchronously rather than waiting for the response "finish"" or request "error"" events.
* Use this if you need your request telemetry to respect custom app insights operation and user context (for example if you set any appInsights.client.context.tags).
@@ -364,8 +364,8 @@ interface Client {
* @param error An error that was returned for this request if it was unsuccessful. Defaults to null.
*/
trackRequestSync(request: any /*http.IncomingMessage */, response: any /*http.ServerResponse */, ellapsedMilliseconds?: number, properties?: {
[key: string]: string;}, error?: any) : void;
[key: string]: string}, error?: any): void;
/**
* Log information about a dependency of your app. Typically used to track the time database calls or outgoing http requests take from your server.
* @param name The name of the dependency (i.e. "myDatabse")
+2 -2
View File
@@ -4320,7 +4320,7 @@ declare module "esri/dijit/Geocoder" {
/** Finalizes the creation of the widget. */
startup(): void;
/** Fired when results are returned from an auto-complete. */
on(type: "auto-complete", listener: (event: { results : any; target: Geocoder }) => void): esri.Handle;
on(type: "auto-complete", listener: (event: { results: any; target: Geocoder }) => void): esri.Handle;
/** Fired when a result is cleared from the input box or a new result is selected. */
on(type: "clear", listener: (event: { target: Geocoder }) => void): esri.Handle;
/** Fired when results are returned from a search. */
@@ -16120,7 +16120,7 @@ declare module "esri/tasks/datareviewer/BatchValidationJob" {
/** Encapsulates a Batch Validation Job. */
class BatchValidationJob {
/** Contains a list of batch run IDs, one for each batch validation execution associated with this batch validation job. */
batchRunIds : string[];
batchRunIds: string[];
/** Gets job creation date. */
creationDate: Date;
/** Gets the Job Id. */
+3 -3
View File
@@ -337,7 +337,7 @@ declare namespace asana {
auth: {
username: string;
password: string;
}
};
}
var OauthAuthenticator: OauthAuthenticatorStatic;
@@ -388,7 +388,7 @@ declare namespace asana {
*/
headers: {
Authorization: string;
}
};
}
/**
@@ -2422,7 +2422,7 @@ declare namespace asana {
retryOnRateLimit: boolean;
requestTimeout: number;
_cachedVersionInfo: VersionInfo;
}
};
}
type SimpleResourceList = ResourceList<Resource>;
+2 -2
View File
@@ -13,7 +13,7 @@ interface AsciifyOptions {
interface AsciifyCallback {
// err is sometimes a string and sometimes an Error
(err: any, asciifiedText: string): void
(err: any, asciifiedText: string): void;
}
declare module "asciify" {
@@ -25,5 +25,5 @@ declare module "asciify" {
function getFonts(callback: (err: Error, fonts: string[]) => void): void;
}
export = asciify
export = asciify;
}
+27 -27
View File
@@ -11,49 +11,49 @@
// modules such as "power-assert", but a project should realistically
// only be using one of these at a time.
declare function assert(value:any, message?:string):void;
declare function assert(value: any, message?: string): void;
declare namespace assert {
export class AssertionError implements Error {
name:string;
message:string;
actual:any;
expected:any;
operator:string;
generatedMessage:boolean;
name: string;
message: string;
actual: any;
expected: any;
operator: string;
generatedMessage: boolean;
constructor(options?:{message?: string; actual?: any; expected?: any; operator?: string; stackStartFunction?: Function});
constructor(options?: {message?: string; actual?: any; expected?: any; operator?: string; stackStartFunction?: Function});
}
export function fail(actual?:any, expected?:any, message?:string, operator?:string):void;
export function fail(actual?: any, expected?: any, message?: string, operator?: string): void;
export function ok(value:any, message?:string):void;
export function ok(value: any, message?: string): void;
export function equal(actual:any, expected:any, message?:string):void;
export function equal(actual: any, expected: any, message?: string): void;
export function notEqual(actual:any, expected:any, message?:string):void;
export function notEqual(actual: any, expected: any, message?: string): void;
export function deepEqual(actual:any, expected:any, message?:string):void;
export function deepEqual(actual: any, expected: any, message?: string): void;
export function notDeepEqual(acutal:any, expected:any, message?:string):void;
export function notDeepEqual(acutal: any, expected: any, message?: string): void;
export function strictEqual(actual:any, expected:any, message?:string):void;
export function strictEqual(actual: any, expected: any, message?: string): void;
export function notStrictEqual(actual:any, expected:any, message?:string):void;
export function notStrictEqual(actual: any, expected: any, message?: string): void;
export var throws:{
(block:Function, message?:string): void;
(block:Function, error:Function, message?:string): void;
(block:Function, error:RegExp, message?:string): void;
(block:Function, error:(err:any) => boolean, message?:string): void;
export var throws: {
(block: Function, message?: string): void;
(block: Function, error: Function, message?: string): void;
(block: Function, error: RegExp, message?: string): void;
(block: Function, error: (err: any) => boolean, message?: string): void;
};
export var doesNotThrow:{
(block:Function, message?:string): void;
(block:Function, error:Function, message?:string): void;
(block:Function, error:RegExp, message?:string): void;
(block:Function, error:(err:any) => boolean, message?:string): void;
export var doesNotThrow: {
(block: Function, message?: string): void;
(block: Function, error: Function, message?: string): void;
(block: Function, error: RegExp, message?: string): void;
(block: Function, error: (err: any) => boolean, message?: string): void;
};
export function ifError(value:any):void;
export function ifError(value: any): void;
}
+3 -3
View File
@@ -36,7 +36,7 @@ interface AsyncQueue<T> {
empty: () => any;
drain: () => any;
paused: boolean;
pause(): void
pause(): void;
resume(): void;
kill(): void;
workersList(): {
@@ -76,8 +76,8 @@ interface AsyncPriorityQueue<T> {
interface AsyncCargo {
length(): number;
payload: number;
push(task: any, callback? : Function): void;
push(task: any[], callback? : Function): void;
push(task: any, callback?: Function): void;
push(task: any[], callback?: Function): void;
saturated(): void;
empty(): void;
drain(): void;
+2 -2
View File
@@ -32,7 +32,7 @@ asyncblock((flow) => {
//Wait for a large number of tasks
for(var i = 0; i < 100; i++){
//Add each task in parallel with i as the key
fs.readFile(paths[i], 'utf8', flow.add(i));
fs.readFile(paths[i], 'utf8', flow.add(i));
}
//Wait for all the tasks to finish. Results is an object of the form {key1: value1, key2: value2, ...}
@@ -76,7 +76,7 @@ asyncblock.nostack((flow) => {
fs.readFile('path2', 'utf8', flow.add('second'));
//Wait until done reading the first and second files, then write them to another file
fs.writeFile('path3', flow.wait<string>('first') + flow.wait<string>('second'), flow.add());
fs.writeFile('path3', flow.wait<string>('first') + flow.wait<string>('second'), flow.add());
flow.wait(); //Wait on all outstanding tasks
fs.readFile('path3', 'utf8', flow.add('data'));
+16 -16
View File
@@ -9,7 +9,7 @@ declare namespace Atmosphere {
* The atmosphere API is a little bit special here: the first parameter can either be
* a URL string or a Request object. If it is a URL string, then the additional parameters are expected.
*/
subscribe?: (requestOrUrl:any, callback?:Function, request?:Request) => Request;
subscribe?: (requestOrUrl: any, callback?: Function, request?: Request) => Request;
unsubscribe?: () => void;
AtmosphereRequest?: AtmosphereRequest;
@@ -63,26 +63,26 @@ declare namespace Atmosphere {
enableProtocol?: boolean;
pollingInterval?: number;
onError?: (response?:Response) => void;
onClose?: (response?:Response) => void;
onOpen?: (response?:Response) => void;
onMessage?: (response:Response) => void;
onReopen?: (request?:Request, response?:Response) => void;
onReconnect?: (request?:Request, response?:Response) => void;
onMessagePublished?: (response?:Response) => void;
onTransportFailure?: (reason?:string, response?:Response) => void;
onLocalMessage?: (request?:Request) => void;
onFailureToReconnect?: (request?:Request, response?:Response) => void;
onClientTimeout?: (request?:Request) => void;
onError?: (response?: Response) => void;
onClose?: (response?: Response) => void;
onOpen?: (response?: Response) => void;
onMessage?: (response: Response) => void;
onReopen?: (request?: Request, response?: Response) => void;
onReconnect?: (request?: Request, response?: Response) => void;
onMessagePublished?: (response?: Response) => void;
onTransportFailure?: (reason?: string, response?: Response) => void;
onLocalMessage?: (request?: Request) => void;
onFailureToReconnect?: (request?: Request, response?: Response) => void;
onClientTimeout?: (request?: Request) => void;
subscribe?: (options:Request) => void;
subscribe?: (options: Request) => void;
execute?: () => void;
close?: () => void;
disconnect?: () => void;
getUrl?: () => string;
push?: (message:string, dispatchUrl?:string) => void;
push?: (message: string, dispatchUrl?: string) => void;
getUUID?: () => void;
pushLocal?: (message:string) => void;
pushLocal?: (message: string) => void;
}
interface Response {
@@ -101,7 +101,7 @@ declare namespace Atmosphere {
}
}
declare var atmosphere:Atmosphere.Atmosphere;
declare var atmosphere: Atmosphere.Atmosphere;
declare module 'atmosphere' {
export = atmosphere;
}
+1149 -1149
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -129,5 +129,5 @@ interface Auth0DelegationToken {
declare const Auth0: Auth0Static;
declare module "auth0-js" {
export = Auth0
export = Auth0;
}
+7 -7
View File
@@ -105,18 +105,18 @@ interface Auth0LockConstructorOptions {
interface Auth0LockStatic {
new (clientId: string, domain: string, options?: Auth0LockConstructorOptions): Auth0LockStatic;
getProfile(token: string, callback: (error: Auth0Error, profile: Auth0UserProfile) => void) : void;
getProfile(token: string, callback: (error: Auth0Error, profile: Auth0UserProfile) => void): void;
show(): void;
hide(): void;
logout(query: any): void;
on(event: "show", callback: () => void) : void;
on(event: "hide", callback: () => void) : void;
on(event: "unrecoverable_error", callback: (error: Auth0Error) => void) : void;
on(event: "authorization_error", callback: (error: Auth0Error) => void) : void;
on(event: "authenticated", callback: (authResult: any) => void) : void;
on(event: string, callback: (...args: any[]) => void) : void;
on(event: "show", callback: () => void): void;
on(event: "hide", callback: () => void): void;
on(event: "unrecoverable_error", callback: (error: Auth0Error) => void): void;
on(event: "authorization_error", callback: (error: Auth0Error) => void): void;
on(event: "authenticated", callback: (authResult: any) => void): void;
on(event: string, callback: (...args: any[]) => void): void;
}
declare var Auth0Lock: Auth0LockStatic;
+2 -2
View File
@@ -47,7 +47,7 @@ declare namespace autobahn {
interface IInvocation {
caller?: number;
progress?: (args : any[], kwargs : any) => void;
progress?: (args: any[], kwargs: any) => void;
procedure: string;
}
@@ -109,7 +109,7 @@ declare namespace autobahn {
}
class Subscription implements ISubscription {
constructor(topic? : string, handler?: SubscribeHandler, options?: ISubscribeOptions, session?: Session, id?: number);
constructor(topic?: string, handler?: SubscribeHandler, options?: ISubscribeOptions, session?: Session, id?: number);
handler: SubscribeHandler;
+4 -4
View File
@@ -14,9 +14,9 @@ declare namespace __Autolinker {
stripPrefix?: boolean;
truncate?: number | { length?: number; location?: string; };
twitter?: boolean;
urls?: boolean | { schemeMatches: boolean; wwwMatches: boolean; tldMatches: boolean; }
urls?: boolean | { schemeMatches: boolean; wwwMatches: boolean; tldMatches: boolean; };
}
interface Autolinker {
getTagBuilder(): any;
/**
@@ -28,13 +28,13 @@ declare namespace __Autolinker {
*/
parse(textOrHtml: string): any[];
}
interface Static {
new(cfg?: ConfigOptions): Autolinker;
/**
* Automatically links URLs, Email addresses, Phone Numbers, Twitter handles, and Hashtags found in the given chunk of HTML. Does not link URLs found within HTML tags.
*/
link(textOrHtml: string, options?: ConfigOptions): string
link(textOrHtml: string, options?: ConfigOptions): string;
}
}
+1 -1
View File
@@ -17,7 +17,7 @@ interface Options {
map?: {
inline?: boolean;
prev?: string | Object;
}
};
}
interface Result {
+3 -7
View File
@@ -270,8 +270,8 @@ declare module "avoscloud-sdk" {
class Object extends BaseObject {
id: any;
createdAt:any;
updatedAt:any;
createdAt: any;
updatedAt: any;
attributes: any;
cid: string;
changed: boolean;
@@ -645,18 +645,14 @@ declare module "avoscloud-sdk" {
}
namespace Analytics {
function track<T>(name: string, dimensions: any):Promise<T>;
function track<T>(name: string, dimensions: any): Promise<T>;
}
class Error {
code: ErrorCode;
message: string;
constructor(code: ErrorCode, message: string);
}
enum ErrorCode {
+2 -2
View File
@@ -17,7 +17,7 @@ interface Context {
logStreamName: string;
identity?: CognitoIdentity;
clientContext?: ClientContext;
// Functions
getRemainingTimeInMillis(): number;
@@ -28,7 +28,7 @@ interface Context {
fail(message: string): void;
succeed(message: string): void;
succeed(object: any): void;
succeed(message: string, object: any): void;
succeed(message: string, object: any): void;
}
interface CognitoIdentity {
+29 -29
View File
@@ -11,7 +11,7 @@ str = creds.accessKeyId;
/*
* ECS
* ECS
*/
var ecs:AWS.ECS
@@ -20,7 +20,7 @@ ecs = new AWS.ECS({apiVersion: '2012-11-05'});
ecs.describeClusters({
clusters: ['STRING_VALUE', 'STRING_VALUE']
},
},
function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
@@ -29,7 +29,7 @@ ecs.describeClusters({
ecs.describeTasks({
cluster: 'STRING_VALUE',
tasks: ['STRING_VALUE', 'STRING_VALUE']
},
},
function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
@@ -37,7 +37,7 @@ ecs.describeTasks({
/*
* SQS
* SQS
*/
var sqs:AWS.SQS
@@ -64,22 +64,22 @@ sqs.addPermission({
],
Label: 'STRING_VALUE', /* required */
QueueUrl: 'STRING_VALUE' /* required */
},
},
function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
sqs.changeMessageVisibility({
QueueUrl: 'STRING_VALUE', /* required */
ReceiptHandle: 'STRING_VALUE', /* required */
VisibilityTimeout: 0 /* required */
},
},
function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
sqs.changeMessageVisibilityBatch({
Entries: [ /* required */
{
@@ -90,19 +90,19 @@ sqs.changeMessageVisibilityBatch({
/* more items */
],
QueueUrl: 'STRING_VALUE' /* required */
},
},
function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
sqs.createQueue({
QueueName: 'STRING_VALUE', /* required */
Attributes: {
someKey: 'STRING_VALUE',
/* anotherKey: ... */
}
},
},
function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
@@ -111,12 +111,12 @@ sqs.createQueue({
sqs.deleteMessage({
QueueUrl: 'STRING_VALUE', /* required */
ReceiptHandle: 'STRING_VALUE' /* required */
},
},
function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
sqs.deleteMessageBatch({
Entries: [ /* required */
{
@@ -126,20 +126,20 @@ sqs.deleteMessageBatch({
/* more items */
],
QueueUrl: 'STRING_VALUE' /* required */
},
},
function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
sqs.deleteQueue({
QueueUrl: 'STRING_VALUE' /* required */
},
},
function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
sqs.getQueueAttributes({
QueueUrl: 'STRING_VALUE', /* required */
AttributeNames: [
@@ -151,26 +151,26 @@ sqs.getQueueAttributes({
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
sqs.getQueueUrl({
QueueName: 'STRING_VALUE', /* required */
QueueOwnerAWSAccountId: 'STRING_VALUE'
},
},
function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
sqs.listDeadLetterSourceQueues({
QueueUrl: 'STRING_VALUE' /* required */
}, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
sqs.listQueues({
QueueNamePrefix: 'STRING_VALUE'
},
},
function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
@@ -182,7 +182,7 @@ sqs.purgeQueue({
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
sqs.receiveMessage({
QueueUrl: 'STRING_VALUE', /* required */
AttributeNames: [
@@ -200,7 +200,7 @@ sqs.receiveMessage({
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
sqs.removePermission({
Label: 'STRING_VALUE', /* required */
QueueUrl: 'STRING_VALUE' /* required */
@@ -208,7 +208,7 @@ sqs.removePermission({
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
sqs.sendMessage({
MessageBody: 'STRING_VALUE', /* required */
QueueUrl: 'STRING_VALUE', /* required */
@@ -229,7 +229,7 @@ sqs.sendMessage({
},
/* anotherKey: ... */
}
},
},
function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
@@ -261,12 +261,12 @@ sqs.sendMessageBatch({
/* more items */
],
QueueUrl: 'STRING_VALUE' /* required */
},
},
function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
sqs.setQueueAttributes({
Attributes: { /* required */
someKey: 'STRING_VALUE',
@@ -277,7 +277,7 @@ sqs.setQueueAttributes({
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
var dynamoDBDocClient:AWS.DynamoDB.DocumentClient;
dynamoDBDocClient = new AWS.DynamoDB.DocumentClient();
dynamoDBDocClient = new AWS.DynamoDB.DocumentClient({});
+37 -37
View File
@@ -20,7 +20,7 @@ export class EnvironmentCredentials extends Credentials {
constructor(profile: string);
}
export module CognitoIdentity {
export namespace CognitoIdentity {
export interface CognitoIdentityCredentialsParams {
IdentityPoolId?: string;
AccountId?: string;
@@ -532,7 +532,7 @@ export declare class DynamoDB {
// ==========================================================
export declare module DynamoDB {
export namespace DynamoDB {
interface _DDBDC_Generic {
TableName: string;
@@ -540,7 +540,7 @@ export declare module DynamoDB {
ReturnConsumedCapacity?: "INDEXES" | "TOTAL" | "NONE";
}
type _DDBDC_ComparisonOperator = "EQ" | "NE" | "IN" | "LE" | "LT" | "GE" | "GT" | "BETWEEN" | "NOT_NULL" | "NULL" | "CONTAINS" | "NOT_CONTAINS" | "BEGINS_WITH"
type _DDBDC_ComparisonOperator = "EQ" | "NE" | "IN" | "LE" | "LT" | "GE" | "GT" | "BETWEEN" | "NOT_NULL" | "NULL" | "CONTAINS" | "NOT_CONTAINS" | "BEGINS_WITH";
type _DDBDC_Keys = { [someKey: string]: any };
type _DDBDC_KeyComparison = {
[someKey: string]: {
@@ -568,7 +568,7 @@ export declare module DynamoDB {
Exists: boolean;
Value?: any;
}
}
};
}
interface UpdateParam extends _DDBDC_Writer {
@@ -579,7 +579,7 @@ export declare module DynamoDB {
Action: "PUT" | "ADD" | "DELETE";
Value: any
}
}
};
}
interface QueryParam extends _DDBDC_Reader {
@@ -631,7 +631,7 @@ export declare module DynamoDB {
// ===========================================================
export module CloudFormation {
export namespace CloudFormation {
export interface CancelUpdateStackParams {
StackName: string;
}
@@ -838,7 +838,7 @@ export module CloudFormation {
// ===========================================================
export declare module Lambda {
export namespace Lambda {
export interface AddPermissionParams {
Action: string;
FunctionName: string;
@@ -860,7 +860,7 @@ export declare module Lambda {
FunctionName: string;
StartingPosition: string; /* TRIM_HORIZON | LATEST */
BatchSize?: number;
Enabled?: boolean
Enabled?: boolean;
}
export interface CreateFunctionParams {
@@ -869,7 +869,7 @@ export declare module Lambda {
S3Key?: string;
S3ObjectVersion?: string;
ZipFile?: any; // new Buffer('...') || string;
},
};
FunctionName: string;
Handler: string;
Role: string;
@@ -881,7 +881,7 @@ export declare module Lambda {
VpcConfig?: {
SecurityGroupIds?: string[];
SubnetIds?: string[];
}
};
}
export interface DeleteAliasParams {
@@ -924,7 +924,7 @@ export declare module Lambda {
export interface InvokeParams {
FunctionName: string;
ClientContext?: string;
InvocationType?: string;/* 'Event | RequestResponse | DryRun' */
InvocationType?: string; /* 'Event | RequestResponse | DryRun' */
LogType?: string; /* 'None | Tail' */
Payload?: any; /* new Buffer('...') || string */
Qualifier?: string;
@@ -934,25 +934,25 @@ export declare module Lambda {
FunctionName: string;
FunctionVersion?: string;
Marker?: string;
MaxItems?: number
MaxItems?: number;
}
export interface ListEventSourceMappingsParams {
EventSourceArn?: string;
FunctionName?: string;
Marker?: string;
MaxItems?: number
MaxItems?: number;
}
export interface ListFunctionsParams {
Marker?: string;
MaxItems?: number
MaxItems?: number;
}
export interface ListVersionsByFunctionParams {
FunctionName: string;
Marker?: string;
MaxItems?: number
MaxItems?: number;
}
export interface PublishVersionParams {
@@ -1001,11 +1001,11 @@ export declare module Lambda {
VpcConfig?: {
SecurityGroupIds?: string[];
SubnetIds?: string[];
}
};
}
}
export module AutoScaling {
export namespace AutoScaling {
export interface AutoScalingOptions {
params?: any;
endpoint?: string;
@@ -1353,7 +1353,7 @@ export module AutoScaling {
}
}
export module SQS {
export namespace SQS {
export interface SqsOptions {
params?: any;
endpoint?: string;
@@ -1389,14 +1389,14 @@ export module SQS {
}
export interface ChangeMessageVisibilityParams {
QueueUrl: string,
ReceiptHandle: string,
VisibilityTimeout: number
QueueUrl: string;
ReceiptHandle: string;
VisibilityTimeout: number;
}
export interface ChangeMessageVisibilityBatchParams {
QueueUrl: string,
Entries: { Id: string; ReceiptHandle: string; VisibilityTimeout?: number; }[]
QueueUrl: string;
Entries: { Id: string; ReceiptHandle: string; VisibilityTimeout?: number; }[];
}
export interface ChangeMessageVisibilityBatchResponse {
@@ -1408,7 +1408,7 @@ export module SQS {
QueueUrl?: string;
MessageBody: string;
DelaySeconds?: number;
MessageAttributes?: { [name: string]: MessageAttribute; }
MessageAttributes?: { [name: string]: MessageAttribute; };
}
export interface ReceiveMessageParams {
@@ -1444,7 +1444,7 @@ export module SQS {
Id: string;
MessageBody: string;
DelaySeconds?: number;
MessageAttributes?: { [name: string]: MessageAttribute; }
MessageAttributes?: { [name: string]: MessageAttribute; };
}
export interface CreateQueueParams {
@@ -1494,7 +1494,7 @@ export module SQS {
Body: string;
Attributes: { [name: string]: any };
MD5OfMessageAttributes: string;
MessageAttributes: { [name: string]: MessageAttribute; }
MessageAttributes: { [name: string]: MessageAttribute; };
}
export interface MessageAttribute {
@@ -1544,7 +1544,7 @@ export module SQS {
}
export declare module SES {
export namespace SES {
export interface Client {
config: ClientConfig;
@@ -1587,7 +1587,7 @@ export declare module SES {
}
export declare module Swf {
export namespace Swf {
export interface Client {
//constructor(options?: any);
@@ -2198,7 +2198,7 @@ export declare module Swf {
}
export declare module Sns {
export namespace Sns {
export interface Client {
config: ClientConfig;
@@ -2241,7 +2241,7 @@ export declare module Sns {
}
export declare module s3 {
export namespace s3 {
interface Owner {
DisplayName: string;
ID: string;
@@ -2257,7 +2257,7 @@ export declare module s3 {
ETag: string;
Size: number;
StorageClass: "STANDARD" | "REDUCED_REDUNDANCY" | "GLACIER";
Owner?: Owner
Owner?: Owner;
}
// This private interface contains the common parts between v1 and v2 of the API Request and is exposed via V1 and V2 subclasses
@@ -2406,7 +2406,7 @@ export declare module s3 {
}
}
export declare module ecs {
export namespace ecs {
export interface CreateServicesParams {
desiredCount: number;
serviceName: string;
@@ -2531,7 +2531,7 @@ export declare module ecs {
}
}
export module sts {
export namespace sts {
export interface AssumeRoleParams {
RoleArn: string;
RoleSessionName: string;
@@ -2585,7 +2585,7 @@ export module sts {
/**
* An optional credentials object to fill instead of creating a new object. Useful when modifying an existing credentials object from a refresh call.
*/
Credentials?: Credentials
Credentials?: Credentials;
}
export interface DecodeAuthorizationMessageParams {
@@ -2594,12 +2594,12 @@ export module sts {
export interface GetFederationTokenParams {
Name: string;
DurationSeconds?: number,
Policy?: string
DurationSeconds?: number;
Policy?: string;
}
export interface GetSessionTokenParams {
DurationSeconds: number,
DurationSeconds: number;
SerialNumber: string;
TokenCode: string;
}
+74 -74
View File
@@ -14,102 +14,102 @@ declare namespace axe {
export type RunOnlyType = "rule" | "rules" | "tag" | "tags";
export interface ElementContext {
node?: Object,
selector?: string,
include?: any[],
exclude?: any[]
node?: Object;
selector?: string;
include?: any[];
exclude?: any[];
}
export interface RunOnly {
type: RunOnlyType,
type: RunOnlyType;
value?: {
include?: string[],
exclude?: string[]
}
values?: TagValue[]
include?: string[];
exclude?: string[];
};
values?: TagValue[];
}
export interface AxeResults {
url: string,
timestamp: string,
passes: Pass[],
violations: Violation[]
url: string;
timestamp: string;
passes: Pass[];
violations: Violation[];
}
export interface Pass {
description: string,
help: string,
helpUrl: string,
id: string,
impact: ImpactValue,
tags: TagValue[],
nodes: NodeResult[]
description: string;
help: string;
helpUrl: string;
id: string;
impact: ImpactValue;
tags: TagValue[];
nodes: NodeResult[];
}
export interface Violation {
description: string,
help: string,
helpUrl: string,
id: string,
impact: ImpactValue,
tags: TagValue[],
nodes: NodeResult[]
description: string;
help: string;
helpUrl: string;
id: string;
impact: ImpactValue;
tags: TagValue[];
nodes: NodeResult[];
}
export interface NodeResult {
html: string,
impact: ImpactValue,
target: string[],
any: CheckResult[],
all: CheckResult[],
none: CheckResult[]
html: string;
impact: ImpactValue;
target: string[];
any: CheckResult[];
all: CheckResult[];
none: CheckResult[];
}
export interface CheckResult {
id: string,
impact: string,
message: string,
data: any,
relatedNodes?: RelatedNode[]
id: string;
impact: string;
message: string;
data: any;
relatedNodes?: RelatedNode[];
}
export interface RelatedNode {
target: string[],
html: string
target: string[];
html: string;
}
export interface Spec {
branding?: {
brand: string,
application: string
},
reporter?: ReporterVersion,
checks?: Check[],
rules?: Rule[]
brand: string;
application: string;
};
reporter?: ReporterVersion;
checks?: Check[];
rules?: Rule[];
}
export interface Check {
id: string,
evaluate: Function,
after?: Function,
options?: any,
matches?: string,
enabled?: boolean
id: string;
evaluate: Function;
after?: Function;
options?: any;
matches?: string;
enabled?: boolean;
}
export interface Rule {
id: string,
selector?: string,
excludeHidden?: boolean,
enabled?: boolean,
pageLevel?: boolean,
any?: string[],
all?: string[],
none?: string[],
tags?: string[],
matches?: string
id: string;
selector?: string;
excludeHidden?: boolean;
enabled?: boolean;
pageLevel?: boolean;
any?: string[];
all?: string[];
none?: string[];
tags?: string[];
matches?: string;
}
export interface AxePlugin {
id: string,
run(...args:any[]): any,
id: string;
run(...args: any[]): any;
commands: {
id: string,
callback(...args:any[]): void
}[],
cleanup?(callback:Function): void
callback(...args: any[]): void
}[];
cleanup?(callback: Function): void;
}
export let plugins: any
export let plugins: any;
/**
* Starts analysis on the current document and its subframes
@@ -119,37 +119,37 @@ declare namespace axe {
* @param {Function} callback The function to invoke when analysis is complete.
* @returns {Object} results The aXe results object
*/
export function a11yCheck(context: ElementContext, options: {runOnly?: RunOnly, rules?: Object}, callback: (results:AxeResults) => void): AxeResults
export function a11yCheck(context: ElementContext, options: {runOnly?: RunOnly, rules?: Object}, callback: (results: AxeResults) => void): AxeResults;
/**
* Method for configuring the data format used by aXe. Helpful for adding new
* rules, which must be registered with the library to execute.
* @param {Spec} Spec Object with valid `branding`, `reporter`, `checks` and `rules` data
*/
export function configure(spec: Spec): void
export function configure(spec: Spec): void;
/**
* Searches and returns rules that contain a tag in the list of tags.
* @param {Array} tags Optional array of tags
* @return {Array} Array of rules
*/
export function getRules(tags?: string[]): Object[]
export function getRules(tags?: string[]): Object[];
/**
* Restores the default axe configuration
*/
export function reset(): void
export function reset(): void;
/**
* Function to register a plugin configuration in document and its subframes
* @param {Object} plugin A plugin configuration object
*/
export function registerPlugin(plugin: AxePlugin): void
export function registerPlugin(plugin: AxePlugin): void;
/**
* Function to clean up plugin configuration in document and its subframes
*/
export function cleanup(): void
export function cleanup(): void;
}
+5 -5
View File
@@ -176,7 +176,7 @@ declare namespace Axios {
/**
* intercept response of request when it is received.
*/
response: ResponseInterceptor
response: ResponseInterceptor;
}
type InterceptorId = number;
@@ -189,8 +189,8 @@ declare namespace Axios {
use<U>(fulfilledFn: (config: AxiosXHRConfig<U>) => AxiosXHRConfig<U>): InterceptorId;
use<U>(fulfilledFn: (config: AxiosXHRConfig<U>) => AxiosXHRConfig<U>,
rejectedFn: (error: any) => any)
: InterceptorId;
rejectedFn: (error: any) => any
): InterceptorId;
eject(interceptorId: InterceptorId): void;
}
@@ -203,8 +203,8 @@ declare namespace Axios {
use<T>(fulfilledFn: (config: Axios.AxiosXHR<T>) => Axios.AxiosXHR<T>): InterceptorId;
use<T>(fulfilledFn: (config: Axios.AxiosXHR<T>) => Axios.AxiosXHR<T>,
rejectedFn: (error: any) => any)
: InterceptorId;
rejectedFn: (error: any) => any
): InterceptorId;
eject(interceptorId: InterceptorId): void;
}
+3 -3
View File
@@ -8,7 +8,7 @@ import queries = require('azure-mobile-apps/src/query');
var app = express(),
mobileApp = mobileApps();
// various configuration permutations
// various configuration permutations
mobileApps({
debug: true,
data: {
@@ -30,7 +30,7 @@ mobileApps({
// it would be nice to integrate with winston
mobileApps({ logging: { level: 'silly', transports: [{}] } })
// various custom middleware syntaxes
// various custom middleware syntaxes
mobileApp.use(function (req: any, res: any, next: any) { next(); });
mobileApp.use([function () {}, function () {}]);
mobileApp.use(function () {}, function () {});
@@ -65,7 +65,7 @@ table.read(function (context: Azure.MobileApps.Context) {
table.insert(function (context: Azure.MobileApps.Context) {
context.query.id = 'anotherId';
context.query.single = true;
context.item.userId = context.user.id;
context.item.userId = context.user.id;
context.push.send('tag', {}, function (error, result) {});
context.push.gcm.send('tag', {}, function (error, result) {});
context.push.apns.send('tag', { payload: { } }, function (error, result) {});
+6 -6
View File
@@ -30,8 +30,8 @@ declare module "azure-mobile-apps/src/query" {
declare namespace Azure.MobileApps {
// the additional Platforms namespace is required to avoid collisions with the main Express namespace
export module Platforms {
export module Express {
export namespace Platforms {
export namespace Express {
interface MobileApp extends Middleware {
configuration: Configuration;
tables: Tables;
@@ -72,7 +72,7 @@ declare namespace Azure.MobileApps {
}
}
export module Data {
export namespace Data {
interface Table {
read(query: QueryJs): Thenable<any[]>;
update(item: any, query: QueryJs): Thenable<any>;
@@ -130,7 +130,7 @@ declare namespace Azure.MobileApps {
webhook?: Webhook;
}
export module Configuration {
export namespace Configuration {
// it would be nice to have the config for various providers in separate interfaces,
// but this is the simplest solution to support variations of the current setup
interface Data {
@@ -263,7 +263,7 @@ declare namespace Azure.MobileApps {
}
type AccessType = 'anonymous' | 'authenticated' | 'disabled';
interface Duration {
milliseconds?: number;
seconds?: number;
@@ -317,7 +317,7 @@ declare namespace Azure.MobileApps {
// additions to the Express modules
declare namespace Express {
interface Request {
azureMobile: Azure.MobileApps.Context
azureMobile: Azure.MobileApps.Context;
}
interface Response {
@@ -7,7 +7,7 @@ console.log("Azure application URL: " + client.applicationUrl);
console.log("Azure application KEY: " + client.applicationKey.replace(/./gi,'*')); //KEEP IT SECRET!!!
//user authentication, to make it work follow this guide: http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-with-users-html/?fb=it-it#add-authentication
//user authentication, to make it work follow this guide: http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-with-users-html/?fb=it-it#add-authentication
if (client.currentUser === null) {
client.login("facebook")
.then((u: Microsoft.WindowsAzure.User) => alert(u.level))
@@ -31,7 +31,7 @@ tableTodoItems.read()
alert(n + " items downloaded"), (e) => alert("ERROR: " + e));
//define simple handler used in callback calls for insert/update and delete
//define simple handler used in callback calls for insert/update and delete
function handlerInsUpd(e: any, i: any) { if (!e) data.push(<TodoItem> i); };
function handlerDelErr(e: any) { if (e) alert("ERROR: " + e); }
@@ -40,7 +40,7 @@ function handlerDelErr(e: any) { if (e) alert("ERROR: " + e); }
tableTodoItems.insert({ text: 'hello world!', complete: false }, {timestamp: new Date()} , handlerInsUpd);
//update last item changing complete and calling simple handler when done
//update last item changing complete and calling simple handler when done
var todo = data.pop();
todo.complete = !todo.complete;
tableTodoItems.update(todo, null, handlerInsUpd)
@@ -53,21 +53,21 @@ tableTodoItems.del({ id: data[0].id },null).done(null, handlerDelErr)
//testing some simple Query fluent
var query = tableTodoItems.select('text', 'id')
.where({ complete: false })
.orderBy('text')
.orderBy('text')
query.read().done(printOut); //Execute query remotly and return data filtered
//testing more complicated Query in composition with previous using function Predicate and Projection
var minlength = 15; //parameter value for filter Predicate
query.where(function (len?: number) { return this.text != null && this.text.length > len }, minlength)
query.where(function (len?: number) { return this.text != null && this.text.length > len }, minlength)
.orderByDescending('id').skip(2).take(3) //some other ordering and paging filters
.select(function () { return { abc: this.text + '|' + this.id }; }) //Projection
.read().done(printOut); //return 3 object {abd: 'ttttttttttttttt|ID'}
//function that printout the query result in JSON
function printOut(ret:any[]) {
if (!ret) console.log("NO DATA FOUND!")
else for (var i = 0; i < ret.length; i++) {
console.log(JSON.stringify(ret[i])); }
console.log(JSON.stringify(ret[i])); }
}
+4 -6
View File
@@ -27,15 +27,14 @@ declare namespace Microsoft.WindowsAzure {
* @param options Contains additional parameter information, valid values are:
* body: The body of the HTTP request.
* method: The HTTP method to use in the request, with the default being POST,
* parameters: Any additional query string parameters,
* parameters: Any additional query string parameters,
* headers: HTTP request headers, specified as an object.
* @param callback Optional callback accepting (error, results) parameters.
*/
invokeApi(apiName: string, options?: InvokeApiOptions, callback?: (error: any, results: any) => void): asyncPromise;
}
interface Push
{
interface Push {
/**
* Register a push channel with the Mobile Apps backend to start receiving notifications.
*
@@ -55,8 +54,7 @@ declare namespace Microsoft.WindowsAzure {
unregister(pushChannel: string, callback?: (error: any, results: any) => void): void;
}
interface InvokeApiOptions
{
interface InvokeApiOptions {
method?: string;
body?: any;
headers?: Object;
@@ -65,7 +63,7 @@ declare namespace Microsoft.WindowsAzure {
// User object based on Microsoft Azure documentation: http://msdn.microsoft.com/en-us/library/windowsazure/jj554220.aspx
interface User {
getIdentities(): any;// { [providerName: string]: { userId: string, accessToken: string, accessTokenSecret?: string }; };
getIdentities(): any; // { [providerName: string]: { userId: string, accessToken: string, accessTokenSecret?: string }; };
accessTokens: any; // { [providerName: string]: string; }
level: string; //for level:string use one of LevelEnum: 'admin','anonymous','authenticated'
userId: string;
+4 -4
View File
@@ -46,7 +46,7 @@ declare namespace Azure.ServiceBus {
*/
}
export module Apns {
export namespace Apns {
interface Payload {
expiry?: Date;
aps?: Object;
@@ -67,7 +67,7 @@ declare namespace Azure.ServiceBus {
listRegistrationsByToken(token: string, optionsOrCallback?: { top: number, skip: number } | Callback, callback?: Callback): void;
}
}
export module Gcm {
export namespace Gcm {
interface Service {
new(service: NotificationHubService): Service;
send(tags: string | string[], payload: any, callback?: Callback): void;
@@ -80,9 +80,9 @@ declare namespace Azure.ServiceBus {
}
}
export module Mpns { interface Service { } }
export namespace Mpns { interface Service { } }
export module Wns {
export namespace Wns {
interface Payload {
text1?: string;
text2?: string;

Some files were not shown because too many files have changed in this diff Show More