Merge branch 'master' into rename-repo-url

This commit is contained in:
vvakame
2016-03-17 21:06:54 +09:00
1140 changed files with 179704 additions and 179635 deletions

View File

@@ -3,7 +3,7 @@
// Definitions by: Borislav Zhivkov <https://github.com/borislavjivkov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module HubSpotPaceInterfaces {
declare namespace HubSpotPaceInterfaces {
interface PaceOptions {
/**
* How long should it take for the bar to animate to a new point after receiving it

View File

@@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../threejs/three.d.ts" />
declare module THREE {
declare namespace THREE {
var CSG: {
fromCSG: (csg: CSG, defaultColor: any) => {
colorMesh: Mesh;
@@ -144,7 +144,7 @@ declare module THREE {
function RenderableSprite(): void;
function Projector(): void;
}
declare module OpenJsCad {
declare namespace OpenJsCad {
interface ILog {
(x: string): void;
prevLogTime?: number;
@@ -404,7 +404,7 @@ declare class CSG extends CxG implements ICenter {
toStlString(): string;
toAMFString(m: IAMFStringOptions): Blob;
}
declare module CSG {
declare namespace CSG {
function fnNumberSort(a: any, b: any): number;
function parseOption(options: any, optionname: any, defaultvalue: any): any;
function parseOptionAs3DVector(options: any, optionname: any, defaultvalue: any): Vector3D;
@@ -546,7 +546,7 @@ declare module CSG {
toStlString(): string;
}
}
declare module CSG.Polygon {
declare namespace CSG.Polygon {
class Shared {
color: any;
tag: any;
@@ -557,7 +557,7 @@ declare module CSG.Polygon {
getHash(): any;
}
}
declare module CSG {
declare namespace CSG {
class PolygonTreeNode {
parent: any;
children: any;
@@ -869,7 +869,7 @@ declare class CAG extends CxG implements ICenter {
toDxf(): Blob;
static PathsToDxf(paths: CSG.Path2D[]): Blob;
}
declare module CAG {
declare namespace CAG {
class Vertex {
pos: CSG.Vector2D;
tag: number;
@@ -905,7 +905,7 @@ interface CAG_extrude_options {
twistangle?: number;
twiststeps?: number;
}
declare module CSG {
declare namespace CSG {
class Polygon2D extends CAG {
constructor(points: Vector2D[]);
}

View File

@@ -7,7 +7,7 @@
/**
* The PayPalItem class defines an optional itemization for a payment.
*
*
* @see https://developer.paypal.com/docs/api/#item-object for more details.
*/
declare class PayPalItem {
@@ -51,7 +51,7 @@ declare class PayPalItem {
/**
* The PayPalPaymentDetails class defines optional amount details.
*
*
* @see https://developer.paypal.com/webapps/developer/docs/api/#details-object for more details.
*/
declare class PayPalPaymentDetails {
@@ -256,18 +256,18 @@ declare class PayPalConfiguration {
/**
* For single payments, options for the shipping address.
*
*
* - 0 - PayPalShippingAddressOptionNone: no shipping address applies.
*
*
* - 1 - PayPalShippingAddressOptionProvided: shipping address will be provided by your app,
* in the shippingAddress property of PayPalPayment.
*
*
* - 2 - PayPalShippingAddressOptionPayPal: user will choose from shipping addresses on file
* for their PayPal account.
*
*
* - 3 - PayPalShippingAddressOptionBoth: user will choose from the shipping address provided by your app,
* in the shippingAddress property of PayPalPayment, plus the shipping addresses on file for the user's PayPal account.
*
*
* Defaults to 0 (PayPalShippingAddressOptionNone).
*/
payPalShippingAddressOption: number;
@@ -277,26 +277,26 @@ declare class PayPalConfiguration {
* the SDK will remember the user's PayPal username or phone number;
* if the user pays via their credit card, then the SDK will remember
* the PayPal Vault token representing the user's credit card.
*
*
* If set to false, then any previously-remembered username, phone number, or
* credit card token will be erased, and subsequent payment information will
* not be remembered.
*
*
* Defaults to true.
*/
rememberUser: boolean;
/**
* If not set, or if set to nil, defaults to the device's current language setting.
*
*
* Can be specified as a language code ("en", "fr", "zh-Hans", etc.) or as a locale ("en_AU", "fr_FR", "zh-Hant_HK", etc.).
* If the library does not contain localized strings for a specified locale, then will fall back to the language. E.g., "es_CO" -> "es".
* If the library does not contain localized strings for a specified language, then will fall back to American English.
*
*
* If you specify only a language code, and that code matches the device's currently preferred language,
* then the library will attempt to use the device's current region as well.
* E.g., specifying "en" on a device set to "English" and "United Kingdom" will result in "en_GB".
*
*
* These localizations are currently included:
* da,de,en,en_AU,en_GB,en_SV,es,es_MX,fr,he,it,ja,ko,nb,nl,pl,pt,pt_BR,ru,sv,tr,zh-Hans,zh-Hant_HK,zh-Hant_TW.
*/
@@ -319,7 +319,7 @@ declare class PayPalConfiguration {
/**
* Sandbox credentials can be difficult to type on a mobile device. Setting this flag to true will
* cause the sandboxUserPassword and sandboxUserPin to always be pre-populated into login fields.
*
*
* This setting will have no effect if the operation mode is production.
* Defaults to false.
*/
@@ -385,18 +385,18 @@ interface PayPalConfigurationOptions {
/**
* For single payments, options for the shipping address.
*
*
* - 0 - PayPalShippingAddressOptionNone?: no shipping address applies.
*
*
* - 1 - PayPalShippingAddressOptionProvided?: shipping address will be provided by your app,
* in the shippingAddress property of PayPalPayment.
*
*
* - 2 - PayPalShippingAddressOptionPayPal?: user will choose from shipping addresses on file
* for their PayPal account.
*
*
* - 3 - PayPalShippingAddressOptionBoth?: user will choose from the shipping address provided by your app,
* in the shippingAddress property of PayPalPayment, plus the shipping addresses on file for the user's PayPal account.
*
*
* Defaults to 0 (PayPalShippingAddressOptionNone).
*/
payPalShippingAddressOption?: number;
@@ -406,26 +406,26 @@ interface PayPalConfigurationOptions {
* the SDK will remember the user's PayPal username or phone number;
* if the user pays via their credit card, then the SDK will remember
* the PayPal Vault token representing the user's credit card.
*
*
* If set to false, then any previously-remembered username, phone number, or
* credit card token will be erased, and subsequent payment information will
* not be remembered.
*
*
* Defaults to true.
*/
rememberUser?: boolean;
/**
* If not set, or if set to nil, defaults to the device's current language setting.
*
*
* Can be specified as a language code ("en", "fr", "zh-Hans", etc.) or as a locale ("en_AU", "fr_FR", "zh-Hant_HK", etc.).
* If the library does not contain localized strings for a specified locale, then will fall back to the language. E.g., "es_CO" -> "es".
* If the library does not contain localized strings for a specified language, then will fall back to American English.
*
*
* If you specify only a language code, and that code matches the device's currently preferred language,
* then the library will attempt to use the device's current region as well.
* E.g., specifying "en" on a device set to "English" and "United Kingdom" will result in "en_GB".
*
*
* These localizations are currently included:
* da,de,en,en_AU,en_GB,en_SV,es,es_MX,fr,he,it,ja,ko,nb,nl,pl,pt,pt_BR,ru,sv,tr,zh-Hans,zh-Hant_HK,zh-Hant_TW.
*/
@@ -448,7 +448,7 @@ interface PayPalConfigurationOptions {
/**
* Sandbox credentials can be difficult to type on a mobile device. Setting this flag to true will
* cause the sandboxUserPassword and sandboxUserPin to always be pre-populated into login fields.
*
*
* This setting will have no effect if the operation mode is production.
* Defaults to false.
*/
@@ -469,7 +469,7 @@ interface PayPalConfigurationOptions {
//#region cdv-plugin-paypal-mobile-sdk.js
declare module PayPalCordovaPlugin {
declare namespace PayPalCordovaPlugin {
export interface PayPalClientIds {
PayPalEnvironmentProduction: string;
@@ -545,7 +545,7 @@ declare module PayPalCordovaPlugin {
* the recommended time to preconnect is on page load.
*
* @param environment available options are "PayPalEnvironmentNoNetwork", "PayPalEnvironmentProduction" and "PayPalEnvironmentSandbox"
* @param configuration PayPalConfiguration object, for Future Payments merchantName, merchantPrivacyPolicyURL
* @param configuration PayPalConfiguration object, for Future Payments merchantName, merchantPrivacyPolicyURL
* and merchantUserAgreementURL must be set be set
* @param completionCallback a callback function on success
*/
@@ -592,7 +592,7 @@ declare module PayPalCordovaPlugin {
/**
* Please Read Docs on Future Payments at https://github.com/paypal/PayPal-iOS-SDK#future-payments
*
*
* @param completionCallback a callback function accepting a js object with future payment authorization
* @param cancelCallback a callback function accepting a reason string, called when the user canceled without agreement
*/
@@ -600,7 +600,7 @@ declare module PayPalCordovaPlugin {
/**
* Please Read Docs on Profile Sharing at https://github.com/paypal/PayPal-iOS-SDK#profile-sharing
*
*
* @param scopes scopes Set of requested scope-values. Accepted scopes are: openid, profile, address, email, phone, futurepayments and paypalattributes
* See https://developer.paypal.com/docs/integration/direct/identity/attributes/ for more details
* @param completionCallback a callback function accepting a js object with future payment authorization

View File

@@ -5,7 +5,7 @@
/// <reference path="../node/node.d.ts"/>
declare module NodeJS {
declare namespace NodeJS {
export module _debugger {
export interface Packet {
raw: string;

2
ace/ace.d.ts vendored
View File

@@ -3,7 +3,7 @@
// Definitions by: Diullei Gomes <https://github.com/Diullei>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module AceAjax {
declare namespace AceAjax {
export interface Delta {
action: string;

2
acorn/acorn.d.ts vendored
View File

@@ -5,7 +5,7 @@
/// <reference path="../estree/estree.d.ts" />
declare module acorn {
declare namespace acorn {
var version: string;
function parse(input: string, options?: Options): ESTree.Program;
function parseExpressionAt(input: string, pos: number, options?: Options): ESTree.Expression;

View File

@@ -216,7 +216,7 @@ declare module "adm-zip" {
* @param targetPath Target location
* @param overwrite If the file already exists at the target path, the file
* will be overwriten if this is true. Default is FALSE
* @param callback The callback function will be called afeter extraction
* @param callback The callback function will be called afeter extraction
*/
extractAllToAsync(targetPath: string, overwrite: boolean, callback: (error: Error) => void): void;
/**
@@ -233,7 +233,7 @@ declare module "adm-zip" {
toBuffer(): Buffer;
}
module AdmZip {
namespace AdmZip {
/**
* The ZipEntry is more than a structure representing the entry inside the
* zip file. Beside the normal attributes and headers a entry can have, the

View File

@@ -2,7 +2,8 @@
// Project: http://www.ag-grid.com/
// Definitions by: Niall Crosby <https://github.com/ceolter/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module ag.grid {
declare namespace ag.grid {
class ColumnChangeEvent {
private type;
private column;
@@ -28,7 +29,7 @@ declare module ag.grid {
isIndividualColumnResized(): boolean;
}
}
declare module ag.grid {
declare namespace ag.grid {
class Utils {
private static isSafari;
private static isIE;
@@ -84,7 +85,7 @@ declare module ag.grid {
static isBrowserSafari(): boolean;
}
}
declare module ag.grid {
declare namespace ag.grid {
class Constants {
static STEP_EVERYTHING: number;
static STEP_FILTER: number;
@@ -109,7 +110,7 @@ declare module ag.grid {
static KEY_RIGHT: number;
}
}
declare module ag.grid {
declare namespace ag.grid {
class Column {
static colIdSequence: number;
colDef: ColDef;
@@ -128,7 +129,7 @@ declare module ag.grid {
setMinimum(): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class ColumnGroup {
pinned: any;
name: any;
@@ -146,7 +147,7 @@ declare module ag.grid {
addToVisibleColumns(colsToAdd: any): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class GridOptionsWrapper {
private gridOptions;
private groupHeaders;
@@ -230,7 +231,7 @@ declare module ag.grid {
private getCallbackForEvent(eventName);
}
}
declare module ag.grid {
declare namespace ag.grid {
class LoggerFactory {
private logging;
init(gridOptionsWrapper: GridOptionsWrapper): void;
@@ -243,7 +244,7 @@ declare module ag.grid {
log(message: string): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class Events {
/** A new set of columns has been entered, everything has potentially changed. */
static EVENT_COLUMN_EVERYTHING_CHANGED: string;
@@ -279,7 +280,7 @@ declare module ag.grid {
static EVENT_READY: string;
}
}
declare module ag.grid {
declare namespace ag.grid {
class EventService {
private allListeners;
private globalListeners;
@@ -291,7 +292,7 @@ declare module ag.grid {
dispatchEvent(eventType: string, event?: any): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class MasterSlaveService {
private gridOptionsWrapper;
private columnController;
@@ -308,7 +309,7 @@ declare module ag.grid {
onColumnEvent(event: ColumnChangeEvent): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class ColumnApi {
private _columnController;
constructor(_columnController: ColumnController);
@@ -407,7 +408,7 @@ declare module ag.grid {
private getTotalColWidth(includePinned);
}
}
declare module ag.grid {
declare namespace ag.grid {
interface CsvExportParams {
skipHeader?: boolean;
skipFooters?: boolean;
@@ -426,7 +427,7 @@ declare module ag.grid {
private escape(value);
}
}
declare module ag.grid {
declare namespace ag.grid {
class ExpressionService {
private expressionToFunctionCache;
private logger;
@@ -436,13 +437,13 @@ declare module ag.grid {
private createFunctionBody(expression);
}
}
declare module ag.grid {
declare namespace ag.grid {
interface TextAndNumberFilterParameters {
/** What to do when new rows are loaded. The default is to reset the filter, to keep it in line with 'set' filters. If you want to keep the selection, then set this value to 'keep'. */
newRowsAction?: string;
}
}
declare module ag.grid {
declare namespace ag.grid {
class TextFilter implements Filter {
private filterParams;
private filterChangedCallback;
@@ -473,7 +474,7 @@ declare module ag.grid {
private getApi();
}
}
declare module ag.grid {
declare namespace ag.grid {
class NumberFilter implements Filter {
private filterParams;
private filterChangedCallback;
@@ -504,7 +505,7 @@ declare module ag.grid {
private getApi();
}
}
declare module ag.grid {
declare namespace ag.grid {
interface ColDef {
/** If sorting by default, set it here. Set to 'asc' or 'desc' */
sort?: string;
@@ -594,7 +595,7 @@ declare module ag.grid {
onCellContextMenu?: Function;
}
}
declare module ag.grid {
declare namespace ag.grid {
class SetFilterModel {
private colDef;
private filterParams;
@@ -635,7 +636,7 @@ declare module ag.grid {
}
}
/** The filter parameters for set filter */
declare module ag.grid {
declare namespace ag.grid {
interface SetFilterParameters {
/** Same as cell renderer for grid (you can use the same one in both locations). Setting it separatly here allows for the value to be rendered differently in the filter. */
cellRenderer?: Function;
@@ -649,7 +650,7 @@ declare module ag.grid {
suppressRemoveEntries?: boolean;
}
}
declare module ag.grid {
declare namespace ag.grid {
class SetFilter implements Filter {
private eGui;
private filterParams;
@@ -697,7 +698,7 @@ declare module ag.grid {
private createApi();
}
}
declare module ag.grid {
declare namespace ag.grid {
class PopupService {
private ePopupParent;
init(ePopupParent: any): void;
@@ -705,7 +706,7 @@ declare module ag.grid {
addAsModalPopup(eChild: any, closeOnEsc: boolean): (event: any) => void;
}
}
declare module ag.grid {
declare namespace ag.grid {
interface RowNode {
/** Unique ID for the node. Can be though of as the index of the row in the original list,
* however exceptions apply so don't depend on uniqueness. */
@@ -754,7 +755,7 @@ declare module ag.grid {
_childrenMap?: {};
}
}
declare module ag.grid {
declare namespace ag.grid {
class FilterManager {
private $compile;
private $scope;
@@ -793,7 +794,7 @@ declare module ag.grid {
showFilter(column: Column, eventSource: any): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class TemplateService {
templateCache: any;
waitingCallbacks: any;
@@ -803,7 +804,7 @@ declare module ag.grid {
handleHttpResult(httpResult: any, url: any): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class SelectionRendererFactory {
private angularGrid;
private selectionController;
@@ -811,7 +812,7 @@ declare module ag.grid {
createSelectionCheckbox(node: any, rowIndex: any): HTMLInputElement;
}
}
declare module ag.vdom {
declare namespace ag.vdom {
class VElement {
static idSequence: number;
private id;
@@ -824,7 +825,7 @@ declare module ag.vdom {
toHtmlString(): string;
}
}
declare module ag.vdom {
declare namespace ag.vdom {
class VHtmlElement extends VElement {
private type;
private classes;
@@ -855,7 +856,7 @@ declare module ag.vdom {
fireElementAttachedToChildren(element: Element): void;
}
}
declare module ag.vdom {
declare namespace ag.vdom {
class VWrapperElement extends VElement {
private wrappedElement;
constructor(wrappedElement: Element);
@@ -863,7 +864,7 @@ declare module ag.vdom {
elementAttached(element: Element): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class RenderedCell {
private vGridCell;
private vSpanWithValue;
@@ -924,7 +925,7 @@ declare module ag.grid {
private addClasses();
}
}
declare module ag.grid {
declare namespace ag.grid {
class RenderedRow {
vPinnedRow: any;
vBodyRow: any;
@@ -974,7 +975,7 @@ declare module ag.grid {
private addDynamicClasses();
}
}
declare module ag.grid {
declare namespace ag.grid {
class SvgFactory {
static theInstance: SvgFactory;
static getInstance(): SvgFactory;
@@ -990,10 +991,10 @@ declare module ag.grid {
createArrowUpDownSvg(): Element;
}
}
declare module ag.grid {
declare namespace ag.grid {
function groupCellRendererFactory(gridOptionsWrapper: GridOptionsWrapper, selectionRendererFactory: SelectionRendererFactory, expressionService: ExpressionService): (params: any) => HTMLSpanElement;
}
declare module ag.grid {
declare namespace ag.grid {
class RowRenderer {
private columnModel;
private gridOptionsWrapper;
@@ -1057,7 +1058,7 @@ declare module ag.grid {
startEditingNextCell(rowIndex: any, column: any, shiftKey: any): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class SelectionController {
private eParentsOfRows;
private angularGrid;
@@ -1094,7 +1095,7 @@ declare module ag.grid {
private updateGroupParentsIfNeeded();
}
}
declare module ag.grid {
declare namespace ag.grid {
class RenderedHeaderElement {
private eRoot;
private dragStartX;
@@ -1110,7 +1111,7 @@ declare module ag.grid {
stopDragging(listenersToRemove: any): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class RenderedHeaderCell extends RenderedHeaderElement {
private static DEFAULT_SORTING_ORDER;
private eHeaderCell;
@@ -1148,7 +1149,7 @@ declare module ag.grid {
private addHeaderClassesFromCollDef();
}
}
declare module ag.grid {
declare namespace ag.grid {
class RenderedHeaderGroupCell extends RenderedHeaderElement {
private eHeaderGroup;
private eHeaderGroupCell;
@@ -1178,7 +1179,7 @@ declare module ag.grid {
onDragging(dragChange: any): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class HeaderRenderer {
private gridOptionsWrapper;
private columnController;
@@ -1200,7 +1201,7 @@ declare module ag.grid {
onIndividualColumnResized(column: Column): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class GroupCreator {
private valueService;
init(valueService: ValueService): void;
@@ -1208,7 +1209,7 @@ declare module ag.grid {
isExpanded(expandByDefault: any, level: any): boolean;
}
}
declare module ag.grid {
declare namespace ag.grid {
class InMemoryRowController {
private gridOptionsWrapper;
private columnController;
@@ -1257,7 +1258,7 @@ declare module ag.grid {
private createFooterNode(groupNode);
}
}
declare module ag.grid {
declare namespace ag.grid {
class VirtualPageRowController {
rowRenderer: any;
datasourceVersion: any;
@@ -1304,7 +1305,7 @@ declare module ag.grid {
};
}
}
declare module ag.grid {
declare namespace ag.grid {
class PaginationController {
eGui: any;
btNext: any;
@@ -1346,7 +1347,7 @@ declare module ag.grid {
setupComponents(): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class BorderLayout {
private eNorthWrapper;
private eSouthWrapper;
@@ -1386,7 +1387,7 @@ declare module ag.grid {
setSouthVisible(visible: any): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class GridPanel {
private masterSlaveService;
private gridOptionsWrapper;
@@ -1451,7 +1452,7 @@ declare module ag.grid {
private scrollPinned(bodyTopPosition);
}
}
declare module ag.grid {
declare namespace ag.grid {
class DragAndDropService {
static theInstance: DragAndDropService;
static getInstance(): DragAndDropService;
@@ -1465,7 +1466,7 @@ declare module ag.grid {
}
}
declare function require(name: string): any;
declare module ag.grid {
declare namespace ag.grid {
class AgList {
private eGui;
private uniqueId;
@@ -1516,7 +1517,7 @@ declare module ag.grid {
getGui(): any;
}
}
declare module ag.grid {
declare namespace ag.grid {
class ColumnSelectionPanel {
private gridOptionsWrapper;
private columnController;
@@ -1532,7 +1533,7 @@ declare module ag.grid {
getGui(): any;
}
}
declare module ag.grid {
declare namespace ag.grid {
class GroupSelectionPanel {
gridOptionsWrapper: any;
columnController: ColumnController;
@@ -1548,7 +1549,7 @@ declare module ag.grid {
private onItemMoved(fromIndex, toIndex);
}
}
declare module ag.grid {
declare namespace ag.grid {
class AgDropdownList {
private itemSelectedListeners;
private eValue;
@@ -1572,7 +1573,7 @@ declare module ag.grid {
setModel(model: any): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class ValuesSelectionPanel {
private gridOptionsWrapper;
private columnController;
@@ -1588,7 +1589,7 @@ declare module ag.grid {
private beforeDropListener(newItem);
}
}
declare module ag.grid {
declare namespace ag.grid {
class VerticalStack {
isLayoutPanel: any;
childPanels: any;
@@ -1599,14 +1600,14 @@ declare module ag.grid {
doLayout(): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class ToolPanel {
layout: any;
constructor();
init(columnController: any, inMemoryRowController: any, gridOptionsWrapper: GridOptionsWrapper, popupService: PopupService, eventService: EventService): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
interface GridOptions {
virtualPaging?: boolean;
toolPanelSuppressPivot?: boolean;
@@ -1693,7 +1694,7 @@ declare module ag.grid {
columnApi?: ColumnApi;
}
}
declare module ag.grid {
declare namespace ag.grid {
class GridApi {
private grid;
private rowRenderer;
@@ -1790,7 +1791,7 @@ declare module ag.grid {
refreshPivot(): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class ValueService {
private gridOptionsWrapper;
private expressionService;
@@ -1801,7 +1802,7 @@ declare module ag.grid {
private getValueCallback(data, node, field);
}
}
declare module ag.grid {
declare namespace ag.grid {
class Grid {
private virtualRowCallbacks;
private gridOptions;
@@ -1863,7 +1864,7 @@ declare module ag.grid {
doLayout(): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class ComponentUtil {
static SIMPLE_PROPERTIES: string[];
static SIMPLE_NUMBER_PROPERTIES: string[];
@@ -1879,7 +1880,7 @@ declare module ag.grid {
static toNumber(value: any): number;
}
}
declare module ag.grid {
declare namespace ag.grid {
class AgGridNg2 {
private elementDef;
private _agGrid;
@@ -1974,11 +1975,11 @@ declare module ag.grid {
private globalEventListener(eventType, event);
}
}
declare module ag.grid {
declare namespace ag.grid {
}
declare var exports: any;
declare var module: any;
declare module ag.grid {
declare namespace ag.grid {
interface Filter {
getGui(): any;
isFilterActive(): boolean;

121
ag-grid/ag-grid.d.ts vendored
View File

@@ -2,7 +2,8 @@
// Project: http://www.ag-grid.com/
// Definitions by: Niall Crosby <https://github.com/ceolter/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module ag.grid {
declare namespace ag.grid {
class ColumnChangeEvent {
private type;
private column;
@@ -28,7 +29,7 @@ declare module ag.grid {
isIndividualColumnResized(): boolean;
}
}
declare module ag.grid {
declare namespace ag.grid {
class Utils {
private static isSafari;
private static isIE;
@@ -84,7 +85,7 @@ declare module ag.grid {
static isBrowserSafari(): boolean;
}
}
declare module ag.grid {
declare namespace ag.grid {
class Constants {
static STEP_EVERYTHING: number;
static STEP_FILTER: number;
@@ -109,7 +110,7 @@ declare module ag.grid {
static KEY_RIGHT: number;
}
}
declare module ag.grid {
declare namespace ag.grid {
class Column {
static colIdSequence: number;
colDef: ColDef;
@@ -128,7 +129,7 @@ declare module ag.grid {
setMinimum(): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class ColumnGroup {
pinned: any;
name: any;
@@ -146,7 +147,7 @@ declare module ag.grid {
addToVisibleColumns(colsToAdd: any): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class GridOptionsWrapper {
private gridOptions;
private groupHeaders;
@@ -230,7 +231,7 @@ declare module ag.grid {
private getCallbackForEvent(eventName);
}
}
declare module ag.grid {
declare namespace ag.grid {
class LoggerFactory {
private logging;
init(gridOptionsWrapper: GridOptionsWrapper): void;
@@ -243,7 +244,7 @@ declare module ag.grid {
log(message: string): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class Events {
/** A new set of columns has been entered, everything has potentially changed. */
static EVENT_COLUMN_EVERYTHING_CHANGED: string;
@@ -279,7 +280,7 @@ declare module ag.grid {
static EVENT_READY: string;
}
}
declare module ag.grid {
declare namespace ag.grid {
class EventService {
private allListeners;
private globalListeners;
@@ -291,7 +292,7 @@ declare module ag.grid {
dispatchEvent(eventType: string, event?: any): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class MasterSlaveService {
private gridOptionsWrapper;
private columnController;
@@ -308,7 +309,7 @@ declare module ag.grid {
onColumnEvent(event: ColumnChangeEvent): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class ColumnApi {
private _columnController;
constructor(_columnController: ColumnController);
@@ -407,7 +408,7 @@ declare module ag.grid {
private getTotalColWidth(includePinned);
}
}
declare module ag.grid {
declare namespace ag.grid {
interface CsvExportParams {
skipHeader?: boolean;
skipFooters?: boolean;
@@ -426,7 +427,7 @@ declare module ag.grid {
private escape(value);
}
}
declare module ag.grid {
declare namespace ag.grid {
class ExpressionService {
private expressionToFunctionCache;
private logger;
@@ -436,13 +437,13 @@ declare module ag.grid {
private createFunctionBody(expression);
}
}
declare module ag.grid {
declare namespace ag.grid {
interface TextAndNumberFilterParameters {
/** What to do when new rows are loaded. The default is to reset the filter, to keep it in line with 'set' filters. If you want to keep the selection, then set this value to 'keep'. */
newRowsAction?: string;
}
}
declare module ag.grid {
declare namespace ag.grid {
class TextFilter implements Filter {
private filterParams;
private filterChangedCallback;
@@ -473,7 +474,7 @@ declare module ag.grid {
private getApi();
}
}
declare module ag.grid {
declare namespace ag.grid {
class NumberFilter implements Filter {
private filterParams;
private filterChangedCallback;
@@ -504,7 +505,7 @@ declare module ag.grid {
private getApi();
}
}
declare module ag.grid {
declare namespace ag.grid {
interface ColDef {
/** If sorting by default, set it here. Set to 'asc' or 'desc' */
sort?: string;
@@ -594,7 +595,7 @@ declare module ag.grid {
onCellContextMenu?: Function;
}
}
declare module ag.grid {
declare namespace ag.grid {
class SetFilterModel {
private colDef;
private filterParams;
@@ -635,7 +636,7 @@ declare module ag.grid {
}
}
/** The filter parameters for set filter */
declare module ag.grid {
declare namespace ag.grid {
interface SetFilterParameters {
/** Same as cell renderer for grid (you can use the same one in both locations). Setting it separatly here allows for the value to be rendered differently in the filter. */
cellRenderer?: Function;
@@ -649,7 +650,7 @@ declare module ag.grid {
suppressRemoveEntries?: boolean;
}
}
declare module ag.grid {
declare namespace ag.grid {
class SetFilter implements Filter {
private eGui;
private filterParams;
@@ -697,7 +698,7 @@ declare module ag.grid {
private createApi();
}
}
declare module ag.grid {
declare namespace ag.grid {
class PopupService {
private ePopupParent;
init(ePopupParent: any): void;
@@ -705,7 +706,7 @@ declare module ag.grid {
addAsModalPopup(eChild: any, closeOnEsc: boolean): (event: any) => void;
}
}
declare module ag.grid {
declare namespace ag.grid {
interface RowNode {
/** Unique ID for the node. Can be though of as the index of the row in the original list,
* however exceptions apply so don't depend on uniqueness. */
@@ -754,7 +755,7 @@ declare module ag.grid {
_childrenMap?: {};
}
}
declare module ag.grid {
declare namespace ag.grid {
class FilterManager {
private $compile;
private $scope;
@@ -793,7 +794,7 @@ declare module ag.grid {
showFilter(column: Column, eventSource: any): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class TemplateService {
templateCache: any;
waitingCallbacks: any;
@@ -803,7 +804,7 @@ declare module ag.grid {
handleHttpResult(httpResult: any, url: any): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class SelectionRendererFactory {
private angularGrid;
private selectionController;
@@ -811,7 +812,7 @@ declare module ag.grid {
createSelectionCheckbox(node: any, rowIndex: any): HTMLInputElement;
}
}
declare module ag.vdom {
declare namespace ag.vdom {
class VElement {
static idSequence: number;
private id;
@@ -824,7 +825,7 @@ declare module ag.vdom {
toHtmlString(): string;
}
}
declare module ag.vdom {
declare namespace ag.vdom {
class VHtmlElement extends VElement {
private type;
private classes;
@@ -855,7 +856,7 @@ declare module ag.vdom {
fireElementAttachedToChildren(element: Element): void;
}
}
declare module ag.vdom {
declare namespace ag.vdom {
class VWrapperElement extends VElement {
private wrappedElement;
constructor(wrappedElement: Element);
@@ -863,7 +864,7 @@ declare module ag.vdom {
elementAttached(element: Element): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class RenderedCell {
private vGridCell;
private vSpanWithValue;
@@ -924,7 +925,7 @@ declare module ag.grid {
private addClasses();
}
}
declare module ag.grid {
declare namespace ag.grid {
class RenderedRow {
vPinnedRow: any;
vBodyRow: any;
@@ -974,7 +975,7 @@ declare module ag.grid {
private addDynamicClasses();
}
}
declare module ag.grid {
declare namespace ag.grid {
class SvgFactory {
static theInstance: SvgFactory;
static getInstance(): SvgFactory;
@@ -990,10 +991,10 @@ declare module ag.grid {
createArrowUpDownSvg(): Element;
}
}
declare module ag.grid {
declare namespace ag.grid {
function groupCellRendererFactory(gridOptionsWrapper: GridOptionsWrapper, selectionRendererFactory: SelectionRendererFactory, expressionService: ExpressionService): (params: any) => HTMLSpanElement;
}
declare module ag.grid {
declare namespace ag.grid {
class RowRenderer {
private columnModel;
private gridOptionsWrapper;
@@ -1057,7 +1058,7 @@ declare module ag.grid {
startEditingNextCell(rowIndex: any, column: any, shiftKey: any): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class SelectionController {
private eParentsOfRows;
private angularGrid;
@@ -1094,7 +1095,7 @@ declare module ag.grid {
private updateGroupParentsIfNeeded();
}
}
declare module ag.grid {
declare namespace ag.grid {
class RenderedHeaderElement {
private eRoot;
private dragStartX;
@@ -1110,7 +1111,7 @@ declare module ag.grid {
stopDragging(listenersToRemove: any): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class RenderedHeaderCell extends RenderedHeaderElement {
private static DEFAULT_SORTING_ORDER;
private eHeaderCell;
@@ -1148,7 +1149,7 @@ declare module ag.grid {
private addHeaderClassesFromCollDef();
}
}
declare module ag.grid {
declare namespace ag.grid {
class RenderedHeaderGroupCell extends RenderedHeaderElement {
private eHeaderGroup;
private eHeaderGroupCell;
@@ -1178,7 +1179,7 @@ declare module ag.grid {
onDragging(dragChange: any): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class HeaderRenderer {
private gridOptionsWrapper;
private columnController;
@@ -1200,7 +1201,7 @@ declare module ag.grid {
onIndividualColumnResized(column: Column): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class GroupCreator {
private valueService;
init(valueService: ValueService): void;
@@ -1208,7 +1209,7 @@ declare module ag.grid {
isExpanded(expandByDefault: any, level: any): boolean;
}
}
declare module ag.grid {
declare namespace ag.grid {
class InMemoryRowController {
private gridOptionsWrapper;
private columnController;
@@ -1257,7 +1258,7 @@ declare module ag.grid {
private createFooterNode(groupNode);
}
}
declare module ag.grid {
declare namespace ag.grid {
class VirtualPageRowController {
rowRenderer: any;
datasourceVersion: any;
@@ -1304,7 +1305,7 @@ declare module ag.grid {
};
}
}
declare module ag.grid {
declare namespace ag.grid {
class PaginationController {
eGui: any;
btNext: any;
@@ -1346,7 +1347,7 @@ declare module ag.grid {
setupComponents(): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class BorderLayout {
private eNorthWrapper;
private eSouthWrapper;
@@ -1386,7 +1387,7 @@ declare module ag.grid {
setSouthVisible(visible: any): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class GridPanel {
private masterSlaveService;
private gridOptionsWrapper;
@@ -1451,7 +1452,7 @@ declare module ag.grid {
private scrollPinned(bodyTopPosition);
}
}
declare module ag.grid {
declare namespace ag.grid {
class DragAndDropService {
static theInstance: DragAndDropService;
static getInstance(): DragAndDropService;
@@ -1464,7 +1465,7 @@ declare module ag.grid {
addDropTarget(eDropTarget: any, dropTargetCallback: any): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class AgList {
private eGui;
private uniqueId;
@@ -1515,7 +1516,7 @@ declare module ag.grid {
getGui(): any;
}
}
declare module ag.grid {
declare namespace ag.grid {
class ColumnSelectionPanel {
private gridOptionsWrapper;
private columnController;
@@ -1531,7 +1532,7 @@ declare module ag.grid {
getGui(): any;
}
}
declare module ag.grid {
declare namespace ag.grid {
class GroupSelectionPanel {
gridOptionsWrapper: any;
columnController: ColumnController;
@@ -1547,7 +1548,7 @@ declare module ag.grid {
private onItemMoved(fromIndex, toIndex);
}
}
declare module ag.grid {
declare namespace ag.grid {
class AgDropdownList {
private itemSelectedListeners;
private eValue;
@@ -1571,7 +1572,7 @@ declare module ag.grid {
setModel(model: any): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class ValuesSelectionPanel {
private gridOptionsWrapper;
private columnController;
@@ -1587,7 +1588,7 @@ declare module ag.grid {
private beforeDropListener(newItem);
}
}
declare module ag.grid {
declare namespace ag.grid {
class VerticalStack {
isLayoutPanel: any;
childPanels: any;
@@ -1598,14 +1599,14 @@ declare module ag.grid {
doLayout(): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class ToolPanel {
layout: any;
constructor();
init(columnController: any, inMemoryRowController: any, gridOptionsWrapper: GridOptionsWrapper, popupService: PopupService, eventService: EventService): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
interface GridOptions {
virtualPaging?: boolean;
toolPanelSuppressPivot?: boolean;
@@ -1692,7 +1693,7 @@ declare module ag.grid {
columnApi?: ColumnApi;
}
}
declare module ag.grid {
declare namespace ag.grid {
class GridApi {
private grid;
private rowRenderer;
@@ -1789,7 +1790,7 @@ declare module ag.grid {
refreshPivot(): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class ValueService {
private gridOptionsWrapper;
private expressionService;
@@ -1800,7 +1801,7 @@ declare module ag.grid {
private getValueCallback(data, node, field);
}
}
declare module ag.grid {
declare namespace ag.grid {
class Grid {
private virtualRowCallbacks;
private gridOptions;
@@ -1862,7 +1863,7 @@ declare module ag.grid {
doLayout(): void;
}
}
declare module ag.grid {
declare namespace ag.grid {
class ComponentUtil {
static SIMPLE_PROPERTIES: string[];
static SIMPLE_NUMBER_PROPERTIES: string[];
@@ -1878,7 +1879,7 @@ declare module ag.grid {
static toNumber(value: any): number;
}
}
declare module ag.grid {
declare namespace ag.grid {
class AgGridNg2 {
private elementDef;
private _agGrid;
@@ -1973,11 +1974,11 @@ declare module ag.grid {
private globalEventListener(eventType, event);
}
}
declare module ag.grid {
declare namespace ag.grid {
}
declare var exports: any;
declare var module: any;
declare module ag.grid {
declare namespace ag.grid {
interface Filter {
getGui(): any;
isFilterActive(): boolean;

2
agenda/agenda.d.ts vendored
View File

@@ -435,7 +435,7 @@ declare module "agenda" {
stop(cb: Callback): void;
}
module Agenda {
namespace Agenda {
}

View File

@@ -5,7 +5,7 @@
declare var alertify: alertify.IAlertifyStatic;
declare module alertify {
declare namespace alertify {
interface IAlertifyStatic {
/**
* Create an alert dialog box
@@ -16,7 +16,7 @@ declare module alertify {
* @since 0.0.1
*/
alert(message: string, fn?: Function, cssClass?: string): IAlertifyStatic;
/**
* Create a confirm dialog box
* @param message The message passed from the callee
@@ -26,7 +26,7 @@ declare module alertify {
* @since 0.0.1
*/
confirm(message: string, fn?: Function, cssClass?: string): IAlertifyStatic;
/**
* Extend the log method to create custom methods
* @param type Custom method name
@@ -34,7 +34,7 @@ declare module alertify {
* @since 0.0.1
*/
extend(type: string): (message: string, wait?: number) => IAlertifyStatic;
/**
* Initialize Alertify and create the 2 main elements.
* Initialization will happen automatically on the first
@@ -42,7 +42,7 @@ declare module alertify {
* @since 0.0.1
*/
init(): void;
/**
* Show a new log message box
* @param message The message passed from the callee
@@ -52,7 +52,7 @@ declare module alertify {
* @since 0.0.1
*/
log(message: string, type?: string, wait?: number): IAlertifyStatic;
/**
* Create a prompt dialog box
* @param message The message passed from the callee
@@ -63,7 +63,7 @@ declare module alertify {
* @since 0.0.1
*/
prompt(message: string, fn?: Function, placeholder?: string, cssClass?: string): IAlertifyStatic;
/**
* Shorthand for log messages
* @param message The message passed from the callee
@@ -71,7 +71,7 @@ declare module alertify {
* @since 0.0.1
*/
success(message: string): IAlertifyStatic;
/**
* Shorthand for log messages
* @param message The message passed from the callee
@@ -79,14 +79,14 @@ declare module alertify {
* @since 0.0.1
*/
error(message: string): IAlertifyStatic;
/**
* Used to set alertify properties
* @param Properties
* @since 0.2.11
*/
set(args: IProperties): void;
/**
* The labels used for dialog buttons
*/
@@ -105,13 +105,13 @@ declare module alertify {
interface IProperties {
/** Default value for milliseconds display of log messages */
delay?: number;
/** Default values for display of labels */
labels?: ILabels;
/** Default button for focus */
buttonFocus?: string;
/** Should buttons be displayed in reverse order */
buttonReverse?: boolean;
}
@@ -121,4 +121,4 @@ declare module alertify {
ok?: string;
cancel?: string;
}
}
}

2
alt/alt.d.ts vendored
View File

@@ -5,7 +5,7 @@
///<reference path="../react/react.d.ts"/>
declare module AltJS {
declare namespace AltJS {
interface StoreReduce {
action:any;

108
amcharts/AmCharts.d.ts vendored
View File

@@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// AmCharts object (it's not a class) is create automatically when amcharts.js or amstock.js file is included in a web page.
declare module AmCharts {
declare namespace AmCharts {
/** Set it to true if you have base href set for your page. This will fix rendering problems in Firefox caused by base href. */
var baseHref: boolean;
@@ -29,7 +29,7 @@ declare module AmCharts {
/** AmPieChart class creates pie/donut chart. In order to display pie chart you need to set at least three properties - dataProvider, titleField and valueField.
@example
var chartData = [{title:"Pie I have eaten",value:70},{title:"Pie I haven\'t eaten",value:30}];
var chartData = [{title:"Pie I have eaten",value:70},{title:"Pie I haven\'t eaten",value:30}];
var chart = new AmCharts.AmPieChart();
chart.valueField = "value";
chart.titleField = "title";
@@ -113,7 +113,7 @@ declare module AmCharts {
outlineAlpha: number;
/** Pie outline color. #FFFFFF */
outlineColor: string;
/** Pie outline thickness.
/** Pie outline thickness.
@default 1
*/
outlineThickness: number;
@@ -219,7 +219,7 @@ declare module AmCharts {
chart.dataProvider = chartData;
chart.categoryField = "country";
chart.startDuration = 2;
var valueAxis = new AmCharts.ValueAxis();
valueAxis.axisAlpha = 0.15;
valueAxis.minimum = 0;
@@ -227,13 +227,13 @@ declare module AmCharts {
valueAxis.axisTitleOffset = 20;
valueAxis.gridCount = 5;
chart.addValueAxis(valueAxis);
var graph = new AmCharts.AmGraph();
graph.valueField = "litres";
graph.bullet = "round";
graph.balloonText = "[[value]] litres of beer per year"
chart.addGraph(graph);
chart.write("chartdiv");
}
*/
@@ -262,7 +262,7 @@ declare module AmCharts {
{x:1, y:6, value:35}
];
var chart = new AmCharts.AmXYChart();
var chart = new AmCharts.AmXYChart();
chart.pathToImages = "../../amcharts/javascript/images/";
chart.dataProvider = chartData;
chart.marginLeft = 35;
@@ -276,7 +276,7 @@ declare module AmCharts {
var yAxis = new AmCharts.ValueAxis();
yAxis.position = "bottom";
yAxis.autoGridCount = true;
chart.addValueAxis(yAxis);
chart.addValueAxis(yAxis);
var graph = new AmCharts.AmGraph();
graph.valueField = "value";
@@ -292,7 +292,7 @@ declare module AmCharts {
var chartScrollbar = new AmCharts.ChartScrollbar();
chartScrollbar.hideResizeGrips = false;
chart.addChartScrollbar(chartScrollbar);
chart.write("chartdiv);
*/
class AmXYChart extends AmRectangularChart {
@@ -368,7 +368,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
}
/** ImagesSettings is a class which holds common settings of all MapImage objects. */
class ImagesSettings {
/** Opacity of the image.
/** Opacity of the image.
@default 1
*/
alpha: number;
@@ -382,7 +382,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
color: string;
/** Height of a description window. */
descriptionWindowHeight: number;
/** Width of a description window.
/** Width of a description window.
@default 250
*/
descriptionWindowWidth: number;
@@ -392,7 +392,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
descriptionWindowY: number;
/** Label color. #000000 */
labelColor: string;
/** Font size of a label.
/** Font size of a label.
@default 11
*/
labelfontSize: string;
@@ -589,7 +589,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
/** Adds event listener of the type "rollOutStockEvent" or "rollOverStockEvent" or "clickStockEvent" to the object.
@param type // Either "rollOutStockEvent" or "rollOverStockEvent" or "clickStockEvent".
@param handler
@param handler
If the type is "rollOutStockEvent", dispatched when the user rolls-out of the Stock event (bullet).
If the type is "rollOverStockEvent", dispatched when the user rolls-over of the Stock event (bullet).
If the type is "clickStockEvent", dispatched when the user clicks on the Stock event (bullet).
@@ -941,7 +941,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
@default 11
*/
fontSize: string;
/** If you set this to true, the lines of the chart will be distorted and will produce hand-drawn effect. Try to adjust chart.handDrawScatter and chart.handDrawThickness properties for a more scattered result.
/** If you set this to true, the lines of the chart will be distorted and will produce hand-drawn effect. Try to adjust chart.handDrawScatter and chart.handDrawThickness properties for a more scattered result.
@Default false
*/
handDrawn: boolean;
@@ -953,7 +953,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
@Default 1
*/
handDrawThickness: number;
/** Time, in milliseconds after which balloon is hidden if the user rolls-out of the object. Might be useful for AmMap to avoid balloon flickering while moving mouse over the areas. Note, this is not duration of fade-out. Duration of fade-out is set in AmBalloon class.
/** Time, in milliseconds after which balloon is hidden if the user rolls-out of the object. Might be useful for AmMap to avoid balloon flickering while moving mouse over the areas. Note, this is not duration of fade-out. Duration of fade-out is set in AmBalloon class.
@Default 150
*/
hideBalloonTime: number;
@@ -966,19 +966,19 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
/** This setting affects touch-screen devices only. If a chart is on a page, and panEventsEnabled are set to true, the page won't move if the user touches the chart first. If a chart is big enough and occupies all the screen of your touch device, the user wont be able to move the page at all. That's why the default value is "false". If you think that selecting/panning the chart or moving/pinching the map is a primary purpose of your users, you should set panEventsEnabled to true. */
panEventsEnabled: boolean;
/** Specifies absolute or relative path to amCharts files, i.e. "amcharts/". (where all .js files are located)
If relative URLs are used, they will be relative to the current web page, displaying the chart.
You can also set path globally, using global JavaScript variable AmCharts_path. If this variable is set, and "path" is not set in chart config, the chart will assume the path from the global variable. This allows setting amCharts path globally. I.e.:
If relative URLs are used, they will be relative to the current web page, displaying the chart.
You can also set path globally, using global JavaScript variable AmCharts_path. If this variable is set, and "path" is not set in chart config, the chart will assume the path from the global variable. This allows setting amCharts path globally. I.e.:
var AmCharts_path = "/libs/amcharts/";
"path" parameter will be used by the charts to locate it's files, like images, plugins or patterns.*/
path: string;
path: string;
/** Specifies path to the folder where images like resize grips, lens and similar are.
IMPORTANT: Since V3.14.12, you should use "path" to point to amCharts directory instead. The "pathToImages" will be automatically set and does not need to be in the chart config, unless you keep your images separately from other amCharts files. */
pathToImages: string;
/** Precision of percent values. -1 means percent values won't be rounded at all and show as they are.
/** Precision of percent values. -1 means percent values won't be rounded at all and show as they are.
@default 2
*/
percentPrecision: number;
/** Precision of values. -1 means values won't be rounded at all and show as they are.
/** Precision of values. -1 means values won't be rounded at all and show as they are.
@Default 1*/
precision: number;
/** Prefixes which are used to make big numbers shorter: 2M instead of 2000000, etc. Prefixes are used on value axes and in the legend. To enable prefixes, set usePrefixes property to true. [{number:1e+3,prefix:"k"},{number:1e+6,prefix:"M"},{number:1e+9,prefix:"G"},{number:1e+12,prefix:"T"},{number:1e+15,prefix:"P"},{number:1e+18,prefix:"E"},{number:1e+21,prefix:"Z"},{number:1e+24,prefix:"Y"}] */
@@ -987,7 +987,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
prefixesOfSmallNumbers: any[];
/** Theme of a chart. Config files of themes can be found in amcharts/themes/ folder. More info about using themes. */
theme: string;
/** Thousands separator.
/** Thousands separator.
@default .
*/
thousandsSeparator: string;
@@ -1115,7 +1115,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
/** Adds a graph to the chart.
*/
addGraph(graph: AmGraph);
/** Adds a legend to the chart. By default, you don't need to create div for your legend, however if you want it to be positioned in some different way, you can create div anywhere you want and pass id or reference to your div as a second parameter. (NOTE: This method will not work on StockPanel.) */
/** Adds a legend to the chart. By default, you don't need to create div for your legend, however if you want it to be positioned in some different way, you can create div anywhere you want and pass id or reference to your div as a second parameter. (NOTE: This method will not work on StockPanel.) */
/** Adds value axis to the chart.
One value axis is created automatically, so if you don't want to change anything or add more value axes, you don't need to add it.
*/
@@ -1203,33 +1203,33 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
/** SerialDataItem holds all the information about each series. When working with a chart, you do not create SerialDataItem objects or change it's properties directly. Consider properties of a SerialDataItem read-only - change values in chart's data provider if you need to. When serial chart parses dataProvider, it generates "chartData" array. Objects of this array are SerialDataItem objects. */
class SerialDataItem {
/** You can access each GraphDataItem using this object. The data structure is: graphDataItem = serialDataItem.axes[axisId].graphs[graphId]. */
axes: Object;
/** category value. String if parseDates is false, Date if true. */
category: any;
/** Timestamp of a series date. Avalable only if parseDates property of CategoryAxis is set to true. */
time: number;
/** Coordinate (horizontal or vertical, depends on chart's rotate property) of the series. */
x: number;
}
class CategoryAxis extends AxisBase {
/** When parse dates is on for the category axis, the chart will try to highlight the beginning of the periods, like month, in bold. Set this to false to disable the functionality.
@default true
*/
boldPeriodBeginning: boolean;
/** Date formats of different periods. Possible period values: fff - milliseconds, ss - seconds, mm - minutes, hh - hours, DD - days, MM - months, WW - weeks, YYYY - years. Check this page for date formatting strings. [{period:'fff',format:'JJ:NN:SS'},{period:'ss',format:'JJ:NN:SS'},{period:'mm',format:'JJ:NN'},{period:'hh',format:'JJ:NN'},{period:'DD',format:'MMM DD'},{period:'WW',format:'MMM DD'},{period:'MM',format:'MMM'},{period:'YYYY',format:'YYYY'}] */
dateFormats: any[];
/** In case your category axis values are Date objects and parseDates is set to true, the chart will parse dates and will place your data points at irregular intervals. However if you want dates to be parsed (displayed on the axis, baloons, etc), but data points to be placed at equal intervals (omiting dates with no data), set equalSpacing to true. */
equalSpacing: boolean;
/** Field in data provider which specifies if the category value should always be shown. For example: categoryAxis.forceShowField = "forceShow"; Field in data provider which specifies if the category value should always be shown. For example: categoryAxis.forceShowField = "forceShow";
And in data:
{category:"one", forceShow:true, value:100}
@@ -1256,7 +1256,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
/** Number Returns coordinate of the date, in case parseDates is set to true. if parseDates is false, use categoryToCoordinate method. date - Date object */
dateToCoordinate(date: Date);
/** Number Returns index of the category which is most close to specified coordinate. x - coordinate */
xToIndex(x: number);
}
@@ -1332,7 +1332,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
/** AmRectangularChart is a base class of AmSerialChart and AmXYChart. It can not be instantiated explicitly.*/
class AmRectangularChart extends AmCoordinateChart {
/** The angle of the 3D part of plot area. This creates a 3D effect (if the "depth3D" is > 0).
/** The angle of the 3D part of plot area. This creates a 3D effect (if the "depth3D" is > 0).
@default 0
*/
angle: number;
@@ -1348,7 +1348,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
chartCursor: ChartCursor;
/** Chart scrollbar. */
chartScrollbar: ChartScrollbar;
/** The depth of the 3D part of plot area. This creates a 3D effect (if the "angle" is > 0).
/** The depth of the 3D part of plot area. This creates a 3D effect (if the "angle" is > 0).
@default 0*/
depth3D: number;
/** Number of pixels between the container's bottom border and plot area. This space can be used for bottom axis' values. If autoMargin is true and bottom side has axis, this property is ignored.
@@ -1363,7 +1363,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
@default 20
*/
marginRight: number;
/** Flag which should be set to false if you need margins to be recalculated on next chart.validateNow() call.
/** Flag which should be set to false if you need margins to be recalculated on next chart.validateNow() call.
@default false
*/
marginsUpdated: boolean;
@@ -1375,24 +1375,24 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
@default 0
*/
plotAreaBorderAlpha: number;
/** The color of the plot area's border. Note, the it is invisible by default, as plotAreaBorderAlpha default value is 0. Set it to a value higher than 0 to make it visible.
/** The color of the plot area's border. Note, the it is invisible by default, as plotAreaBorderAlpha default value is 0. Set it to a value higher than 0 to make it visible.
@default '#000000'*/
plotAreaBorderColor: string;
/** Opacity of plot area. Plural form is used to keep the same property names as our Flex charts'. Flex charts can accept array of numbers to generate gradients. Although you can set array here, only first value of this array will be used.
/** Opacity of plot area. Plural form is used to keep the same property names as our Flex charts'. Flex charts can accept array of numbers to generate gradients. Although you can set array here, only first value of this array will be used.
@default 0
*/
plotAreaFillAlphas: number;
/** You can set both one color if you need a solid color or array of colors to generate gradients, for example: ["#000000", "#0000CC"]
/** You can set both one color if you need a solid color or array of colors to generate gradients, for example: ["#000000", "#0000CC"]
@default '#FFFFFF'
*/
plotAreaFillColors: any;
/** If you are using gradients to fill the plot area, you can use this property to set gradient angle. The only allowed values are horizontal and vertical: 0, 90, 180, 270.
/** If you are using gradients to fill the plot area, you can use this property to set gradient angle. The only allowed values are horizontal and vertical: 0, 90, 180, 270.
@default 0
*/
plotAreaGradientAngle: number;
/** Array of trend lines added to a chart. You can add trend lines to a chart using this array or access already existing trend lines */
trendLines: TrendLine[];
/** Opacity of zoom-out button background.
/** Opacity of zoom-out button background.
@default 0
*/
zoomOutButtonAlpha: number;
@@ -1418,7 +1418,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
zoomOutButtonRollOverAlpha: number;
/** Text in the zoom-out button. Show all */
zoomOutText: string;
/** Adds a ChartCursor object to a chart */
addChartCursor(cursor: ChartCursor);
/** Adds a ChartScrollbar to a chart */
@@ -1430,7 +1430,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
removeChartCursor();
/** Removes scrollbar from the chart */
removeChartScrollbar();
/** Removes a trend line from a chart.
/** Removes a trend line from a chart.
You should call chart.validateNow() in order the changes to be visible. */
removeTrendLine(trendLine: TrendLine);
}
@@ -1470,7 +1470,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
categoryBalloonColor: string;
/** Category balloon date format (used only if category axis parses dates). Check this page for instructions on how to format dates. MMM DD, YYYY */
categoryBalloonDateFormat: string;
/** Specifies whether category balloon is enabled.
/** Specifies whether category balloon is enabled.
@default true
*/
categoryBalloonEnabled: boolean;
@@ -1539,17 +1539,17 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
/** AmSerialChart is the class you have to use for majority of chart types. The supported chart types are: line, area, column, bar, step line, smoothed line, candlestick and OHLC. The chart can be rotated by 90 degrees so the column chart becomes bar chart. The chart supports simple and logarithmic scales, it can have multiple value axes. The chart can place data points at equal intervals or can parse dates and place data points at irregular intervals.
@example
var chartData = [{title:"sample 1",value:130},{title:"sample 2",value:26}];
var chart = new AmCharts.AmSerialChart();
chart.categoryField = "title";
chart.dataProvider = chartData;
var graph = new AmCharts.AmGraph();
graph.valueField = "value";
graph.type = "column";
graph.fillAlphas = 1;
chart.addGraph(graph);
chart.write("chartdiv");
*/
class AmSerialChart extends AmRectangularChart {
@@ -1581,7 +1581,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
maxSelectedSeries: number;
/** The longest time span allowed to select (in milliseconds) for example, 259200000 will limit selection to 3 days. */
maxSelectedTime: number;
/** The shortest time span allowed to select (in milliseconds) for example, 1000 will limit selection to 1 second.
/** The shortest time span allowed to select (in milliseconds) for example, 1000 will limit selection to 1 second.
@default 0
*/
minSelectedTime: number;
@@ -1830,7 +1830,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
/** Specifies if label is bold or not. */
bold: boolean;
/** Color of a label */
color: string;
color: string;
/** Unique id of a Label. You don't need to set it, unless you want to. */
id: string;
/** Rotation angle. */
@@ -2156,7 +2156,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
/** Value balloon color. Will use graph or data item color if not set. */
balloonColor: string;
/** If you set some function, the graph will call it and pass GraphDataItem and AmGraph object to it. This function should return a string which will be displayed in a balloon. */
balloonFunction(graphDataItem: GraphDataItem, amGraph: AmGraph): string;
balloonFunction(graphDataItem: GraphDataItem, amGraph: AmGraph): string;
/** Balloon text. You can use tags like [[value]], [[description]], [[percents]], [[open]], [[category]] [[value]] */
balloonText: string;
/** Specifies if the line graph should be placed behind column graphs */
@@ -2431,7 +2431,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
/** Specifies whether values on axis can only be integers or both integers and doubles. */
integersOnly: boolean;
/** You can use this function to format Value axis labels. This function is called and these parameters are passed: labelFunction(value, valueText, valueAxis);
Where value is numeric value, valueText is formatted string and valueAxis is a reference to valueAxis object.
Where value is numeric value, valueText is formatted string and valueAxis is a reference to valueAxis object.
If axis type is "date", labelFunction will pass different arguments:
labelFunction(valueText, date, valueAxis)
@@ -2510,7 +2510,7 @@ Your function should return string.*/
removeGuide(guide: Guide);
/** Removes event listener from the object. */
removeListener(obj: any, type: string, handler: any);
/** One value axis can be synchronized with another value axis. You should set synchronizationMultiplyer in order for this to work. */
synchronizeWithAxis(axis:ValueAxis);
/** XY Chart only. Zooms-in the axis to the provided values. */
@@ -2534,15 +2534,15 @@ Your function should return string.*/
/** Removes event listener from chart object. */
removeListener(chart: AmChart, type: string, handler: any);
}
class Title {
/** @default 1 */
alpha: number;
/** Specifies if the tile is bold or not.
/** Specifies if the tile is bold or not.
@default false*/
bold: boolean;
/** Text color of a title. */
color: string;
color: string;
/** Unique id of a Title. You don't need to set it, unless you want to. */
id: string;
/** Text size */
@@ -2555,4 +2555,4 @@ Your function should return string.*/
libs: Object;
menu: Object;
}
}
}

View File

@@ -7,7 +7,7 @@
/// <reference path="../node/node.d.ts" />
declare module "amqplib/properties" {
module Replies {
namespace Replies {
interface Empty {
}
interface AssertQueue {
@@ -29,7 +29,7 @@ declare module "amqplib/properties" {
}
}
module Options {
namespace Options {
interface AssertQueue {
exclusive?: boolean;
durable?: boolean;

View File

@@ -3,7 +3,7 @@
// Definitions by: Andrew Fong <https://github.com/fongandrew>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module AnalyticsNode {
declare namespace AnalyticsNode {
interface Integrations {
[index: string]: boolean;

View File

@@ -5,38 +5,38 @@
/// <reference path='../angularjs/angular.d.ts' />
declare module aa {
declare namespace aa {
export interface ILabelStrategies {
[strategyName: string]: (element:ng.IAugmentedJQueryStatic, labelText:string, isRequired:boolean)=>void;
}
export interface IFieldGroupStrategies {
[strategyName: string]: (element:ng.IAugmentedJQueryStatic)=>void;
}
export interface IValMsgPlacementStrategies {
[strategyName: string]: (formFieldElement:ng.IAugmentedJQueryStatic, formName:string, formFieldName:string)=>void;
}
export interface IValidIconStrategy {
validIcon:string;
invalidIcon:string;
getContainer(element:ng.IAugmentedJQueryStatic):void;
}
export interface ISpinnerClickStrategies {
[strategyName: string]: (element:ng.IAugmentedJQueryStatic)=>void;
}
export interface IOnNavigateAwayStrategies {
[strategyName: string]: (rootFormScope:ng.IScope, rootForm:ng.IAugmentedJQueryStatic, $injector:ng.auto.IInjectorService)=>void;
}
export interface IValidationMessages {
[validationKey: string]: string;
}
export interface IGlobalSettings {
[settingName: string]: any;
}
@@ -53,18 +53,18 @@ declare module aa {
valMsgForTemplate:string;
confirmResetStrategy:()=>boolean;
globalSettings:IGlobalSettings;
labelStrategies:ILabelStrategies;
fieldGroupStrategies:IFieldGroupStrategies;
valMsgPlacementStrategies:IValMsgPlacementStrategies;
spinnerClickStrategies:ISpinnerClickStrategies;
onNavigateAwayStrategies:IOnNavigateAwayStrategies;
}
export interface INotifyPredicate {
(message:string, options:any, notifier:any):any;
}
export interface INotifyDefaults {
success: INotifyPredicate;
info: INotifyPredicate;
@@ -72,7 +72,7 @@ declare module aa {
danger: INotifyPredicate;
error: INotifyPredicate;
}
export interface INotifyConfig {
name:string;
template?:string;
@@ -80,14 +80,14 @@ declare module aa {
options:INotifyOptions;
namedDefaults:INotifyDefaults;
}
export interface INotifyOptions {
cssClasses?:string;
messageType:string;
allowHtml:boolean;
message:string;
}
export interface INotifyConfigProvider extends ng.IServiceProvider {
notifyConfigs:any;
defaultTargetContainerName:string;
@@ -95,7 +95,7 @@ declare module aa {
addOrUpdateNotifyConfig(name:string, opts:INotifyConfig):void;
optionsTransformer(options:INotifyOptions, $sce:ng.ISCEService):void;
}
export interface IExternalFormValidationConfig {
validations:any;
ignore?:any;
@@ -103,4 +103,4 @@ declare module aa {
resolve?:any;
resolveFn?:(modelValue:string)=>string;
}
}
}

View File

@@ -5,7 +5,7 @@
/// <reference path="../moment/moment.d.ts" />
declare module angular.bootstrap.calendar {
declare namespace angular.bootstrap.calendar {
interface IEvent {
/**
* The title of the event
@@ -110,7 +110,7 @@ declare module angular.bootstrap.calendar {
badgeTotal: number;
}
module events {
namespace events {
interface IOnEventClick {
(calendarEvent: IEvent): void;
}
@@ -135,4 +135,4 @@ declare module angular.bootstrap.calendar {
(calendarDate: Date, calendarNextView: string): void;
}
}
}
}

View File

@@ -3,7 +3,7 @@
// Definitions by: Roland Zwaga <https://github.com/rolandzwaga>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module angular.bootstrap.lightbox {
declare namespace angular.bootstrap.lightbox {
export interface ILightboxImageInfo {
url: string;
@@ -48,4 +48,4 @@ declare module angular.bootstrap.lightbox {
calculateImageDimensionLimits:(dimensions:IImageDimensionParameter)=>IImageDimensionLimits;
calculateModalDimensions:(dimensions:IModalDimensionsParameter)=>IModalDimensions;
}
}
}

View File

@@ -3,63 +3,63 @@
// Definitions by: Borislav Zhivkov <https://github.com/borislavjivkov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module angular.cookie {
declare namespace angular.cookie {
interface CookieService {
/**
* Get all cookies
*/
(): any;
/**
* Get a cookie with a specific key
*/
(key: string): any;
/**
* Create a cookie
*/
(key: string, value: any, options?: CookieOptions): any;
/**
* Remove a cookie
*/
remove(key: string, options?: CookieOptions): void;
}
interface CookieOptions {
/**
* The domain tells the browser to which domain the cookie should be sent. If you don't specify it, it becomes the domain of the page that sets the cookie.
*/
domain?: string;
/**
* The path gives you the chance to specify a directory where the cookie is active.
*/
path?: string;
/**
* Each cookie has an expiry date after which it is trashed. If you don't specify the expiry date the cookie is trashed when you close the browser.
*/
expires?: number;
/**
* Allows you to set the expiration time in hours, minutes, seconds, or `milliseconds. If this is not specified, any expiration time specified will default to days.
*/
expirationUnit?: string;
/**
* The Secure attribute is meant to keep cookie communication limited to encrypted transmission, directing browsers to use cookies only via secure/encrypted connections.
*/
secure?: boolean;
/**
* The method that will be used to encode the cookie value (should be passed when using Set).
*/
encode?: (value: any) => any;
/**
* The method that will be used to decode extracted cookie values (should be passed when using Get).
*/
decode?: (value: any) => any;
}
}
}

View File

@@ -6,7 +6,7 @@
/// <reference path="../angularjs/angular.d.ts"/>
/// <reference path="../angular-ui-bootstrap/angular-ui-bootstrap.d.ts"/>
declare module angular.dialogservice {
declare namespace angular.dialogservice {
interface IDialogOptions {
/**

View File

@@ -10,7 +10,7 @@ declare module "angular-dynamic-locale" {
export = ng;
}
declare module angular.dynamicLocale {
declare namespace angular.dynamicLocale {
interface tmhDynamicLocaleService {
set(locale: string): void;
@@ -23,4 +23,4 @@ declare module angular.dynamicLocale {
useStorage(storageName: string): void;
useCookieStorage(): void;
}
}
}

View File

@@ -3,7 +3,7 @@
// Definitions by: Matt Wheatley <https://github.com/terrawheat>
// Definitions: https://github.com/LiberisLabs
declare module angular.environment {
declare namespace angular.environment {
interface ServiceProvider {
/**
* Sets the configuration object

View File

@@ -14,7 +14,7 @@ declare module 'angular-formly' {
export = angularFormlyDefaultExport;
}
declare module AngularFormly {
declare namespace AngularFormly {
interface IFieldArray extends Array<IFieldConfigurationObject | IFieldGroup> {

View File

@@ -5,7 +5,7 @@
/// <reference path="../angularjs/angular.d.ts" />
declare module angular.fullscreen {
declare namespace angular.fullscreen {
/**
* Prefixing interface name with "I" is not recommended: http://www.typescriptlang.org/Handbook#writing-dts-files

View File

@@ -1,7 +1,7 @@
/// <reference path="angular-gettext.d.ts" />
module angular_gettext_tests {
namespace angular_gettext_tests {
// Configuring angular-gettext
// https://angular-gettext.rocketeer.be/dev-guide/configure/
@@ -15,12 +15,12 @@ module angular_gettext_tests {
gettextCatalog.debug = true;
});
// Marking strings in JavaScript code as translatable.
// https://angular-gettext.rocketeer.be/dev-guide/annotate-js/
// Marking strings in JavaScript code as translatable.
// https://angular-gettext.rocketeer.be/dev-guide/annotate-js/
angular.module("myApp").controller("helloController", function (gettext: angular.gettext.gettextFunction) {
var myString = gettext("Hello");
});
});
//Translating directly in JavaScript.
angular.module("myApp").controller("helloController", function (gettextCatalog: angular.gettext.gettextCatalog) {
@@ -58,4 +58,4 @@ module angular_gettext_tests {
gettextCatalog.loadRemote("/languages/" + lang + ".json");
};
});
}
}

View File

@@ -5,7 +5,7 @@
/// <reference path="../angularjs/angular.d.ts" />
declare module angular.gettext {
declare namespace angular.gettext {
interface gettextCatalog {
//////////////
@@ -24,7 +24,7 @@ declare module angular.gettext {
translatedMarkerSuffix: string;
/** An object of loaded translation strings.Shouldn't be used directly. */
strings: {};
/** The default language, in which you're application is written. This defaults to English and it's generally a bad idea to use anything else: if your language has different pluralization rules you'll end up with incorrect translations. Deprecated
/** The default language, in which you're application is written. This defaults to English and it's generally a bad idea to use anything else: if your language has different pluralization rules you'll end up with incorrect translations. Deprecated
* @deprecreated
*/
baseLanguage: string;
@@ -51,7 +51,7 @@ declare module angular.gettext {
/** Get the correct pluralized (but untranslated) string for the value of n. */
getStringForm(string: string, n: number): string;
/** Translate a string with the given context. Uses Angular.JS interpolation, so something like this will do what you expect:
/** Translate a string with the given context. Uses Angular.JS interpolation, so something like this will do what you expect:
* var hello = gettextCatalog.getString("Hello {{name}}!", { name: "Ruben" });
* // var hello will be "Hallo Ruben!" in Dutch.
* The context parameter is optional: pass null (or don't pass anything) if you're not using it: this skips interpolation and is a lot faster.

View File

@@ -3,7 +3,7 @@
// Definitions by: Matt Wheatley <https://github.com/terrawheat>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module angular.google.analytics {
declare namespace angular.google.analytics {
interface AnalyticsService {
/**
* @summary If logging is enabled then all outbound calls are accessible via an in-memory array.

View File

@@ -5,7 +5,7 @@
/// <reference path="../angularjs/angular.d.ts" />
declare module angular.google.analytics {
declare namespace angular.google.analytics {
/**
* @summary Interface for {@link AnalysticsProvider}.
* @interface

View File

@@ -5,7 +5,7 @@
/// <reference path="../angularjs/angular.d.ts" />
declare module angular.growl {
declare namespace angular.growl {
/**
* Global Time-To-Leave configuration.
@@ -39,7 +39,7 @@ declare module angular.growl {
*/
interface IGrowlMessage extends IGrowlMessageConfig {
text: string;
/**
* Destroy the message.
*/

View File

@@ -5,7 +5,7 @@
/// <reference path="../angularjs/angular.d.ts" />
declare module angular.hotkeys {
declare namespace angular.hotkeys {
interface HotkeysProvider {
template: string;

View File

@@ -5,7 +5,7 @@
/// <reference path="../angularjs/angular.d.ts" />
declare module angular.httpAuth {
declare namespace angular.httpAuth {
interface IAuthService {
loginConfirmed(data?:any, configUpdater?:Function):void;
loginCancelled(data?:any, reason?:any):void;

View File

@@ -5,7 +5,7 @@
/// <reference path="../angularjs/angular.d.ts" />
declare module Httpi {
declare namespace Httpi {
export interface HttpiPayload extends ng.IRequestShortcutConfig {
method?: string;
url?: string;
@@ -39,4 +39,4 @@ declare module Httpi {
setKeepTrailingSlash(newKeepTrailingSlash: boolean): HttpiResource;
}
}
}

View File

@@ -5,94 +5,94 @@
/// <reference path="../angularjs/angular.d.ts" />
declare module angular.idle {
declare namespace angular.idle {
/**
* Used to configure the Title service.
*/
interface ITitleProvider extends IServiceProvider {
/**
* Enables or disables the Title functionality.
*
*
* @param enabled Boolean, default is true.
*/
enabled(enabled: boolean): void;
}
interface ITitleService {
/**
* Allows the title functionality to be enabled or disabled on the fly.
*/
setEnabled(enabled: boolean): void;
/**
* Returns whether or not the title functionality has been enabled.
*/
isEnabled(): boolean;
/**
* Will store val as the "original" title of the document.
*
* Tracking the original title is important when restoring the title after displaying, for example, the idle warning message.
*
* Tracking the original title is important when restoring the title after displaying, for example, the idle warning message.
*/
original(val: string): void;
/**
* Returns the "original" title value that has been previously set.
*
* Tracking the original title is important when restoring the title after displaying, for example, the idle warning message.
*
* Tracking the original title is important when restoring the title after displaying, for example, the idle warning message.
*/
original(): string;
/**
* Changes the actual title of the document.
*/
value(val: string): void;
/**
* Returns the current document title.
*/
value(): string;
/**
* If overwrite is false or unspecified, updates the "original" title with the current document title
* if it has not already been stored. If overwrite is true, the current document title is stored regardless.
*/
store(overwrite?: boolean): void;
/**
* Sets the title to the original value (if it was stored or set previously).
*/
restore(): void;
/**
* Sets the text to use as the message displayed when the user is idle.
*/
idleMessage(val: string): void;
/**
* Gets the text to use as the message displayed when the user is idle.
*/
idleMessage(): string;
/**
* Sets the text to use as the message displayed when the user is timed out.
*/
timedOutMessage(val: string): void;
/**
* Gets the text to use as the message displayed when the user is timed out.
*/
timedOutMessage(): string;
/**
* Stores the original title if it hasn't been already, determines the number minutes, seconds,
* and total seconds from countdown, and displays the idleMessage with the aforementioned values interpolated.
*/
setAsIdle(countdown: number): void;
/**
* Stores the original title if it hasn't been already, and displays the timedOutMessage.
*/
@@ -105,19 +105,19 @@ declare module angular.idle {
interface IKeepAliveProvider extends IServiceProvider {
/**
* If configured, options will be used to issue a request using $http.
* If the value is null, no HTTP request will be issued.
* You can specify a string, which it will assume to be a URL to a simple GET request.
* If configured, options will be used to issue a request using $http.
* If the value is null, no HTTP request will be issued.
* You can specify a string, which it will assume to be a URL to a simple GET request.
* Otherwise, you can use the same options $http takes. However, cache will always be false.
*
*
* @param value May be string or IRequestConfig, default is null.
*/
http(value: string | IRequestConfig): void;
/**
* This specifies how often the keepalive event is triggered and the
* This specifies how often the keepalive event is triggered and the
* HTTP request is issued.
*
*
* @param seconds Integer, default is 10 minutes. Must be greater than 0.
*/
interval(seconds: number): void;
@@ -126,7 +126,7 @@ declare module angular.idle {
/**
* Keepalive will use a timeout to periodically wake, broadcast a Keepalive event on the root scope,
* and optionally make an $http request. By default, the Idle service will stop and start Keepalive
* when a user becomes idle or returns from idle, respectively. It is also started automatically when
* when a user becomes idle or returns from idle, respectively. It is also started automatically when
* Idle.watch() is called. This can be disabled by configuring the IdleProvider.
*/
interface IKeepAliveService {
@@ -145,7 +145,7 @@ declare module angular.idle {
* Performs one ping only.
*/
ping(): void;
/**
* Changes the interval value at runtime.
* You will need to restart the pinging process by calling start() manually for the changes to be reflected.
@@ -158,26 +158,26 @@ declare module angular.idle {
*/
interface IIdleProvider extends IServiceProvider {
/**
* Specifies the DOM events the service will watch to reset the idle timeout.
* Specifies the DOM events the service will watch to reset the idle timeout.
* Multiple events should be separated by a space.
*
*
* @param events string, default 'mousemove keydown DOMMouseScroll mousewheel mousedown'
*/
interrupt(events: string): void;
/**
* The idle timeout duration in seconds. After this amount of time passes without the user
* performing an action that triggers one of the watched DOM events, the user is considered
* The idle timeout duration in seconds. After this amount of time passes without the user
* performing an action that triggers one of the watched DOM events, the user is considered
* idle.
*
*
* @param seconds integer, default is 20min
*/
idle(seconds: number): void;
/**
* The amount of time the user has to respond (in seconds) before they have been considered
* The amount of time the user has to respond (in seconds) before they have been considered
* timed out.
*
*
* @param seconds integer, default is 30s
*/
timeout(seconds: number): void;
@@ -187,14 +187,14 @@ declare module angular.idle {
* and reset the idle state. If false or off, you will need to manually call watch()
* when you want to start watching for idleness again. If notIdle, user activity will
* only automatically interrupt if the user is not yet idle.
*
*
* @param enabled boolean or string, possible values: off/false, idle/true, or notIdle
*/
autoResume(enabled: boolean | string): void;
/**
* When true, the Keepalive service is automatically stopped and started as needed.
*
*
* @param enabled boolean, default is true
*/
keepalive(enabled: boolean): void;
@@ -202,9 +202,9 @@ declare module angular.idle {
/**
* Idle, once watch() is called, will start a timeout which if expires, will enter a warning state
* countdown. Once the countdown reaches zero, idle will broadcast a timeout event indicating the
* user has timed out (where your app should log them out or whatever you like). If the user performs
* an action that triggers a watched DOM event that bubbles up to document.body, this will reset the
* countdown. Once the countdown reaches zero, idle will broadcast a timeout event indicating the
* user has timed out (where your app should log them out or whatever you like). If the user performs
* an action that triggers a watched DOM event that bubbles up to document.body, this will reset the
* idle/warning state and start the process over again.
*/
interface IIdleService {
@@ -219,13 +219,13 @@ declare module angular.idle {
getTimeout(): number;
/**
* Updates the idle value (see IdleProvider.idle()) and
* Updates the idle value (see IdleProvider.idle()) and
* restarts the watch if its running.
*/
setIdle(idle: number): void;
/**
* Updates the timeout value (see IdleProvider.timeout()) and
* Updates the timeout value (see IdleProvider.timeout()) and
* restarts the watch if its running.
*/
setTimeout(timeout: number): void;
@@ -234,7 +234,7 @@ declare module angular.idle {
* Whether user has timed out (meaning idleDuration + timeout has passed without any activity)
*/
isExpired(): boolean;
/**
* Whether or not the watch() has been called and it is watching for idleness.
*/

View File

@@ -5,7 +5,7 @@
/// <reference path="../angularjs/angular.d.ts" />
declare module angular.jwt {
declare namespace angular.jwt {
interface JwtToken {
iss: string;

View File

@@ -5,7 +5,7 @@
/// <reference path="../angularjs/angular.d.ts" />
declare module angular.load {
declare namespace angular.load {
interface IAngularLoadService {
loadScript(url:string): ng.IPromise<any>;

View File

@@ -6,7 +6,7 @@
/// <reference path="../angularjs/angular.d.ts" />
declare module angular {
declare namespace angular {
interface IRequestShortcutConfig {
/**
@@ -16,8 +16,8 @@ declare module angular {
}
}
declare module angular.loadingBar {
declare namespace angular.loadingBar {
interface ILoadingBarProvider{
/**
* Turn the spinner on or off

View File

@@ -5,7 +5,7 @@
/// <reference path='../angularjs/angular.d.ts' />
declare module angular.local.storage {
declare namespace angular.local.storage {
interface ILocalStorageServiceProvider extends angular.IServiceProvider {
/**
* Setter for the prefix

View File

@@ -6,7 +6,7 @@
/// <reference path="../localForage/localForage.d.ts" />
/// <reference path="../angularjs/angular.d.ts" />
declare module angular.localForage {
declare namespace angular.localForage {
interface LocalForageConfig {
driver?:string;

View File

@@ -10,7 +10,7 @@ declare module "angular-locker" {
export = _;
}
declare module angular.locker {
declare namespace angular.locker {
interface ILockerServicePutFunction {
(current: any): any
}
@@ -69,7 +69,7 @@ declare module angular.locker {
* Add a new item to storage (even if it already exists)
*
* @param {Mixed} key The key to add
* @param {Mixed} value The value to add
* @param {Mixed} value The value to add
*/
put(key: string, value: any): ILockerService | boolean;
/**
@@ -77,7 +77,7 @@ declare module angular.locker {
*
* @param {Mixed} key The key to add
* @param {Mixed} putFunction The default to pass to function if doesn't already exist
* @param {Mixed} value The value to add
* @param {Mixed} value The value to add
*/
put(key: string, putFunction: ILockerServicePutFunction, value: any): ILockerService | boolean;
/**
@@ -167,4 +167,4 @@ declare module angular.locker {
*/
defaults(lockerSettings: ILockerSettings): void;
}
}
}

View File

@@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
declare module angular.material {
declare namespace angular.material {
interface MDBottomSheetOptions {
templateUrl?: string;

View File

@@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
declare module angular.material {
declare namespace angular.material {
interface MDBottomSheetOptions {
templateUrl?: string;

View File

@@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
declare module angular.material {
declare namespace angular.material {
interface IBottomSheetOptions {
templateUrl?: string;

View File

@@ -6,36 +6,36 @@
/// <reference path="../meteor/meteor.d.ts" />
/// <reference path="../angularjs/angular.d.ts" />
declare module angular.meteor {
declare namespace angular.meteor {
interface IRootScopeService extends angular.IRootScopeService {
/**
* The current logged in user and it's data. it is null if the user is not logged in. A reactive data source.
*/
currentUser: Meteor.User;
/**
* True if a login method (such as Meteor.loginWithPassword, Meteor.loginWithFacebook, or Accounts.createUser) is currently in progress.
* True if a login method (such as Meteor.loginWithPassword, Meteor.loginWithFacebook, or Accounts.createUser) is currently in progress.
* A reactive data source. Can be use to display animation while user is logging in.
*/
loggingIn: boolean;
}
interface IScope extends angular.IScope, IRootScopeService {
/**
* A method to get a $scope variable and watch it reactivly
*
*
* @param scopeVariableName - The name of the scope's variable to bind to
* @param [objectEquality=false] - Watch the object equality using angular.equals instead of comparing for reference equality, deeper watch but also slower
*/
getReactively(scopeVariableName: string, objectEquality?: boolean): ReactiveResult;
/**
* A service which is a wrapper for Meteor.subscribe. It subscribes to a Meteor.publish method in the client and returns a AngularJS promise when ready.
* Calling $scope.subscribe will automatically stop the subscription when the scope is destroyed.
*
*
* @param name - Name of the subscription. Matches the name of the server's publish() call.
* @param publisherArguments - Optional arguments passed to publisher function on server.
*
*
* @return The promise solved successfully when subscription is ready. The success promise holds the subscription handle.
*/
subscribe(name: string, ...publisherArguments: any[]): angular.IPromise<Meteor.SubscriptionHandle>;
@@ -57,206 +57,206 @@ declare module angular.meteor {
* The autorun method is part of the ReactiveContext, and available on every context and $scope.
* The argument of this method is a callback, which will be called each time Autorun will be used.
* The Autorun will stop automatically when when it's context ($scope) is destroyed.
*
*
* @param runFunc - The function to run. It receives one argument: the Computation object that will be returned.
*/
autorun(runFunc : () => void) : Tracker.Computation;
}
/**
* $meteor in angularjs
*/
interface IMeteorService {
/**
* A service that wraps the Meteor collections to enable reactivity within AngularJS.
*
* @param collection - A Meteor Collection or a reactive function to bind to.
*
* @param collection - A Meteor Collection or a reactive function to bind to.
* - Reactive function can be used with $scope.getReactively to add $scope variable as reactive variable to the cursor.
* @param [autoClientSave=true] - By default, changes in the Angular collection will automatically update the Meteor collection.
* @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>;
/**
* A service that wraps the Meteor collections to enable reactivity within AngularJS.
*
* @param collection - A Meteor Collection or a reactive function to bind to.
*
* @param collection - A Meteor Collection or a reactive function to bind to.
* - Reactive function can be used with $scope.getReactively to add $scope variable as reactive variable to the cursor.
* @param [autoClientSave=true] - By default, changes in the Angular collection will automatically update the Meteor collection.
* @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.
* @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>;
/**
* A service that wraps a Meteor object to enable reactivity within AngularJS.
* A service that wraps a Meteor object to enable reactivity within AngularJS.
* Finds the first document that matches the selector, as ordered by sort and skip options. Wraps collection.findOne
*
*
* @param collection - A Meteor Collection to bind to.
* @param selector - A query describing the documents to find or just the ID of the document.
* - $meteor.object will find the first document that matches the selector,
* @param selector - A query describing the documents to find or just the ID of the document.
* - $meteor.object will find the first document that matches the selector,
* - as ordered by sort and skip options, exactly like Meteor's collection.findOne
* @param [autoClientSave=true] - By default, changes in the Angular object will automatically update the Meteor object.
* @param [autoClientSave=true] - By default, changes in the Angular object will automatically update the Meteor object.
* - However if set to false, changes in the client won't be automatically propagated back to the Meteor object.
*/
object<T>(collection: Mongo.Collection<T>, selector: Mongo.Selector|Mongo.ObjectID|string, autoClientSave?: boolean): AngularMeteorObject<T>;
/**
* A service which is a wrapper for Meteor.subscribe. It subscribes to a Meteor.publish method in the client and returns a AngularJS promise when ready.
*
*
* @param name - Name of the subscription. Matches the name of the server's publish() call.
* @param publisherArguments - Optional arguments passed to publisher function on server.
*
*
* @return The promise solved successfully when subscription is ready. The success promise holds the subscription handle.
*/
subscribe(name: string, ...publisherArguments: any[]): angular.IPromise<Meteor.SubscriptionHandle>;
/**
* A service service which wraps up Meteor.methods with AngularJS promises.
*
*
* @param name - Name of method to invoke
* @param methodArguments - Optional method arguments
*
*
* @return The promise solves successfully with the return value of the method or return reject with the error from the method.
*/
call<T>(name: string, ...methodArguments: any[]): angular.IPromise<T>;
// User Authentication BEGIN ->
/**
* Returns a promise fulfilled with the currentUser when the user subscription is ready.
* Returns a promise fulfilled with the currentUser when the user subscription is ready.
* This is useful when you want to grab the current user before the route is rendered.
* If there is no logged in user, it will return null.
* If there is no logged in user, it will return null.
* See the “Authentication with Routers” section of our tutorial for more information and a full example.
*/
waitForUser(): angular.IPromise<Meteor.User>;
/**
* Resolves the promise successfully if a user is authenticated and rejects otherwise.
* This is useful in cases where you want to require a route to have an authenticated user.
* You can catch the rejected promise and redirect the unauthenticated user to a different page, such as the login page.
* Resolves the promise successfully if a user is authenticated and rejects otherwise.
* This is useful in cases where you want to require a route to have an authenticated user.
* You can catch the rejected promise and redirect the unauthenticated user to a different page, such as the login page.
* See the “Authentication with Routers” section of our tutorial for more information and a full example.
*/
requireUser(): angular.IPromise<Meteor.User>;
/**
* Resolves the promise successfully if a user is authenticated and the validatorFn returns true; rejects otherwise.
* This is useful in cases where you want to require a route to have an authenticated user and do extra validation like the user's role or group.
* You can catch the rejected promise and redirect the unauthenticated user to a different page, such as the login page.
* Resolves the promise successfully if a user is authenticated and the validatorFn returns true; rejects otherwise.
* This is useful in cases where you want to require a route to have an authenticated user and do extra validation like the user's role or group.
* You can catch the rejected promise and redirect the unauthenticated user to a different page, such as the login page.
* See the “Authentication with Routers” section of our tutorial for more information and a full example.
*
* The mandatory validator function will be called with the authenticated user as the single param and it's expected to return true in order to resolve.
* If it returns a string, the promise will be rejected using said string as the reason.
*
* The mandatory validator function will be called with the authenticated user as the single param and it's expected to return true in order to resolve.
* If it returns a string, the promise will be rejected using said string as the reason.
* Any other return (false, null, undefined) will be rejected with the default "FORBIDDEN" reason.
*/
requireValidUser(validatorFn: (user: Meteor.User) => boolean|string): angular.IPromise<Meteor.User>;
/**
* Log the user in with a password.
*
*
* @param user - Either a string interpreted as a username or an email; or an object with a single key: email, username or id.
* @param password - The user's password.
*/
loginWithPassword(user: string|{email: string}|{username: string}|{id: string}, password: string): angular.IPromise<void>;
/**
* Create a new user. More information: http://docs.meteor.com/#/full/accounts_createuser
*
*
* @param options.username - A unique name for this user. Either this, or email is required.
* @param options.email - The user's email address. Either this, or username is required.
* @param options.password - The user's password. This is not sent in plain text over the wire.
* @param options.profile - The user's profile, typically including the name field.
*/
createUser(options: {username?: string; email?: string; password: string; profile?: Object}): angular.IPromise<void>;
/**
* Change the current user's password. Must be logged in.
*
*
* @param oldPassword - The user's current password. This is not sent in plain text over the wire.
* @param newPassword - A new password for the user. This is not sent in plain text over the wire.
*/
changePassword(oldPassword: string, newPassword: string): angular.IPromise<void>;
/**
* Request a forgot password email.
*
*
* @param options.email - The email address to send a password reset link.
*/
forgotPassword(options: {email: string}): angular.IPromise<void>;
/**
* Reset the password for a user using a token received in email. Logs the user in afterwards.
*
*
* @param token - The token retrieved from the reset password URL.
* @param newPassword - A new password for the user. This is not sent in plain text over the wire.
*/
resetPassword(token: string, newPassword: string): angular.IPromise<void>;
/**
* Marks the user's email address as verified. Logs the user in afterwards.
*
*
* @param token - The token retrieved from the reset password URL.
*/
verifyEmail(token: string): angular.IPromise<void>;
loginWithFacebook: ILoginWithExternalService;
loginWithTwitter: ILoginWithExternalService;
loginWithGoogle: ILoginWithExternalService;
loginWithGithub: ILoginWithExternalService;
loginWithMeetup: ILoginWithExternalService;
loginWithWeibo: ILoginWithExternalService;
/**
* Log the user out.
*
*
* @return Resolves with no arguments on success, or reject with a Error argument on failure.
*/
logout(): angular.IPromise<void>;
/**
* Log out other clients logged in as the current user, but does not log out the client that calls this function.
* For example, when called in a user's browser, connections in that browser remain logged in,
* Log out other clients logged in as the current user, but does not log out the client that calls this function.
* For example, when called in a user's browser, connections in that browser remain logged in,
* but any other browsers or DDP clients logged in as that user will be logged out.
*
*
* @return Resolves with no arguments on success, or reject with a Error argument on failure.
*/
logoutOtherClients(): angular.IPromise<void>;
// <- User Authentication END
// $meteorUtils BEGIN ->
/**
* @param scope - The AngularJS scope you use the autorun on.
* @param fn - The function that will re-run every time a reactive variable changes inside it.
*/
autorun(scope: angular.IScope, fn: Function): void;
/**
* @param collectionName - The name of the collection you want to get back
*/
getCollectionByName<T>(collectionName: string): Mongo.Collection<T>;
// <- $meteorUtils END
// $meteorCamera BEGIN ->
/**
* A helper service for taking pictures across platforms.
* Must add mdg:camera package to use! (meteor add mdg:camera)
*
*
* @param [options] - options is an optional argument that is an Object with the following possible keys:
* @param options.width - An integer that specifies the minimum width of the returned photo.
* @param options.height - An integer that specifies the minimum height of the returned photo.
* @param options.quality - A number from 0 to 100 specifying the desired quality of JPEG encoding.
*
*
* @return The promise solved successfully when the picture is taken with the data as a parameter or rejected with an error as a parameter in case of error.
*/
getPicture(options?: {width?: number; height?: number; quality?: number}): angular.IPromise<any>;
// <- $meteorCamera END
/**
* A service that binds a scope variable to a Meteor Session variable.
*
*
* @param sessionKey - The name of the session variable
* @return An object with a single function bind - to bind to that variable.
*/
@@ -268,34 +268,34 @@ declare module angular.meteor {
bind: (scope: IScope, model: string) => void;
};
}
/**
* An object that connects a Meteor Object to an AngularJS scope variable.
*
* The object contains also all the properties from the generic type T,
*
* The object contains also all the properties from the generic type T,
* unfortunately TypeScript doesn't at the moment allow to extend a generic type (see https://github.com/Microsoft/TypeScript/issues/2225 for details and updates).
* For a workaround, you'll need to implement an interface which will merge AngularMeteorObject<T> together with T and cast it, like this:
*
*
* interface TodoAngularMeteorObject extends ITodo, AngularMeteorObject<ITodo> { }
* var todo = <TodoAngularMeteorObject>$meteor.object(TodoCollection, 'TodoID');
*/
interface AngularMeteorObject<T> {
/**
* @param [doc] - The doc to save to the Meteor Object. If nothing is passed, the method saves everything in the AngularMeteorObject as is.
* @param [doc] - The doc to save to the Meteor Object. If nothing is passed, the method saves everything in the AngularMeteorObject as is.
* - Unchanged properties will be overridden with their existing values, which may trigger hooks.
* - If doc is passed, the method only updates the Meteor Object with the properties passed, and no other changes will be saved.
*
*
* @return Returns a promise with an error in case for an error or a number of successful docs changed in case of success.
*/
save(doc?: T): angular.IPromise<number>;
/**
* Reset the current value of the object to the one in the server.
*/
reset(): void;
/**
* Returns a copy of the AngularMeteorObject with all the AngularMeteor-specific internal properties removed.
* Returns a copy of the AngularMeteorObject with all the AngularMeteor-specific internal properties removed.
* The returned object is then safe to use as a parameter for method calls, or anywhere else where the data needs to be converted to JSON.
*/
getRawObject(): T;
@@ -303,17 +303,17 @@ declare module angular.meteor {
/**
* A shorten (Syntactic sugar) function for the $meteor.subscribe function.
* Takes only one parameter and not returns a promise like $meteor.subscribe does.
*
*
* @param subscriptionName - The subscription name to subscribe to. Exactly like the first parameter in $meteor.subscribe service.
*/
*/
subscribe(subscriptionName:string): AngularMeteorObject<T>;
}
/**
* An object that connects a Meteor Collection to an AngularJS scope variable
*/
interface AngularMeteorCollection<T> extends AngularMeteorCollection2<T, T> { }
/**
* An object that connects a Meteor Collection to an AngularJS scope variable,
* but can use a differen type for updates.
@@ -321,32 +321,32 @@ declare module angular.meteor {
interface AngularMeteorCollection2<T, U> extends Array<T> {
/**
* @param [docs] - The docs to save to the Meteor Collection.
* - If the docs parameter is empty, the method saves everything in the AngularMeteorCollection as is.
* - If an object is passed, the method pushes that object into the AngularMeteorCollection.
* - If the docs parameter is empty, the method saves everything in the AngularMeteorCollection as is.
* - If an object is passed, the method pushes that object into the AngularMeteorCollection.
* - If an array is passed, the method pushes all objects in the array into the AngularMeteorCollection.
*/
save(docs?: U|U[]): void;
/**
/**
* @param [keys] - The keys of the object to remove from the Meteor Collection.
* - If nothing is passed, the method removes all the documents from the AngularMeteorCollection.
* - If an object is passed, the method removes the object with that key from the AngularMeteorCollection.
* - If nothing is passed, the method removes all the documents from the AngularMeteorCollection.
* - If an object is passed, the method removes the object with that key from the AngularMeteorCollection.
* - If an array is passed, the method removes all objects that matches the keys in the array from the AngularMeteorCollection.
*/
remove(keys?: U|string|number|string[]|number[]): void;
/**
* A shorten (Syntactic sugar) function for the $meteor.subscribe function.
* Takes only one parameter and not returns a promise like $meteor.subscribe does.
*
*
* @param subscriptionName - The subscription name to subscribe to. Exactly like the first parameter in $meteor.subscribe service.
*/
subscribe(subscriptionName:string): AngularMeteorCollection2<T, U>;
}
interface ILoginWithExternalService {
(options: Meteor.LoginWithExternalServiceOptions): angular.IPromise<void>;
}
interface ReactiveResult { }
}

View File

@@ -6,7 +6,7 @@
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../jquery/jquery.d.ts" />
declare module angularModal {
declare namespace angularModal {
type AngularModalControllerDefinition = (new (...args: any[]) => any) | Function | string; // Possible arguments to IControllerService

View File

@@ -5,7 +5,7 @@
/// <reference path="../angularjs/angular.d.ts" />
declare module angular.notifications {
declare namespace angular.notifications {
interface IAnimation {
duration: number;

View File

@@ -5,7 +5,7 @@
///<reference path="../angularjs/angular.d.ts" />
declare module angular.cgNotify {
declare namespace angular.cgNotify {
interface INotifyService {
@@ -51,7 +51,7 @@ declare module angular.cgNotify {
* Optional. Currently center and right are the only acceptable values.
*/
position? : string;
/**
* Optional. The duration (in milliseconds) of the message. A duration of 0 will prevent the message from closing automatically.
*/
@@ -99,7 +99,7 @@ declare module angular.cgNotify {
* The default element that contains each notification. Defaults to document.body.
*/
container? : any;
/**
* The maximum number of total notifications that can be visible at one time. Older notifications will be closed when the maximum is reached.
*/

View File

@@ -5,8 +5,8 @@
/// <reference path="../angularjs/angular.d.ts" />
declare module OData {
declare namespace OData {
/**
* Currently supported options for the $resource factory options argument.
*/

View File

@@ -5,7 +5,7 @@
/// <reference path="../selenium-webdriver/selenium-webdriver.d.ts" />
declare module protractor {
declare namespace protractor {
//region Wrapped webdriver Items
class ActionSequence extends webdriver.ActionSequence {}
@@ -24,12 +24,12 @@ declare module protractor {
var CommandName: webdriver.ICommandName;
var Key: webdriver.IKey;
module error {
namespace error {
class Error extends webdriver.error.Error {}
var ErrorCode: webdriver.error.IErrorCode;
}
module logging {
namespace logging {
class Preferences extends webdriver.logging.Preferences { }
class Entry extends webdriver.logging.Entry { }
@@ -40,7 +40,7 @@ declare module protractor {
function getLevel(nameOrValue: number): webdriver.logging.ILevel;
}
module promise {
namespace promise {
class Thenable<T> extends webdriver.promise.Thenable<T> { }
class Promise<T> extends webdriver.promise.Promise<T> { }
class Deferred<T> extends webdriver.promise.Deferred<T> { }
@@ -283,7 +283,7 @@ declare module protractor {
function setDefaultFlow(flow: webdriver.promise.ControlFlow): void;
}
module stacktrace {
namespace stacktrace {
class Frame extends webdriver.stacktrace.Frame { }
class Snapshot extends webdriver.stacktrace.Snapshot { }
@@ -311,7 +311,7 @@ declare module protractor {
var BROWSER_SUPPORTED: boolean;
}
module until {
namespace until {
class Condition<T> extends webdriver.until.Condition<T> { }
/**
@@ -501,7 +501,7 @@ declare module protractor {
function titleMatches(regex: RegExp): webdriver.until.Condition<boolean>;
}
module ExpectedConditions {
namespace ExpectedConditions {
/**
* Negates the result of a promise.
*

View File

@@ -5,13 +5,13 @@
/// <reference path="../jquery/jquery.d.ts" />
declare module ng {
declare namespace ng {
export interface IAngularStatic {
scenario: any;
}
}
declare module angularScenario {
declare namespace angularScenario {
export interface RunFunction {
(functionToRun: any): any;

View File

@@ -1,6 +1,6 @@
/// <reference path="angular-scroll.d.ts" />
module TestApp {
namespace TestApp {
class TestController {
@@ -61,4 +61,4 @@ module TestApp {
angular.module('testApp', ['duScroll'])
.controller('testController', TestController);
}
}

View File

@@ -6,7 +6,7 @@
/// <reference path="../angularjs/angular.d.ts" />
declare module duScroll {
declare namespace duScroll {
/**
* Extends the angular.element object returned by the $document sercive with a few jQuery like functions.
@@ -41,4 +41,4 @@ declare module duScroll {
duScrollTop(): number;
duScrollLeft(): number;
}
}
}

View File

@@ -5,12 +5,12 @@ angular
.module('app', ['SignalR'])
.factory('Employees', ngSignalrTest.EmployeesFactory);
module ngSignalrTest {
namespace ngSignalrTest {
export class EmployeesFactory {
static $inject = ['$rootScope', 'Hub', '$timeout'];
private hub: ngSignalr.Hub;
public all: Array<Employee>;
constructor($rootScope: ng.IRootScopeService, Hub: ngSignalr.HubFactory, $timeout: ng.ITimeoutService) {
// declaring the hub connection
this.hub = new Hub('employee', {
@@ -27,45 +27,45 @@ module ngSignalrTest {
$rootScope.$apply();
}
},
// server-side methods
methods: ['lock', 'unlock'],
// query params sent on initial connection
queryParams:{
'token': 'exampletoken'
},
// handle connection error
errorHandler: (message: string) => {
console.error(message);
},
stateChanged: (state: SignalR.StateChanged) => {
// your code here
}
});
}
private find(id: number) {
for (var i = 0; i < this.all.length; i++) {
if (this.all[i].Id === id) return this.all[i];
}
return null;
}
public edit = (employee: Employee) => {
employee.Edit = true;
this.hub.invoke('lock', employee.Id);
};
public done = (employee: Employee) => {
employee.Edit = false;
this.hub.invoke('unlock', employee.Id);
}
}
interface Employee {
Id: number;
Name: string;

View File

@@ -5,7 +5,7 @@
/// <reference path='../signalr/signalr.d.ts' />
declare module ngSignalr {
declare namespace ngSignalr {
interface HubFactory {
/**
* Creates a new Hub connection
@@ -56,7 +56,7 @@ declare module ngSignalr {
logging?: boolean;
/**
* Use a shared global connection or create a new one just for this hub, defaults to true
* Use a shared global connection or create a new one just for this hub, defaults to true
*/
useSharedConnection?: boolean;

View File

@@ -2,9 +2,9 @@
var myApp = angular.module('testModule');
module AngularSpinnerTest {
namespace AngularSpinnerTest {
var app = angular.module("angularSpinnerTest", ["angular-spinner"]);
app.config(['usSpinnerService', function(usSpinnerService: ISpinnerService) {
usSpinnerService.spin('key1');
usSpinnerService.stop('key2');

View File

@@ -3,7 +3,7 @@
// Definitions by: Matthew DeKrey <https://github.com/mdekrey>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module angular.a0.storage {
declare namespace angular.a0.storage {
interface IStoreService extends INamespacedStoreService {
/**
* Returns a namespaced store
@@ -15,34 +15,34 @@ declare module angular.a0.storage {
*/
getNamespacedStore(namespace: string, storage?: string, delimiter?: string): INamespacedStoreService;
}
interface INamespacedStoreService {
/**
* Sets a new value to the storage with the key name. It can be any object.
*
*
* @param {String} name - The key name for the location of the value
* @param value - The value to store
*/
set(name: string, value: any): void;
/**
* Returns the saved value with they key name.
*
* Returns the saved value with they key name.
*
* @param {String} name - The key name for the location of the value
* @returns The saved value; if you saved an object, you get an object
*/
get(name: string): any;
/**
* Deletes the saved value with the key name
*
*
* @param {String} name - The key name for the location of the value to remove
*/
remove(name: string): void;
remove(name: string): void;
}
interface IStoreProvider {
/**
* Sets the storage.
*
@@ -50,4 +50,4 @@ declare module angular.a0.storage {
*/
setStore(storage: string): void;
}
}
}

View File

@@ -1,7 +1,7 @@
/// <reference path="../angularjs/angular.d.ts"/>
/// <reference path="./angular-strap.d.ts"/>
module angularStrapTests {
namespace angularStrapTests {
import ngStrap = mgcrea.ngStrap;
@@ -9,7 +9,7 @@ module angularStrapTests {
// Modal
///////////////////////////////////////////////////////////////////////////
module modalTests {
namespace modalTests {
interface IDemoCtrlScope extends ngStrap.modal.IModalScope {
showModal: () => void;
@@ -54,7 +54,7 @@ module angularStrapTests {
// Aside
///////////////////////////////////////////////////////////////////////////
module asideTests {
namespace asideTests {
angular.module('demoApp')
.config($asideConfig)
@@ -85,7 +85,7 @@ module angularStrapTests {
var defaults: ngStrap.aside.IAsideOptions = {};
defaults.animation = 'am-fadeAndSlideLeft';
defaults.placement = 'left';
angular.extend($asideProvider.defaults, defaults);
}
}
@@ -94,8 +94,8 @@ module angularStrapTests {
///////////////////////////////////////////////////////////////////////////
// Alert
///////////////////////////////////////////////////////////////////////////
module alertTests {
namespace alertTests {
angular.module('demoApp')
.config($alertConfig)
@@ -127,8 +127,8 @@ module angularStrapTests {
///////////////////////////////////////////////////////////////////////////
// Tooltip
///////////////////////////////////////////////////////////////////////////
module tooltipTests {
namespace tooltipTests {
angular.module('demoApp')
.config($tooltipConfig)
@@ -139,7 +139,7 @@ module angularStrapTests {
drct.restrict = 'EA';
drct.link = link;
return drct;
function link(scope: ng.IScope, elem: ng.IAugmentedJQuery, attrs: ng.IAttributes): void {
var options: ngStrap.tooltip.ITooltipOptions = {};
options.title = 'My Title';
@@ -147,11 +147,11 @@ module angularStrapTests {
}
}
function $tooltipConfig($tooltipProvider: ngStrap.tooltip.ITooltipProvider): void {
function $tooltipConfig($tooltipProvider: ngStrap.tooltip.ITooltipProvider): void {
var defaults: ngStrap.tooltip.ITooltipOptions = {};
defaults.animation = 'am-flip-x';
defaults.trigger = 'hover';
angular.extend($tooltipProvider.defaults, defaults);
};
}
@@ -160,8 +160,8 @@ module angularStrapTests {
///////////////////////////////////////////////////////////////////////////
// Popover
///////////////////////////////////////////////////////////////////////////
module popoverTests {
namespace popoverTests {
angular.module('demoApp')
.config($popoverConfig)
@@ -172,11 +172,11 @@ module angularStrapTests {
drct.restrict = 'EA';
drct.link = link;
return drct;
function link(scope: ng.IScope, elem: ng.IAugmentedJQuery, attrs: ng.IAttributes): void {
function link(scope: ng.IScope, elem: ng.IAugmentedJQuery, attrs: ng.IAttributes): void {
var options: ngStrap.tooltip.ITooltipOptions = {};
options.title = 'My Title';
$popover(elem, options);
}
}
@@ -189,190 +189,190 @@ module angularStrapTests {
angular.extend($popoverProvider.defaults, defaults);
};
}
///////////////////////////////////////////////////////////////////////////
// Typeahead
///////////////////////////////////////////////////////////////////////////
module typeaheadTests {
namespace typeaheadTests {
angular.module('myApp')
.config($typeaheadConfig);
function $typeaheadConfig($typeaheadProvider: ngStrap.typeahead.ITypeaheadProvider) {
function $typeaheadConfig($typeaheadProvider: ngStrap.typeahead.ITypeaheadProvider) {
var defaults: ngStrap.typeahead.ITypeaheadOptions = {}
defaults.animation = 'am-flip-x';
defaults.minLength = 2;
defaults.limit = 8;
angular.extend($typeaheadProvider.defaults, defaults);
}
}
///////////////////////////////////////////////////////////////////////////
// Datepicker
///////////////////////////////////////////////////////////////////////////
module datepickerTests {
namespace datepickerTests {
angular.module('myApp')
.config($datepickerConfig);
function $datepickerConfig($datepickerProvider: ngStrap.datepicker.IDatepickerProvider): void {
var defaults: ngStrap.datepicker.IDatepickerOptions = {};
defaults.dateFormat = 'dd/MM/yyyy';
defaults.startWeek = 1;
angular.extend($datepickerProvider.defaults, defaults);
};
}
///////////////////////////////////////////////////////////////////////////
// Timepicker
///////////////////////////////////////////////////////////////////////////
module timepickerTests {
namespace timepickerTests {
angular.module('myApp')
.config($timepickerConfig);
function $timepickerConfig($timepickerProvider: ngStrap.timepicker.ITimepickerProvider): void {
var defaults: ngStrap.timepicker.ITimepickerOptions = {};
defaults.timeFormat = 'HH:mm';
defaults.length = 7;
angular.extend($timepickerProvider.defaults, defaults);
};
}
///////////////////////////////////////////////////////////////////////////
// Select
///////////////////////////////////////////////////////////////////////////
module selectTests {
namespace selectTests {
angular.module('myApp')
.config($selectConfig);
function $selectConfig($selectProvider: ngStrap.select.ISelectProvider): void {
var defaults: ngStrap.select.ISelectOptions = {};
defaults.animation = 'am-flip-x';
defaults.sort = false;
angular.extend($selectProvider.defaults, defaults);
}
}
///////////////////////////////////////////////////////////////////////////
// Tabs
///////////////////////////////////////////////////////////////////////////
module tabTests {
namespace tabTests {
angular.module('myApp')
.config($tabConfig);
function $tabConfig($tabProvider: ngStrap.tab.ITabProvider) {
var defaults: ngStrap.tab.ITabOptions = {};
defaults.animation = 'am-flip-x';
angular.extend($tabProvider.defaults, defaults);
}
}
///////////////////////////////////////////////////////////////////////////
// Collapse
///////////////////////////////////////////////////////////////////////////
module collapseTests {
namespace collapseTests {
angular.module('myApp')
.config($collapseConfig);
function $collapseConfig($collapseProvider: ngStrap.collapse.ICollapseProvider):void {
var defaults: ngStrap.collapse.ICollapseOptions = {};
defaults.animation = 'am-flip-x';
angular.extend($collapseProvider.defaults, defaults);
}
}
///////////////////////////////////////////////////////////////////////////
// Dropdown
///////////////////////////////////////////////////////////////////////////
module dropdownTests {
namespace dropdownTests {
angular.module('myApp')
.config($dropdownConfig);
function $dropdownConfig($dropdownProvider: ngStrap.dropdown.IDropdownProvider):void {
var defaults: ngStrap.dropdown.IDropdownOptions = {};
defaults.animation = 'am-flip-x';
defaults.trigger = 'hover';
angular.extend($dropdownProvider.defaults, defaults);
}
}
///////////////////////////////////////////////////////////////////////////
// Navbar
///////////////////////////////////////////////////////////////////////////
module navbarTests {
namespace navbarTests {
angular.module('myApp')
.config($navbarConfig);
function $navbarConfig($navbarProvider: ngStrap.navbar.INavbarProvider):void {
var defaults: ngStrap.navbar.INavbarOptions = {};
defaults.activeClass = 'in';
angular.extend($navbarProvider.defaults, defaults);
}
}
///////////////////////////////////////////////////////////////////////////
// Scrollspy
///////////////////////////////////////////////////////////////////////////
module scrollspyTests {
namespace scrollspyTests {
angular.module('myApp')
.config($scrollspyConfig);
function $scrollspyConfig($scrollspyProvider: ngStrap.scrollspy.IScrollspyProvider):void {
var defaults: ngStrap.scrollspy.IScrollspyOptions = {};
defaults.offset = 0;
defaults.target = 'my-selector';
angular.extend($scrollspyProvider.defaults, defaults);
}
}
///////////////////////////////////////////////////////////////////////////
// Affix
///////////////////////////////////////////////////////////////////////////
module affixTests {
namespace affixTests {
angular.module('myApp')
.config($affixConfig);
function $affixConfig($affixProvider: ngStrap.affix.IAffixProvider):void {
var defaults: ngStrap.affix.IAffixOptions = {};
defaults.offsetTop = 100;
angular.extend($affixProvider.defaults, defaults);
}
}
}
}

View File

@@ -6,30 +6,30 @@
/// <reference path="../angularjs/angular.d.ts" />
declare module mgcrea.ngStrap {
declare namespace mgcrea.ngStrap {
///////////////////////////////////////////////////////////////////////////
// Modal
// see http://mgcrea.github.io/angular-strap/#/modals
///////////////////////////////////////////////////////////////////////////
module modal {
namespace modal {
interface IModalService {
(config?: IModalOptions): IModal;
}
interface IModalProvider {
defaults: IModalOptions;
}
interface IModal {
$promise: ng.IPromise<void>;
show: () => void;
hide: () => void;
toggle: () => void;
}
interface IModalOptions {
animation?: string;
backdropAnimation?: string;
@@ -47,7 +47,7 @@ declare module mgcrea.ngStrap {
id?: string;
scope?: ng.IScope;
}
interface IModalScope extends ng.IScope {
$show: () => void;
$hide: () => void;
@@ -61,23 +61,23 @@ declare module mgcrea.ngStrap {
// see http://mgcrea.github.io/angular-strap/#/asides
///////////////////////////////////////////////////////////////////////////
module aside {
namespace aside {
interface IAsideService {
(config?: IAsideOptions): IAside;
}
interface IAsideProvider {
defaults: IAsideOptions;
}
interface IAside {
$promise: ng.IPromise<void>;
show: () => void;
hide: () => void;
toggle: () => void;
}
interface IAsideOptions {
animation?: string;
placement?: string;
@@ -92,7 +92,7 @@ declare module mgcrea.ngStrap {
contentTemplate?: string;
scope?: ng.IScope;
}
interface IAsideScope extends ng.IScope {
$show: () => void;
$hide: () => void;
@@ -107,23 +107,23 @@ declare module mgcrea.ngStrap {
// see http://mgcrea.github.io/angular-strap/#/alerts
///////////////////////////////////////////////////////////////////////////
module alert {
namespace alert {
interface IAlertService {
(config?: IAlertOptions): IAlert;
}
interface IAlertProvider {
defaults: IAlertOptions;
}
interface IAlert {
$promise: ng.IPromise<void>;
show: () => void;
hide: () => void;
toggle: () => void;
}
interface IAlertOptions {
animation?: string;
placement?: string;
@@ -137,37 +137,37 @@ declare module mgcrea.ngStrap {
duration?: number | boolean;
dismissable?: boolean;
}
interface IAlertScope extends ng.IScope {
$show: () => void;
$hide: () => void;
$toggle: () => void;
}
}
///////////////////////////////////////////////////////////////////////////
// Tooltip
// see http://mgcrea.github.io/angular-strap/#/tooltips
///////////////////////////////////////////////////////////////////////////
module tooltip {
namespace tooltip {
interface ITooltipService {
(element: ng.IAugmentedJQuery, config?: ITooltipOptions): ITooltip;
}
interface ITooltipProvider {
defaults: ITooltipOptions;
}
interface ITooltip {
$promise: ng.IPromise<void>;
show: () => void;
hide: () => void;
toggle: () => void;
}
interface ITooltipOptions {
animation?: string;
placement?: string;
@@ -183,13 +183,13 @@ declare module mgcrea.ngStrap {
id?: string;
viewport?: string | { selector: string; padding: string | number };
}
interface ITooltipScope extends ng.IScope {
$show: () => void;
$hide: () => void;
$toggle: () => void;
$setEnabled: (isEnabled: boolean) => void;
}
}
}
@@ -198,23 +198,23 @@ declare module mgcrea.ngStrap {
// see http://mgcrea.github.io/angular-strap/#/popovers
///////////////////////////////////////////////////////////////////////////
module popover {
namespace popover {
interface IPopoverService {
(element: ng.IAugmentedJQuery, config?: IPopoverOptions): IPopover;
}
interface IPopoverProvider {
defaults: IPopoverOptions;
}
interface IPopover {
$promise: ng.IPromise<void>;
show: () => void;
hide: () => void;
toggle: () => void;
}
interface IPopoverOptions {
animation?: string;
placement?: string;
@@ -231,7 +231,7 @@ declare module mgcrea.ngStrap {
id?: string;
viewport?: string | { selector: string; padding: string | number };
}
interface IPopoverScope extends ng.IScope {
$show: () => void;
$hide: () => void;
@@ -246,23 +246,23 @@ declare module mgcrea.ngStrap {
// see http://mgcrea.github.io/angular-strap/#/typeaheads
///////////////////////////////////////////////////////////////////////////
module typeahead {
namespace typeahead {
interface ITypeaheadService {
(element: ng.IAugmentedJQuery, controller: any, config?: ITypeaheadOptions): ITypeahead;
}
interface ITypeaheadProvider {
defaults: ITypeaheadOptions;
}
interface ITypeahead {
$promise: ng.IPromise<void>;
show: () => void;
hide: () => void;
toggle: () => void;
}
interface ITypeaheadOptions {
animation?: string;
placement?: string;
@@ -280,38 +280,38 @@ declare module mgcrea.ngStrap {
}
}
///////////////////////////////////////////////////////////////////////////
// Datepicker
// see http://mgcrea.github.io/angular-strap/#/datepickers
///////////////////////////////////////////////////////////////////////////
module datepicker {
namespace datepicker {
interface IDatepickerService {
(element: ng.IAugmentedJQuery, controller: any, config?: IDatepickerOptions): IDatepicker;
}
interface IDatepickerProvider {
defaults: IDatepickerOptions;
}
interface IDatepicker {
update: (date: Date) => void;
updateDisabledDates: (dateRanges: IDatepickerDateRange[]) => void;
update: (date: Date) => void;
updateDisabledDates: (dateRanges: IDatepickerDateRange[]) => void;
select: (dateConstructorArg: string | number | number[], keep: boolean) => void;
setMode: (mode: any) => void;
setMode: (mode: any) => void;
int: () => void;
destroy: () => void;
show: () => void;
hide: () => void;
}
interface IDatepickerDateRange {
start: Date;
end: Date;
}
interface IDatepickerOptions {
animation?: string;
placement?: string;
@@ -339,26 +339,26 @@ declare module mgcrea.ngStrap {
}
}
///////////////////////////////////////////////////////////////////////////
// Timepicker
// see http://mgcrea.github.io/angular-strap/#/timepickers
///////////////////////////////////////////////////////////////////////////
module timepicker {
namespace timepicker {
interface ITimepickerService {
(element: ng.IAugmentedJQuery, controller: any, config?: ITimepickerOptions): ITimepicker;
}
interface ITimepickerProvider {
defaults: ITimepickerOptions;
}
interface ITimepicker {
}
interface ITimepickerOptions {
animation?: string;
placement?: string;
@@ -382,33 +382,33 @@ declare module mgcrea.ngStrap {
iconUp?: string;
iconDown?: string;
arrowBehaviour?: string;
}
}
}
///////////////////////////////////////////////////////////////////////////
// Button
// see http://mgcrea.github.io/angular-strap/#/buttons
///////////////////////////////////////////////////////////////////////////
// No definitions for this module
///////////////////////////////////////////////////////////////////////////
// Select
// see http://mgcrea.github.io/angular-strap/#/selects
///////////////////////////////////////////////////////////////////////////
module select {
namespace select {
interface ISelectService {
(element: ng.IAugmentedJQuery, controller: any, config: ISelectOptions): ISelect;
}
interface ISelectProvider {
defaults: ISelectOptions;
}
interface ISelect {
update: (matches: any) => void;
active: (index: number) => number;
@@ -416,7 +416,7 @@ declare module mgcrea.ngStrap {
show: () => void;
hide: () => void;
}
interface ISelectOptions {
animation?: string;
placement?: string;
@@ -437,23 +437,23 @@ declare module mgcrea.ngStrap {
id?: string;
}
}
///////////////////////////////////////////////////////////////////////////
// Tabs
// see http://mgcrea.github.io/angular-strap/#/tabs
///////////////////////////////////////////////////////////////////////////
module tab {
namespace tab {
interface ITabProvider {
defaults: ITabOptions;
}
interface ITabService {
defaults: ITabOptions;
controller: any;
}
interface ITabOptions {
animation?: string;
template?: string;
@@ -461,19 +461,19 @@ declare module mgcrea.ngStrap {
activeClass?: string;
}
}
///////////////////////////////////////////////////////////////////////////
// Collapses
// see http://mgcrea.github.io/angular-strap/#/collapses
///////////////////////////////////////////////////////////////////////////
module collapse {
namespace collapse {
interface ICollapseProvider {
defaults: ICollapseOptions;
}
interface ICollapseOptions {
animation?: string;
activeClass?: string;
@@ -482,29 +482,29 @@ declare module mgcrea.ngStrap {
allowMultiple?: boolean;
}
}
///////////////////////////////////////////////////////////////////////////
// Dropdowsn
// see http://mgcrea.github.io/angular-strap/#/dropdowns
///////////////////////////////////////////////////////////////////////////
module dropdown {
namespace dropdown {
interface IDropdownProvider {
defaults: IDropdownOptions;
}
interface IDropdownService {
(element: ng.IAugmentedJQuery, config: IDropdownOptions): IDropdown;
}
interface IDropdown {
show: () => void;
hide: () => void;
destroy: () => void;
}
interface IDropdownOptions {
animation?: string;
placement?: string;
@@ -515,81 +515,81 @@ declare module mgcrea.ngStrap {
template?: string;
}
}
///////////////////////////////////////////////////////////////////////////
// Navbar
// see http://mgcrea.github.io/angular-strap/#/navbars
///////////////////////////////////////////////////////////////////////////
module navbar {
namespace navbar {
interface INavbarProvider {
defaults: INavbarOptions;
}
interface INavbarOptions {
activeClass?: string;
routeAttr?: string;
}
interface INavbarService {
defaults: INavbarOptions;
}
}
///////////////////////////////////////////////////////////////////////////
// Scrollspy
// see http://mgcrea.github.io/angular-strap/#/scrollspy
///////////////////////////////////////////////////////////////////////////
module scrollspy {
namespace scrollspy {
interface IScrollspyProvider {
defaults: IScrollspyOptions;
}
interface IScrollspyService {
(element: ng.IAugmentedJQuery, options: IScrollspyOptions): IScrollspy;
}
interface IScrollspy {
checkOffsets: () => void;
trackElement: (target: any, source: any) => void;
untrackElement: (target: any, source: any) => void;
activate: (index: number) => void;
}
interface IScrollspyOptions {
target?: string;
offset?: number;
}
}
///////////////////////////////////////////////////////////////////////////
// Affix
// see http://mgcrea.github.io/angular-strap/#/affix
///////////////////////////////////////////////////////////////////////////
module affix {
namespace affix {
interface IAffixProvider {
defaults: IAffixOptions;
}
interface IAffixService {
(element: ng.IAugmentedJQuery, options: IAffixOptions): IAffix;
}
interface IAffix {
init: () => void;
destroy: () => void;
checkPositionWithEventLoop: () => void;
checkPosition: () => void;
}
interface IAffixOptions {
offsetTop?: number;
offsetBottom?: number;

View File

@@ -10,7 +10,7 @@ declare module "angular-toastr" {
export = _;
}
declare module angular.toastr {
declare namespace angular.toastr {
interface IToastBaseConfig {
allowHtml?: boolean;
closeButton?: boolean;
@@ -77,13 +77,13 @@ declare module angular.toastr {
interface IToastrService {
/**
* Return the number of active toasts in screen.
*/
*/
active(): number;
/**
* Remove toast from screen. If no toast is passed in, all toasts will be closed.
*
* @param {IToast} toast Optional toast object to delete
*/
*/
clear(toast?: IToast): void;
/**
* Create error toast notification message.
@@ -91,7 +91,7 @@ declare module angular.toastr {
* @param {String} message Message to show on toast
* @param {String} title Title to show on toast
* @param {IToastOptions} options Override default toast options
*/
*/
error(message: string, title?: string, options?: IToastOptions): IToast;
/**
* Create info toast notification message.
@@ -99,7 +99,7 @@ declare module angular.toastr {
* @param {String} message Message to show on toast
* @param {String} title Title to show on toast
* @param {IToastOptions} options Override default toast options
*/
*/
info(message: string, title?: string, options?: IToastOptions): IToast;
/**
* Create success toast notification message.
@@ -107,7 +107,7 @@ declare module angular.toastr {
* @param {String} message Message to show on toast
* @param {String} title Title to show on toast
* @param {IToastOptions} options Override default toast options
*/
*/
success(message: string, title?: string, options?: IToastOptions): IToast;
/**
* Create warning toast notification message.
@@ -115,7 +115,7 @@ declare module angular.toastr {
* @param {String} message Message to show on toast
* @param {String} title Title to show on toast
* @param {IToastOptions} options Override default toast options
*/
*/
warning(message: string, title?: string, options?: IToastOptions): IToast;
}
}
}

View File

@@ -5,7 +5,7 @@
/// <reference path="../angularjs/angular.d.ts" />
declare module toasty {
declare namespace toasty {
interface IToastyService {
/**

View File

@@ -11,7 +11,7 @@ declare module "angular-touchspin" {
export = _;
}
declare module angularTouchSpin {
declare namespace angularTouchSpin {
interface ITouchSpinOptions {
min?: number;
max?: number;
@@ -40,4 +40,4 @@ declare module angularTouchSpin {
interface ITouchSpinConfigProvider {
defaults(touchSpinOptions: ITouchSpinOptions): void;
}
}
}

View File

@@ -10,7 +10,7 @@ declare module "angular-translate" {
export = ngt;
}
declare module angular.translate {
declare namespace angular.translate {
interface ITranslationTable {
[key: string]: any;
@@ -110,7 +110,7 @@ declare module angular.translate {
}
}
declare module angular {
declare namespace angular {
interface IFilterService {
(name:'translate'): {
(translationId: string, interpolateParams?: any, interpolation?: string): string;

View File

@@ -16,7 +16,7 @@ declare module 'angular-ui-bootstrap' {
export = _;
}
declare module angular.ui.bootstrap {
declare namespace angular.ui.bootstrap {
interface IAccordionConfig {
/**

View File

@@ -208,7 +208,7 @@ class UrlLocatorTestService implements IUrlLocatorTestService {
myApp.service("urlLocatorTest", UrlLocatorTestService);
module UiViewScrollProviderTests {
namespace UiViewScrollProviderTests {
var app = angular.module("uiViewScrollProviderTests", ["ui.router"]);
app.config(['$uiViewScrollProvider', function($uiViewScrollProvider: ng.ui.IUiViewScrollProvider) {
@@ -227,7 +227,7 @@ interface ITestUserService {
handleLogin: () => ng.IPromise<{}>;
}
module UrlRouterProviderTests {
namespace UrlRouterProviderTests {
var app = angular.module("urlRouterProviderTests", ["ui.router"]);
app.config(($urlRouterProvider: ng.ui.IUrlRouterProvider) => {

View File

@@ -28,7 +28,7 @@ declare module 'angular-ui-router' {
export type IType = angular.ui.IType;
}
declare module angular.ui {
declare namespace angular.ui {
interface IState {
name?: string;
@@ -88,12 +88,12 @@ declare module angular.ui {
* Arbitrary data object, useful for custom configuration.
*/
data?: any;
/**
* Boolean (default true). If false will not re-trigger the same state just because a search/query parameter has changed. Useful for when you'd like to modify $location.search() without triggering a reload.
*/
reloadOnSearch?: boolean;
/**
* Boolean (default true). If false will reload state on everytransitions. Useful for when you'd like to restore all data to its initial state.
*/

View File

@@ -1,7 +1,7 @@
/// <reference path="angular-ui-scroll.d.ts" />
var myApp = angular.module('application', ['ui.scroll', 'ui.scroll.jqlite']);
module application {
namespace application {
interface IItem {
id: number;
content: string;

View File

@@ -5,7 +5,7 @@
/// <reference path="../angularjs/angular.d.ts" />
declare module angular.ui {
declare namespace angular.ui {
interface IScrollDatasource<T> {
/**
* The datasource object implements methods and properties to be used by the directive to access the data

View File

@@ -5,7 +5,7 @@
/// <reference path="../angularjs/angular.d.ts" />
declare module angular.ui {
declare namespace angular.ui {
interface UISortableOptions<T> extends SortableOptions<T> {
'ui-floating'?: string|boolean;

View File

@@ -5,7 +5,7 @@
/// <reference path='../angularjs/angular.d.ts' />
declare module AngularUITree {
declare namespace AngularUITree {
interface IEventSourceInfo {
cloneModel: any;
index: number;

View File

@@ -3,7 +3,7 @@
// Definitions by: Marko Jurisic <https://github.com/mjurisic>, Ronald Wildenberg <https://github.com/rwwilden>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module angular.mgoAngularWizard {
declare namespace angular.mgoAngularWizard {
interface WizardHandler {
wizard(name?: string): Wizard;
addWizard(name: string, wizard: Wizard): void;

View File

@@ -5,7 +5,7 @@
/// <reference path='../angularjs/angular.d.ts' />
declare module angular {
declare namespace angular {
interface IAngularStatic {
throttle:( fn:Function, throttle:number, options?:{leading?:boolean; trailing?:boolean;} ) => Function;
}

View File

@@ -5,7 +5,7 @@
/// <reference path="../angularjs/angular.d.ts"/>
declare module angular.localStorage {
declare namespace angular.localStorage {
interface ILocalStorageService {
set(key: string, value: any): any;
get(key: string): any;

View File

@@ -5,7 +5,7 @@
/// <reference path="../angularjs/angular.d.ts" />
declare module ngtoaster {
declare namespace ngtoaster {
interface IToasterService {
pop(params:IPopParams): void
/**

View File

@@ -13,7 +13,7 @@ declare module "angular-animate" {
/**
* ngAnimate module (angular-animate.js)
*/
declare module angular.animate {
declare namespace angular.animate {
interface IAnimateFactory {
(...args: any[]): IAnimateCallbackObject;
}

View File

@@ -5,7 +5,7 @@
/// <reference path="./angular.d.ts" />
declare module angular {
declare namespace angular {
/**
* `Instruction` is a tree of {@link ComponentInstruction}s with all the information needed
* to transition each component in the app to a given route, including all auxiliary routes.

View File

@@ -14,7 +14,7 @@ declare module "angular-cookies" {
/**
* ngCookies module (angular-cookies.js)
*/
declare module angular.cookies {
declare namespace angular.cookies {
/**
* Cookies options
@@ -22,13 +22,13 @@ declare module angular.cookies {
*/
interface ICookiesOptions {
/**
* The cookie will be available only for this path and its sub-paths.
* The cookie will be available only for this path and its sub-paths.
* By default, this would be the URL that appears in your base tag.
*/
path?: string;
/**
* The cookie will be available only for this domain and its sub-domains.
* For obvious security reasons the user agent will not accept the cookie if the
* For obvious security reasons the user agent will not accept the cookie if the
* current domain is not a sub domain or equals to the requested domain.
*/
domain?: string;

View File

@@ -23,7 +23,7 @@ declare module "angular-mocks/ngAnimateMock" {
///////////////////////////////////////////////////////////////////////////////
// ngMock module (angular-mocks.js)
///////////////////////////////////////////////////////////////////////////////
declare module angular {
declare namespace angular {
///////////////////////////////////////////////////////////////////////////
// AngularStatic
@@ -32,7 +32,7 @@ declare module angular {
interface IAngularStatic {
mock: IMockStatic;
}
// see https://docs.angularjs.org/api/ngMock/function/angular.mock.inject
interface IInjectStatic {
(...fns: Function[]): any;
@@ -104,27 +104,27 @@ declare module angular {
interface IHttpBackendService {
/**
* Flushes all pending requests using the trained responses.
* @param count Number of responses to flush (in the order they arrived). If undefined, all pending requests will be flushed.
* @param count Number of responses to flush (in the order they arrived). If undefined, all pending requests will be flushed.
*/
flush(count?: number): void;
/**
* Resets all request expectations, but preserves all backend definitions.
*/
resetExpectations(): void;
/**
* Verifies that all of the requests defined via the expect api were made. If any of the requests were not made, verifyNoOutstandingExpectation throws an exception.
*/
verifyNoOutstandingExpectation(): void;
/**
* Verifies that there are no outstanding requests that need to be flushed.
*/
verifyNoOutstandingRequest(): void;
/**
* Creates a new request expectation.
* Creates a new request expectation.
* Throws a preformatted error if expectation(s) don't match supplied string, regular expression, object, or if function returns false.
* Returns an object with respond method that controls how a matched request is handled.
* @param method HTTP method.
@@ -160,17 +160,17 @@ declare module angular {
* @param headers HTTP headers object to be compared with the HTTP headers in the request.
*/
expectHEAD(url: string | RegExp | ((url: string) => boolean), headers?: Object): mock.IRequestHandler;
/**
* Creates a new request expectation for JSONP requests.
* Throws a preformatted error if expectation(s) don't match supplied string, regular expression, or if function returns false.
* Returns an object with respond method that controls how a matched request is handled.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
*/
*/
expectJSONP(url: string | RegExp | ((url: string) => boolean)): mock.IRequestHandler;
/**
* Creates a new request expectation for PATCH requests.
* Creates a new request expectation for PATCH requests.
* Throws a preformatted error if expectation(s) don't match supplied string, regular expression, object, or if function returns false.
* Returns an object with respond method that controls how a matched request is handled.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
@@ -180,7 +180,7 @@ declare module angular {
expectPATCH(url: string | RegExp | ((url: string) => boolean), data?: string | RegExp | Object | ((data: string) => boolean), headers?: Object): mock.IRequestHandler;
/**
* Creates a new request expectation for POST requests.
* Creates a new request expectation for POST requests.
* Throws a preformatted error if expectation(s) don't match supplied string, regular expression, object, or if function returns false.
* Returns an object with respond method that controls how a matched request is handled.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
@@ -190,7 +190,7 @@ declare module angular {
expectPOST(url: string | RegExp | ((url: string) => boolean), data?: string | RegExp | Object | ((data: string) => boolean), headers?: Object): mock.IRequestHandler;
/**
* Creates a new request expectation for PUT requests.
* Creates a new request expectation for PUT requests.
* Throws a preformatted error if expectation(s) don't match supplied string, regular expression, object, or if function returns false.
* Returns an object with respond method that controls how a matched request is handled.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
@@ -200,7 +200,7 @@ declare module angular {
expectPUT(url: string | RegExp | ((url: string) => boolean), data?: string | RegExp | Object | ((data: string) => boolean), headers?: Object): mock.IRequestHandler;
/**
* Creates a new backend definition.
* Creates a new backend definition.
* Returns an object with respond method that controls how a matched request is handled.
* @param method HTTP method.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
@@ -210,7 +210,7 @@ declare module angular {
when(method: string, url: string | RegExp | ((url: string) => boolean), data?: string | RegExp | Object | ((data: string) => boolean), headers?: Object | ((object: Object) => boolean)): mock.IRequestHandler;
/**
* Creates a new backend definition for DELETE requests.
* Creates a new backend definition for DELETE requests.
* Returns an object with respond method that controls how a matched request is handled.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
* @param headers HTTP headers object or function that receives the headers and returns true if the headers match the current expectation.
@@ -218,7 +218,7 @@ declare module angular {
whenDELETE(url: string | RegExp | ((url: string) => boolean), headers?: Object | ((object: Object) => boolean)): mock.IRequestHandler;
/**
* Creates a new backend definition for GET requests.
* Creates a new backend definition for GET requests.
* Returns an object with respond method that controls how a matched request is handled.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
* @param headers HTTP headers object or function that receives the headers and returns true if the headers match the current expectation.
@@ -226,7 +226,7 @@ declare module angular {
whenGET(url: string | RegExp | ((url: string) => boolean), headers?: Object | ((object: Object) => boolean)): mock.IRequestHandler;
/**
* Creates a new backend definition for HEAD requests.
* Creates a new backend definition for HEAD requests.
* Returns an object with respond method that controls how a matched request is handled.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
* @param headers HTTP headers object or function that receives the headers and returns true if the headers match the current expectation.
@@ -234,7 +234,7 @@ declare module angular {
whenHEAD(url: string | RegExp | ((url: string) => boolean), headers?: Object | ((object: Object) => boolean)): mock.IRequestHandler;
/**
* Creates a new backend definition for JSONP requests.
* Creates a new backend definition for JSONP requests.
* Returns an object with respond method that controls how a matched request is handled.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
* @param headers HTTP headers object or function that receives the headers and returns true if the headers match the current expectation.
@@ -242,7 +242,7 @@ declare module angular {
whenJSONP(url: string | RegExp | ((url: string) => boolean)): mock.IRequestHandler;
/**
* Creates a new backend definition for PATCH requests.
* Creates a new backend definition for PATCH requests.
* Returns an object with respond method that controls how a matched request is handled.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
* @param data HTTP request body string, json object, regular expression or function that receives the data and returns true if the data matches the current expectation.
@@ -251,7 +251,7 @@ declare module angular {
whenPATCH(url: string | RegExp | ((url: string) => boolean), data?: string | RegExp | Object | ((data: string) => boolean), headers?: Object | ((object: Object) => boolean)): mock.IRequestHandler;
/**
* Creates a new backend definition for POST requests.
* Creates a new backend definition for POST requests.
* Returns an object with respond method that controls how a matched request is handled.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
* @param data HTTP request body string, json object, regular expression or function that receives the data and returns true if the data matches the current expectation.
@@ -260,7 +260,7 @@ declare module angular {
whenPOST(url: string | RegExp | ((url: string) => boolean), data?: string | RegExp | Object | ((data: string) => boolean), headers?: Object | ((object: Object) => boolean)): mock.IRequestHandler;
/**
* Creates a new backend definition for PUT requests.
* Creates a new backend definition for PUT requests.
* Returns an object with respond method that controls how a matched request is handled.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
* @param data HTTP request body string, json object, regular expression or function that receives the data and returns true if the data matches the current expectation.
@@ -272,16 +272,16 @@ declare module angular {
export module mock {
// returned interface by the the mocked HttpBackendService expect/when methods
interface IRequestHandler {
/**
* Controls the response for a matched request using a function to construct the response.
* Controls the response for a matched request using a function to construct the response.
* Returns the RequestHandler object for possible overrides.
* @param func Function that receives the request HTTP method, url, data, and headers and returns an array containing response status (number), data, headers, and status text.
*/
respond(func: ((method: string, url: string, data: string | Object, headers: Object) => [number, string | Object, Object, string])): IRequestHandler;
/**
* Controls the response for a matched request using supplied static data to construct the response.
* Controls the response for a matched request using supplied static data to construct the response.
* Returns the RequestHandler object for possible overrides.
* @param status HTTP status code to add to the response.
* @param data Data to add to the response.
@@ -291,7 +291,7 @@ declare module angular {
respond(status: number, data: string | Object, headers?: Object, responseText?: string): IRequestHandler;
/**
* Controls the response for a matched request using the HTTP status code 200 and supplied static data to construct the response.
* Controls the response for a matched request using the HTTP status code 200 and supplied static data to construct the response.
* Returns the RequestHandler object for possible overrides.
* @param data Data to add to the response.
* @param headers Headers object to add to the response.

View File

@@ -13,7 +13,7 @@ declare module 'angular-resource' {
///////////////////////////////////////////////////////////////////////////////
// ngResource module (angular-resource.js)
///////////////////////////////////////////////////////////////////////////////
declare module angular.resource {
declare namespace angular.resource {
/**
* Currently supported options for the $resource factory options argument.
@@ -74,7 +74,7 @@ declare module angular.resource {
responseType?: string;
interceptor?: IHttpInterceptor;
}
// Allow specify more resource methods
// No need to add duplicates for all four overloads.
interface IResourceMethod<T> {
@@ -84,7 +84,7 @@ declare module angular.resource {
(params: Object, success: Function, error?: Function): T;
(params: Object, data: Object, success?: Function, error?: Function): T;
}
// Allow specify resource moethod which returns the array
// No need to add duplicates for all four overloads.
interface IResourceArrayMethod<T> {
@@ -182,7 +182,7 @@ declare module angular.resource {
}
/** extensions to base ng based on using angular-resource */
declare module angular {
declare namespace angular {
interface IModule {
/** creating a resource service factory */

View File

@@ -13,7 +13,7 @@ declare module "angular-route" {
///////////////////////////////////////////////////////////////////////////////
// ngRoute module (angular-route.js)
///////////////////////////////////////////////////////////////////////////////
declare module angular.route {
declare namespace angular.route {
///////////////////////////////////////////////////////////////////////////
// RouteParamsService
@@ -35,7 +35,7 @@ declare module angular.route {
// May not always be available. For instance, current will not be available
// to a controller that was not initialized as a result of a route maching.
current?: ICurrentRoute;
/**
* Causes $route service to update the current URL, replacing current route parameters with those specified in newParams.
* Provided property names that match the route's path segment definitions will be interpolated into the

View File

@@ -14,7 +14,7 @@ declare module "angular-sanitize" {
///////////////////////////////////////////////////////////////////////////////
// ngSanitize module (angular-sanitize.js)
///////////////////////////////////////////////////////////////////////////////
declare module angular.sanitize {
declare namespace angular.sanitize {
///////////////////////////////////////////////////////////////////////////
// SanitizeService

View File

@@ -91,7 +91,7 @@ angular.module('http-auth-interceptor', [])
}]);
module HttpAndRegularPromiseTests {
namespace HttpAndRegularPromiseTests {
interface Person {
firstName: string;
lastName: string;
@@ -174,7 +174,7 @@ module HttpAndRegularPromiseTests {
// Test for AngularJS Syntax
module My.Namespace {
namespace My.Namespace {
export var x: any; // need to export something for module to kick in
}
@@ -247,7 +247,7 @@ foo.then((x) => {
});
// $q signature tests
module TestQ {
namespace TestQ {
interface TResult {
a: number;
b: string;
@@ -346,7 +346,7 @@ httpFoo.success((data, status, headers, config) => {
// Deferred signature tests
module TestDeferred {
namespace TestDeferred {
var any: any;
interface TResult {
@@ -386,7 +386,7 @@ module TestDeferred {
}
}
module TestInjector {
namespace TestInjector {
let $injector: angular.auto.IInjectorService;
$injector.strictDi = true;
@@ -397,7 +397,7 @@ module TestInjector {
// Promise signature tests
module TestPromise {
namespace TestPromise {
var result: any;
var any: any;
@@ -479,7 +479,7 @@ var isolateScope: ng.IScope = element.isolateScope();
// $timeout signature tests
module TestTimeout {
namespace TestTimeout {
interface TResult {
a: number;
b: string;
@@ -920,7 +920,7 @@ angular.module('copyExample', [])
$scope.reset();
}]);
module locationTests {
namespace locationTests {
var $location: ng.ILocationService;

View File

@@ -23,7 +23,7 @@ declare module 'angular' {
///////////////////////////////////////////////////////////////////////////////
// ng module (angular.js)
///////////////////////////////////////////////////////////////////////////////
declare module angular {
declare namespace angular {
// not directly implemented, but ensures that constructed class implements $get
interface IServiceProviderClass {

View File

@@ -82,7 +82,7 @@ angular.module('http-auth-interceptor', [])
}]);
module HttpAndRegularPromiseTests {
namespace HttpAndRegularPromiseTests {
interface Person {
firstName: string;
lastName: string;
@@ -151,7 +151,7 @@ module HttpAndRegularPromiseTests {
// Test for AngularJS Syntax
module My.Namespace {
namespace My.Namespace {
export var x; // need to export something for module to kick in
}

View File

@@ -16,7 +16,7 @@ interface Function {
///////////////////////////////////////////////////////////////////////////////
// ng module (angular.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng {
declare namespace ng {
// All service providers extend this interface
interface IServiceProvider {
@@ -679,7 +679,7 @@ declare module ng {
scope?: any;
link?: Function;
compile?: Function;
controller?: any;
controller?: any;
}
///////////////////////////////////////////////////////////////////////////

View File

@@ -87,7 +87,7 @@ angular.module('http-auth-interceptor', [])
}]);
module HttpAndRegularPromiseTests {
namespace HttpAndRegularPromiseTests {
interface Person {
firstName: string;
lastName: string;
@@ -170,7 +170,7 @@ module HttpAndRegularPromiseTests {
// Test for AngularJS Syntax
module My.Namespace {
namespace My.Namespace {
export var x: any; // need to export something for module to kick in
}

View File

@@ -16,7 +16,7 @@ interface Function {
///////////////////////////////////////////////////////////////////////////////
// ng module (angular.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng {
declare namespace ng {
// not directly implemented, but ensures that constructed class implements $get
interface IServiceProviderClass {

View File

@@ -23,7 +23,7 @@ declare module 'angular' {
///////////////////////////////////////////////////////////////////////////////
// ng module (angular.js)
///////////////////////////////////////////////////////////////////////////////
declare module angular {
declare namespace angular {
// not directly implemented, but ensures that constructed class implements $get
interface IServiceProviderClass {

View File

@@ -8,7 +8,7 @@
///////////////////////////////////////////////////////////////////////////////
// ngAnimate module (angular-animate.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng.animate {
declare namespace ng.animate {
///////////////////////////////////////////////////////////////////////////
// AnimateService

View File

@@ -13,7 +13,7 @@ declare module "angular-animate" {
/**
* ngAnimate module (angular-animate.js)
*/
declare module angular.animate {
declare namespace angular.animate {
interface IAnimateFactory extends Function {
enter?: (element: ng.IAugmentedJQuery, doneFn: Function) => IAnimateCssRunner|void;
leave?: (element: ng.IAugmentedJQuery, doneFn: Function) => IAnimateCssRunner|void;
@@ -254,7 +254,7 @@ declare module angular.animate {
}
declare module angular {
declare namespace angular {
interface IModule {
animate(cssSelector: string, animateFactory: angular.animate.IAnimateFactory): IModule;
}

View File

@@ -9,7 +9,7 @@
///////////////////////////////////////////////////////////////////////////////
// ngCookies module (angular-cookies.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng.cookies {
declare namespace ng.cookies {
///////////////////////////////////////////////////////////////////////////
// CookieService

View File

@@ -9,7 +9,7 @@
///////////////////////////////////////////////////////////////////////////////
// ngCookies module (angular-cookies.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng.cookies {
declare namespace ng.cookies {
///////////////////////////////////////////////////////////////////////////
// CookieService

View File

@@ -15,7 +15,7 @@ declare var inject: (...fns: Function[]) => any;
///////////////////////////////////////////////////////////////////////////////
// ngMock module (angular-mocks.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng {
declare namespace ng {
///////////////////////////////////////////////////////////////////////////
// AngularStatic
@@ -28,10 +28,10 @@ declare module ng {
interface IMockStatic {
// see http://docs.angularjs.org/api/angular.mock.debug
debug(obj: any): string;
// see http://docs.angularjs.org/api/angular.mock.inject
inject(...fns: Function[]): any;
// see http://docs.angularjs.org/api/angular.mock.module
module(...modules: any[]): any;
@@ -85,8 +85,8 @@ declare module ng {
expect(method: string, url: string, data?: any, headers?: any): mock.IRequestHandler;
expect(method: string, url: RegExp, data?: any, headers?: any): mock.IRequestHandler;
expect(method: RegExp, url: string, data?: any, headers?: any): mock.IRequestHandler;
expect(method: RegExp, url: RegExp, data?: any, headers?: any): mock.IRequestHandler;
expect(method: RegExp, url: RegExp, data?: any, headers?: any): mock.IRequestHandler;
when(method: string, url: string, data?: string, headers?: any): mock.IRequestHandler;
when(method: string, url: RegExp, data?: string, headers?: any): mock.IRequestHandler;
when(method: string, url: string, data?: RegExp, headers?: any): mock.IRequestHandler;
@@ -94,8 +94,8 @@ declare module ng {
when(method: RegExp, url: string, data?: string, headers?: any): mock.IRequestHandler;
when(method: RegExp, url: RegExp, data?: string, headers?: any): mock.IRequestHandler;
when(method: RegExp, url: string, data?: RegExp, headers?: any): mock.IRequestHandler;
when(method: RegExp, url: RegExp, data?: RegExp, headers?: any): mock.IRequestHandler;
when(method: RegExp, url: RegExp, data?: RegExp, headers?: any): mock.IRequestHandler;
expectDELETE(url: string, headers?: any): mock.IRequestHandler;
expectDELETE(url: RegExp, headers?: any): mock.IRequestHandler;
expectGET(url: string, headers?: any): mock.IRequestHandler;
@@ -131,13 +131,13 @@ declare module ng {
whenPUT(url: RegExp, data?: string, headers?: any): mock.IRequestHandler;
whenPUT(url: string, data?: RegExp, headers?: any): mock.IRequestHandler;
whenPUT(url: RegExp, data?: RegExp, headers?: any): mock.IRequestHandler;
}
}
export module mock {
// returned interface by the the mocked HttpBackendService expect/when methods
interface IRequestHandler {
respond(func: Function): void;
respond(func: Function): void;
respond(status: number, data?: any, headers?: any): void;
respond(data: any, headers?: any): void;
@@ -145,6 +145,6 @@ declare module ng {
passThrough(): void;
}
}
}
}

View File

@@ -14,7 +14,7 @@ declare var inject: (...fns: Function[]) => any;
///////////////////////////////////////////////////////////////////////////////
// ngMock module (angular-mocks.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng {
declare namespace ng {
///////////////////////////////////////////////////////////////////////////
// AngularStatic
@@ -59,7 +59,7 @@ declare module ng {
flushNext(expectedDelay?: number): void;
verifyNoPendingTasks(): void;
}
///////////////////////////////////////////////////////////////////////////
// IntervalService
// see https://code.angularjs.org/1.2.26/docs/api/ngMock/service/$interval

View File

@@ -9,7 +9,7 @@
///////////////////////////////////////////////////////////////////////////////
// ngResource module (angular-resource.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng.resource {
declare namespace ng.resource {
///////////////////////////////////////////////////////////////////////////
// ResourceService
@@ -20,7 +20,7 @@ declare module ng.resource {
///////////////////////////////////////////////////////////////////////////
interface IResourceService {
(url: string, paramDefaults?: any,
/** example: {update: { method: 'PUT' }, delete: deleteDescriptor }
/** example: {update: { method: 'PUT' }, delete: deleteDescriptor }
where deleteDescriptor : IActionDescriptor */
actionDescriptors?: any): IResourceClass;
}
@@ -73,7 +73,7 @@ declare module ng.resource {
}
/** extensions to base ng based on using angular-resource */
declare module ng {
declare namespace ng {
interface IModule {
/** creating a resource service factory */

View File

@@ -9,7 +9,7 @@
///////////////////////////////////////////////////////////////////////////////
// ngResource module (angular-resource.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng.resource {
declare namespace ng.resource {
///////////////////////////////////////////////////////////////////////////
// ResourceService
@@ -136,7 +136,7 @@ declare module ng.resource {
}
/** extensions to base ng based on using angular-resource */
declare module ng {
declare namespace ng {
interface IModule {
/** creating a resource service factory */

View File

@@ -13,7 +13,7 @@ declare module 'angular-resource' {
///////////////////////////////////////////////////////////////////////////////
// ngResource module (angular-resource.js)
///////////////////////////////////////////////////////////////////////////////
declare module angular.resource {
declare namespace angular.resource {
/**
* Currently supported options for the $resource factory options argument.
@@ -169,7 +169,7 @@ declare module angular.resource {
}
/** extensions to base ng based on using angular-resource */
declare module angular {
declare namespace angular {
interface IModule {
/** creating a resource service factory */

View File

@@ -9,7 +9,7 @@
///////////////////////////////////////////////////////////////////////////////
// ngRoute module (angular-route.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng.route {
declare namespace ng.route {
///////////////////////////////////////////////////////////////////////////
// RouteParamsService
@@ -40,8 +40,8 @@ declare module ng.route {
// to a controller that was not initialized as a result of a route maching.
current?: ICurrentRoute;
}
/**
* see https://code.angularjs.org/1.2.26/docs/api/ngRoute/provider/$routeProvider#when for API documentation
*/
@@ -62,24 +62,24 @@ declare module ng.route {
/**
* {string=|function()=}
* Html template as a string or a function that returns an html template as a string which should be used by ngView or ngInclude directives. This property takes precedence over templateUrl.
*
*
* If template is a function, it will be called with the following parameters:
*
*
* {Array.<Object>} - route parameters extracted from the current $location.path() by applying the current route
*/
template?: string;
/**
* {string=|function()=}
* Path or function that returns a path to an html template that should be used by ngView.
*
*
* If templateUrl is a function, it will be called with the following parameters:
*
*
* {Array.<Object>} - route parameters extracted from the current $location.path() by applying the current route
*/
templateUrl?: any;
/**
* {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:
*
*
* - key - {string}: a name of a dependency to be injected into the controller.
* - factory - {string|function}: If string then it is an alias for a service. Otherwise if function, then it is injected and the return value is treated as the dependency. If the result is a promise, it is resolved before its value is injected into the controller. Be aware that ngRoute.$routeParams will still refer to the previous route within these resolve functions. Use $route.current.params to access the new route parameters, instead.
*/
@@ -87,9 +87,9 @@ declare module ng.route {
/**
* {(string|function())=}
* Value to update $location path with and trigger route redirection.
*
*
* If redirectTo is a function, it will be called with the following parameters:
*
*
* - {Object.<string>} - route parameters extracted from the current $location.path() by applying the current route templateUrl.
* - {string} - current $location.path()
* - {Object} - current $location.search()
@@ -97,14 +97,14 @@ declare module ng.route {
*/
redirectTo?: any;
/**
* Reload route when only $location.search() or $location.hash() changes.
*
* Reload route when only $location.search() or $location.hash() changes.
*
* This option defaults to true. If the option is set to false and url in the browser changes, then $routeUpdate event is broadcasted on the root scope.
*/
reloadOnSearch?: boolean;
/**
* Match routes without being case sensitive
*
*
* This option defaults to false. If the option is set to true, then the particular route can be matched without being case sensitive
*/
caseInsensitiveMatch?: boolean;
@@ -123,21 +123,21 @@ declare module ng.route {
interface IRouteProvider extends IServiceProvider {
/**
* Sets route definition that will be used on route change when no other route definition is matched.
*
*
* @params Mapping information to be assigned to $route.current.
*/
otherwise(params: IRoute): IRouteProvider;
/**
* Adds a new route definition to the $route service.
*
*
* @param path Route path (matched against $location.path). If $location.path contains redundant trailing slash or is missing one, the route will still match and the $location.path will be updated to add or drop the trailing slash to exactly match the route definition.
*
*
* - path can contain named groups starting with a colon: e.g. :name. All characters up to the next slash are matched and stored in $routeParams under the given name when the route matches.
* - path can contain named groups starting with a colon and ending with a star: e.g.:name*. All characters are eagerly stored in $routeParams under the given name when the route matches.
* - path can contain optional named groups with a question mark: e.g.:name?.
*
* For example, routes like /color/:color/largecode/:largecode*\/edit will match /color/brown/largecode/code/with/slashes/edit and extract: color: brown and largecode: code/with/slashes.
*
*
* @param route Mapping information to be assigned to $route.current on route match.
*/
when(path: string, route: IRoute): IRouteProvider;

View File

@@ -9,7 +9,7 @@
///////////////////////////////////////////////////////////////////////////////
// ngSanitize module (angular-sanitize.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng.sanitize {
declare namespace ng.sanitize {
///////////////////////////////////////////////////////////////////////////
// SanitizeService

View File

@@ -9,7 +9,7 @@
///////////////////////////////////////////////////////////////////////////////
// ngSanitize module (angular-sanitize.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng.sanitize {
declare namespace ng.sanitize {
///////////////////////////////////////////////////////////////////////////
// SanitizeService
@@ -25,7 +25,7 @@ declare module ng.sanitize {
///////////////////////////////////////////////////////////////////////////
export module filter {
// Finds links in text input and turns them into html links.
// Finds links in text input and turns them into html links.
// Supports http/https/ftp/mailto and plain email address links.
// see https://code.angularjs.org/1.2.26/docs/api/ngSanitize/filter/linky
interface ILinky {

View File

@@ -3,7 +3,7 @@
// Definitions by: RomanoLindano <https://github.com/RomanoLindano>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module angularScenario {
declare namespace angularScenario {
export interface AngularModel {
scenario: any;
}
@@ -46,25 +46,25 @@ declare module angularScenario {
reload(): void;
window(): testWindow;
location(): testLocation;
}
}
export interface Matchers {
toEqual(value: any): void;
toBe(value: any): void;
toBeDefined(): void;
toBeTruthy(): void;
toBeFalsy(): void;
toMatch(regularExpression: any): void;
toBeNull(): void;
toBe(value: any): void;
toBeDefined(): void;
toBeTruthy(): void;
toBeFalsy(): void;
toMatch(regularExpression: any): void;
toBeNull(): void;
toContain(value: any): void;
toBeLessThan(value: any): void;
toBeGreaterThan(value: any): void;
toBeLessThan(value: any): void;
toBeGreaterThan(value: any): void;
}
export interface CustomMatchers extends Matchers{
export interface CustomMatchers extends Matchers{
}
export interface Expect extends CustomMatchers {
export interface Expect extends CustomMatchers {
not(): angularScenario.CustomMatchers;
}
@@ -92,7 +92,7 @@ declare module angularScenario {
export interface Select {
option(value: any): any;
option(...listOfValues: any[]): any;
}
}
export interface Element {
count(): Future;
@@ -111,7 +111,7 @@ declare module angularScenario {
scrollLeft(): Future;
scrollTop(): Future;
offset(): Future;
val(value: any): void;
text(value: any): void;
html(value: any): void;

View File

@@ -5,13 +5,13 @@
/// <reference path="../../jquery/jquery.d.ts" />
declare module ng {
declare namespace ng {
export interface IAngularStatic {
scenario: any;
}
}
declare module angularScenario {
declare namespace angularScenario {
export interface RunFunction {
(functionToRun: any): any;

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