Fix angularjs/angular; 'export declare'/'declare export'

This commit is contained in:
Ryan Cavanaugh 2016-04-25 13:02:25 -07:00
parent 31dfe55013
commit 541e24b685
293 changed files with 2013 additions and 2013 deletions

View File

@ -11,11 +11,11 @@ export interface Options {
recurse: boolean;
}
declare export function parse(pattern: any): NodeJS.ReadWriteStream;
declare export function parse(patterns: any[]): NodeJS.ReadWriteStream;
export declare function parse(pattern: any): NodeJS.ReadWriteStream;
export declare function parse(patterns: any[]): NodeJS.ReadWriteStream;
declare export function stringify(): NodeJS.ReadWriteStream;
declare export function stringify(open: string, sep: string, close: string): NodeJS.ReadWriteStream;
export declare function stringify(): NodeJS.ReadWriteStream;
export declare function stringify(open: string, sep: string, close: string): NodeJS.ReadWriteStream;
declare export function stringifyObject(): NodeJS.ReadWriteStream;
declare export function stringifyObject(open: string, sep: string, close: string): NodeJS.ReadWriteStream;
export declare function stringifyObject(): NodeJS.ReadWriteStream;
export declare function stringifyObject(open: string, sep: string, close: string): NodeJS.ReadWriteStream;

View File

@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="adal.d.ts" />
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace adal {

View File

@ -21,4 +21,4 @@ interface IAmazonProductClient {
browseNodeLookup(query: any, callback?: IAmazonProductQueryCallback): Promise<Object[]>;
}
declare export function createClient(credentials: ICredentials): IAmazonProductClient;
export declare function createClient(credentials: ICredentials): IAmazonProductClient;

View File

@ -56,9 +56,9 @@ export interface CallbackWithError {
(err: any, ...args: any[]): void;
}
declare export function factory(opt?: Options): amqpRPC;
export declare function factory(opt?: Options): amqpRPC;
declare export class amqpRPC {
export declare class amqpRPC {
constructor(opt?: Options);
generateQueueName(type: string): string;
disconnect(): void;

View File

@ -3,7 +3,7 @@
// Definitions by: Stephen Lautier <https://github.com/stephenlautier>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare module "angular-dynamic-locale" {
import ng = angular.dynamicLocale;

View File

@ -3,7 +3,7 @@
// Definitions by: Scott Hatcher <https://github.com/scatcher>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare module 'AngularFormly' {
export = AngularFormly;

View File

@ -3,7 +3,7 @@
// Definitions by: Julien Paroche <https://github.com/julienpa>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/angular-fullscreen
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace angular.fullscreen {

View File

@ -3,7 +3,7 @@
// Definitions by: Ákos Lukács <https://github.com/AkosLukacs>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace angular.gettext {
interface gettextCatalog {

View File

@ -3,7 +3,7 @@
// Definitions by: Cyril Schumacher <https://github.com/cyrilschumacher>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace angular.google.analytics {
/**

View File

@ -3,7 +3,7 @@
// Definitions by: Tadeusz Hucal <https://github.com/mkp05>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace angular.growl {

View File

@ -1,4 +1,4 @@
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
/// <reference path="angular-hotkeys.d.ts" />
var scope: ng.IScope;

View File

@ -3,7 +3,7 @@
// Definitions by: Jason Zhao <https://github.com/jlz27>, Stefan Steinhart <https://github.com/reppners>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace angular.hotkeys {

View File

@ -3,7 +3,7 @@
// Definitions by: vvakame <https://github.com/vvakame>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace angular.httpAuth {
interface IAuthService {

View File

@ -3,7 +3,7 @@
// Definitions by: Andrew Camilleri <https://github.com/Kukks>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace Httpi {
export interface HttpiPayload extends ng.IRequestShortcutConfig {

View File

@ -3,7 +3,7 @@
// Definitions by: mthamil <https://github.com/mthamil>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace angular.idle {

View File

@ -1,4 +1,4 @@
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
/// <reference path="angular-jwt.d.ts" />
var app = angular.module("angular-jwt-tests", ["angular-jwt"]);

View File

@ -3,7 +3,7 @@
// Definitions by: Reto Rezzonico <https://github.com/rerezz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace angular.jwt {

View File

@ -3,7 +3,7 @@
// Definitions by: david-gang <https://github.com/david-gang>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace angular.load {

View File

@ -3,7 +3,7 @@
// Definitions by: Stephen Lautier <https://github.com/stephenlautier>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace angular {

View File

@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../localForage/localForage.d.ts" />
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace angular.localForage {

View File

@ -3,7 +3,7 @@
// Definitions by: Niko Kovačič <https://github.com/nkovacic>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare module "angular-locker" {
var _: string;

View File

@ -3,7 +3,7 @@
// Definitions by: Matt Traynham <https://github.com/mtraynham>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace angular.material {
interface MDBottomSheetOptions {

View File

@ -3,7 +3,7 @@
// Definitions by: Matt Traynham <https://github.com/mtraynham>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace angular.material {
interface MDBottomSheetOptions {

View File

@ -3,7 +3,7 @@
// Definitions by: Matt Traynham <https://github.com/mtraynham>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace angular.material {
interface IBottomSheetOptions {

View File

@ -3,7 +3,7 @@
// Definitions by: Joao Monteiro <https://github.com/jpmnteiro>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace angular.matchmedia {
interface IScreenSize {

View File

@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../meteor/meteor.d.ts" />
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace angular.meteor {
interface IRootScopeService extends angular.IRootScopeService {

View File

@ -1,5 +1,5 @@
/// <reference path="../jquery/jquery.d.ts" />
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
/// <reference path="angular-modal.d.ts" />
var btfModal: angularModal.AngularModalFactory;

View File

@ -3,7 +3,7 @@
// Definitions by: Paul Lessing <https://github.com/paullessing>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
/// <reference path="../jquery/jquery.d.ts" />
declare namespace angularModal {

View File

@ -3,7 +3,7 @@
// Definitions by: Tomasz Ducin <https://github.com/ducin/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace angular.notifications {

View File

@ -3,7 +3,7 @@
// Definitions by: Suwato <https://github.com/Suwato/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
///<reference path="../angularjs/angular.d.ts" />
///<reference path="../angularjs/angularjs.d.ts" />
declare namespace angular.cgNotify {

View File

@ -3,7 +3,7 @@
// Definitions by: Raphael ATALLAH <http://raphael.atallah.me>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace OData {

View File

@ -3,7 +3,7 @@
// Definitions by: Voislav Mishevski <https://github.com/vmishevski>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
/// <reference path="../angular-ui-router/angular-ui-router.d.ts" />
declare namespace angular.permission {

View File

@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace duScroll {

View File

@ -3,7 +3,7 @@
// Definitions by: Marcin Biegała <https://github.com/Biegal>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
/**
* SpinnerService

View File

@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace mgcrea.ngStrap {

View File

@ -3,7 +3,7 @@
// Definitions by: Niko Kovačič <https://github.com/nkovacic>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare module "angular-toastr" {
var _: string;

View File

@ -3,7 +3,7 @@
// Definitions by: Dominik Muench <https://github.com/muenchdo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace toasty {

View File

@ -3,7 +3,7 @@
// Definitions by: Niko Kovačič <https://github.com/nkovacic>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
//// <reference path="../angularjs/angular.d.ts" />
//// <reference path="../angularjs/angularjs.d.ts" />
declare module "angular-touchspin" {

View File

@ -3,7 +3,7 @@
// Definitions by: Michel Salib <https://github.com/michelsalib>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare module "angular-translate" {
import ngt = angular.translate;

View File

@ -3,7 +3,7 @@
// Definitions by: Brian Surowiec <https://github.com/xt0rted>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
// Support for AMD require
declare module 'angular-bootstrap' {

View File

@ -3,7 +3,7 @@
// Definitions by: Michel Salib <https://github.com/michelsalib>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
// Support for AMD require and CommonJS
declare module 'angular-ui-router' {

View File

@ -3,7 +3,7 @@
// Definitions by: Mark Nadig <https://github.com/marknadig>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace angular.ui {
interface IScrollDatasource<T> {

View File

@ -1,4 +1,4 @@
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
/// <reference path="angular-ui-sortable.d.ts" />
var myApp = angular.module('testModule');

View File

@ -3,7 +3,7 @@
// Definitions by: Thodoris Greasidis <https://github.com/thgreasi>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace angular.ui {

View File

@ -1,5 +1,5 @@
/// <reference path="../jasmine/jasmine.d.ts" />
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
/// <reference path="../angularjs/angular-mocks.d.ts" />
/// <reference path="angular-wizard.d.ts" />

View File

@ -1,4 +1,4 @@
///<reference path="../angularjs/angular.d.ts" />
///<reference path="../angularjs/angularjs.d.ts" />
///<reference path="./angularLocalStorage.d.ts" />
interface TestScope extends ng.IScope {

View File

@ -1,5 +1,5 @@
/// <reference path="angulartics.d.ts" />
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
namespace Analytics {
angular.module("angulartics.app", ["angulartics"])

View File

@ -3,7 +3,7 @@
// Definitions by: Steven Fan <https://github.com/stevenfan>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace angulartics {
interface IAngularticsStatic {

View File

@ -10,31 +10,31 @@ export interface EscapeCodePair {
close: string;
}
declare export var reset: EscapeCodePair;
export declare var reset: EscapeCodePair;
declare export var bold: EscapeCodePair;
declare export var dim: EscapeCodePair;
declare export var italic: EscapeCodePair;
declare export var underline: EscapeCodePair;
declare export var inverse: EscapeCodePair;
declare export var hidden: EscapeCodePair;
declare export var strikethrough: EscapeCodePair;
export declare var bold: EscapeCodePair;
export declare var dim: EscapeCodePair;
export declare var italic: EscapeCodePair;
export declare var underline: EscapeCodePair;
export declare var inverse: EscapeCodePair;
export declare var hidden: EscapeCodePair;
export declare var strikethrough: EscapeCodePair;
declare export var black: EscapeCodePair;
declare export var red: EscapeCodePair;
declare export var green: EscapeCodePair;
declare export var yellow: EscapeCodePair;
declare export var blue: EscapeCodePair;
declare export var magenta: EscapeCodePair;
declare export var cyan: EscapeCodePair;
declare export var white: EscapeCodePair;
declare export var gray: EscapeCodePair;
export declare var black: EscapeCodePair;
export declare var red: EscapeCodePair;
export declare var green: EscapeCodePair;
export declare var yellow: EscapeCodePair;
export declare var blue: EscapeCodePair;
export declare var magenta: EscapeCodePair;
export declare var cyan: EscapeCodePair;
export declare var white: EscapeCodePair;
export declare var gray: EscapeCodePair;
declare export var bgBlack: EscapeCodePair;
declare export var bgRed: EscapeCodePair;
declare export var bgGreen: EscapeCodePair;
declare export var bgYellow: EscapeCodePair;
declare export var bgBlue: EscapeCodePair;
declare export var bgMagenta: EscapeCodePair;
declare export var bgCyan: EscapeCodePair;
declare export var bgWhite: EscapeCodePair;
export declare var bgBlack: EscapeCodePair;
export declare var bgRed: EscapeCodePair;
export declare var bgGreen: EscapeCodePair;
export declare var bgYellow: EscapeCodePair;
export declare var bgBlue: EscapeCodePair;
export declare var bgMagenta: EscapeCodePair;
export declare var bgCyan: EscapeCodePair;
export declare var bgWhite: EscapeCodePair;

8
any-db/any-db.d.ts vendored
View File

@ -286,7 +286,7 @@ export interface PoolConfig {
* @param callback
* @returns Connection object.
*/
declare export function createConnection(url: string, callback?: (error: Error, connection: Connection) => void): Connection;
export declare function createConnection(url: string, callback?: (error: Error, connection: Connection) => void): Connection;
/**
* Create a database connection.
@ -294,8 +294,8 @@ declare export function createConnection(url: string, callback?: (error: Error,
* @param callback
* @returns Connection object.
*/
declare export function createConnection(opts: ConnectOpts, callback?: (error: Error, connection: Connection) => void): Connection;
export declare function createConnection(opts: ConnectOpts, callback?: (error: Error, connection: Connection) => void): Connection;
declare export function createPool(url: string, config: PoolConfig): ConnectionPool;
declare export function createPool(opts: ConnectOpts, config: PoolConfig): ConnectionPool;
export declare function createPool(url: string, config: PoolConfig): ConnectionPool;
export declare function createPool(opts: ConnectOpts, config: PoolConfig): ConnectionPool;

View File

@ -23,7 +23,7 @@ export interface MigrationTask {
down: MigFn;
name: string;
}
declare export function create(db: AnydbSql, tasks: any): {
export declare function create(db: AnydbSql, tasks: any): {
run: () => Promise<any>;
migrateTo: (target?: string) => Promise<any>;
check: (f: (m: {

10
apn/apn.d.ts vendored
View File

@ -77,7 +77,7 @@ export interface ConnectionOptions {
*/
fastMode?: boolean;
}
declare export class Connection extends events.EventEmitter {
export declare class Connection extends events.EventEmitter {
constructor(options: ConnectionOptions);
/**
* This is the business end of the module. Create a `Notification` object and pass it in, along with a single recipient or an array of them and node-apn will take care of the rest, delivering the notification to each recipient.
@ -145,7 +145,7 @@ export interface NotificationAlertOptions {
"loc-args"?: string[];
"launch-image"?: string;
}
declare export class Notification {
export declare class Notification {
/**
* The maximum number of retries which should be performed when sending a notification if an error occurs. A value of 0 will only allow one attempt at sending (0 retries). Set to -1 to disable (default).
*/
@ -255,7 +255,7 @@ declare export class Notification {
*/
trim(): number;
}
declare export class Device {
export declare class Device {
public token: Buffer;
/**
* `deviceToken` can be a `Buffer` or a `String` containing a "hex" representation of the token. Throws an error if the deviceToken supplied is invalid.
@ -312,7 +312,7 @@ export interface FeedbackData {
/**
* Connection to the Apple Push Notification Feedback Service and if `interval` isn't disabled automatically begins polling the service. Many of the options are the same as `apn.Connection()`
*/
declare export class Feedback {
export declare class Feedback {
constructor(options: FeedbackOptions);
/**
* Trigger a query of the feedback service. If `interval` is non-zero then this method will be called automatically.
@ -337,7 +337,7 @@ declare export class Feedback {
on(event: string, listener: Function): Feedback;
}
declare export enum Errors {
export declare enum Errors {
"noErrorsEncountered" = 0,
"processingError" = 1,
"missingDeviceToken" = 2,

View File

@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare export class ArgumentParser extends ArgumentGroup {
export declare class ArgumentParser extends ArgumentGroup {
constructor(options?: ArgumentParserOptions);
addSubparsers(options?: SubparserOptions): SubParser;
@ -69,10 +69,10 @@ interface ArgumentGroupOptions {
description?: string;
}
declare export class HelpFormatter { }
declare export class ArgumentDefaultsHelpFormatter { }
declare export class RawDescriptionHelpFormatter { }
declare export class RawTextHelpFormatter { }
export declare class HelpFormatter { }
export declare class ArgumentDefaultsHelpFormatter { }
export declare class RawDescriptionHelpFormatter { }
export declare class RawTextHelpFormatter { }
interface ArgumentOptions {
action?: string;

View File

@ -5,8 +5,8 @@
declare export function hashPassword(password: string): string;
declare export function hashPassword(password: string, callback: (err: any, result: string) => void): void;
export declare function hashPassword(password: string): string;
export declare function hashPassword(password: string, callback: (err: any, result: string) => void): void;
declare export function validatePassword(password: string, hashedPass: string): boolean;
declare export function validatePassword(password: string, hashedPass: string, callback: (err: any, result: boolean) => void): void;
export declare function validatePassword(password: string, hashedPass: string): boolean;
export declare function validatePassword(password: string, hashedPass: string, callback: (err: any, result: boolean) => void): void;

View File

@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare export default class Assert {
export declare default class Assert {
static AreEqual<T>(expected: T, actual: T, message?: string): void;
static AreNotEqual<T>(notExpected: T, actual: T, message?: string): void;
static AreNotSame<T>(notExpected: T, actual: T, message?: string): void;

18
atpl/atpl.d.ts vendored
View File

@ -6,14 +6,14 @@
// Imported from: https://github.com/soywiz/typescript-node-definitions/atpl.d.ts
declare export function compile(templateString: string, options: any): (context: any) => string;
declare export function __express(filename: string, options: any, callback: Function): any;
export declare function compile(templateString: string, options: any): (context: any) => string;
export declare function __express(filename: string, options: any, callback: Function): any;
declare export function registerExtension(items: any): void;
declare export function registerTags(items: any): void;
declare export function registerFunctions(items: any): void;
declare export function registerFilters(items: any): void;
declare export function registerTests(items: any): void;
export declare function registerExtension(items: any): void;
export declare function registerTags(items: any): void;
export declare function registerFunctions(items: any): void;
export declare function registerFilters(items: any): void;
export declare function registerTests(items: any): void;
declare export function renderFileSync(viewsPath: string, filename: string, parameters: any, cache: boolean): string;
declare export function renderFile(viewsPath: string, filename: string, parameters: any, cache: boolean, done: (err: Error, result?: string) => void): void;
export declare function renderFileSync(viewsPath: string, filename: string, parameters: any, cache: boolean): string;
export declare function renderFile(viewsPath: string, filename: string, parameters: any, cache: boolean, done: (err: Error, result?: string) => void): void;

View File

@ -3,7 +3,7 @@
// Definitions by: Matt Emory <https://github.com/homesar>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
declare namespace auth0.angular {

36
aws-sdk/aws-sdk.d.ts vendored
View File

@ -9,11 +9,11 @@
declare export var config: ClientConfig;
export declare var config: ClientConfig;
declare export function Config(json: any): void;
export declare function Config(json: any): void;
declare export class Credentials {
export declare class Credentials {
constructor(accessKeyId: string, secretAccessKey: string, sessionToken?: string);
accessKeyId: string;
}
@ -31,7 +31,7 @@ export interface HttpOptions {
xhrWithCredentials?: boolean;
}
declare export class Endpoint {
export declare class Endpoint {
constructor(endpoint: string);
host: string;
@ -108,7 +108,7 @@ export interface ClientConfig extends ClientConfigPartial {
region: string;
}
declare export class SQS {
export declare class SQS {
constructor(options?: any);
endpoint: Endpoint;
@ -131,28 +131,28 @@ declare export class SQS {
setQueueAttributes(params: SQS.SetQueueAttributesParams, callback: (err: Error, data: any) => void): void;
}
declare export class SES {
export declare class SES {
constructor(options?: any);
public client: Ses.Client;
}
declare export class SNS {
export declare class SNS {
constructor(options?: any);
public client: Sns.Client;
}
declare export class SimpleWorkflow {
export declare class SimpleWorkflow {
constructor(options?: any);
public client: Swf.Client;
}
declare export class S3 {
export declare class S3 {
constructor(options?: any);
putObject(params: s3.PutObjectRequest, callback: (err: any, data: any) => void): void;
getObject(params: s3.GetObjectRequest, callback: (err: any, data: any) => void): void;
}
declare export class ECS {
export declare class ECS {
constructor(options?: any);
createService(params: ecs.CreateServicesParams, callback: (err: any, data: any) => void): void;
@ -162,17 +162,17 @@ declare export class ECS {
updateService(params: ecs.UpdateServiceParams, callback: (err: any, data: any) => void): void;
}
declare export class DynamoDB {
export declare class DynamoDB {
constructor(options?: any);
}
declare export module DynamoDB {
export declare module DynamoDB {
export class DocumentClient {
constructor(options?: any);
}
}
declare export module SQS {
export declare module SQS {
export interface SqsOptions {
params?: any;
@ -364,7 +364,7 @@ declare export module SQS {
}
declare export module Ses {
export declare module Ses {
export interface Client {
config: ClientConfig;
@ -407,7 +407,7 @@ declare export module Ses {
}
declare export module Swf {
export declare module Swf {
export class Client {
//constructor(options?: any);
@ -1018,7 +1018,7 @@ declare export module Swf {
}
declare export module Sns {
export declare module Sns {
export interface Client {
config: ClientConfig;
@ -1053,7 +1053,7 @@ declare export module Sns {
}
declare export module s3 {
export declare module s3 {
export interface PutObjectRequest {
ACL?: string;
@ -1097,7 +1097,7 @@ declare export module s3 {
}
declare export module ecs {
export declare module ecs {
export interface CreateServicesParams {
desiredCount: number;
serviceName: string;

106
azure/azure.d.ts vendored
View File

@ -16,7 +16,7 @@ import stream = require("stream");
import url = require("url");
//#region Services
declare export class TableService extends BatchServiceClient {
export declare class TableService extends BatchServiceClient {
static incorrectTableNameErr: string;
static incorrectCallbackErr: string;
static incorrectTableQuery: string;
@ -114,7 +114,7 @@ declare export class TableService extends BatchServiceClient {
//#endregion
}
declare export class BlobService extends StorageServiceClient {
export declare class BlobService extends StorageServiceClient {
singleBlobPutThresholdInBytes: number;
parallelOperationThreadCount: number;
@ -479,7 +479,7 @@ declare export class BlobService extends StorageServiceClient {
//#endregion
}
declare export class QueueService extends StorageServiceClient {
export declare class QueueService extends StorageServiceClient {
authenticationProvider: SharedKey;
//#region Constructors
@ -619,44 +619,44 @@ declare export class QueueService extends StorageServiceClient {
//#endregion
}
declare export class ServiceBusService {
export declare class ServiceBusService {
}
declare export class SqlService {
export declare class SqlService {
}
declare export class ServiceManagementService {
export declare class ServiceManagementService {
}
declare export class SqlManagementService {
export declare class SqlManagementService {
}
//#endregion
//#region Service Creators
declare export function createTableService(): TableService;
declare export function createTableService(connectionString: string): TableService;
declare export function createTableService(storageAccount: string, storageAccessKey: string, host?: string, authenticationProvider?: string): TableService;
export declare function createTableService(): TableService;
export declare function createTableService(connectionString: string): TableService;
export declare function createTableService(storageAccount: string, storageAccessKey: string, host?: string, authenticationProvider?: string): TableService;
declare export function createBlobService(): BlobService;
declare export function createBlobService(connectionString: string): BlobService;
declare export function createBlobService(storageAccount: string, storageAccessKey: string, host?: string, authenticationProvider?: string): BlobService;
export declare function createBlobService(): BlobService;
export declare function createBlobService(connectionString: string): BlobService;
export declare function createBlobService(storageAccount: string, storageAccessKey: string, host?: string, authenticationProvider?: string): BlobService;
declare export function createQueueService(): QueueService;
declare export function createQueueService(connectionString: string): QueueService;
declare export function createQueueService(storageAccount: string, storageAccessKey: string, host?: string, authenticationProvider?: string): QueueService;
export declare function createQueueService(): QueueService;
export declare function createQueueService(connectionString: string): QueueService;
export declare function createQueueService(storageAccount: string, storageAccessKey: string, host?: string, authenticationProvider?: string): QueueService;
declare export function createServiceBusService(): ServiceBusService;
declare export function createServiceBusService(connectionString: string): ServiceBusService;
declare export function createServiceBusService(namespace: string, accessKey?: string, issuer?: string, acsNamespace?: string, host?: string, authenticationProvider?: string): ServiceBusService;
export declare function createServiceBusService(): ServiceBusService;
export declare function createServiceBusService(connectionString: string): ServiceBusService;
export declare function createServiceBusService(namespace: string, accessKey?: string, issuer?: string, acsNamespace?: string, host?: string, authenticationProvider?: string): ServiceBusService;
declare export function createSqlService(serverName: string, administratorLogin: string, administratorLoginPassword: string, host?: string, acsHost?: string, authenticationProvider?: string): SqlService;
export declare function createSqlService(serverName: string, administratorLogin: string, administratorLoginPassword: string, host?: string, acsHost?: string, authenticationProvider?: string): SqlService;
declare export function createServiceManagementService(subscriptionId: string, authentication: string, hostOptions: string): ServiceManagementService;
export declare function createServiceManagementService(subscriptionId: string, authentication: string, hostOptions: string): ServiceManagementService;
declare export function createSqlManagementService(subscriptionId: string, authentication: string, hostOptions: string): SqlManagementService;
export declare function createSqlManagementService(subscriptionId: string, authentication: string, hostOptions: string): SqlManagementService;
//#endregion
//#region RoleEnvironment
@ -745,12 +745,12 @@ interface RoleEnvironmentInterface extends events.EventEmitter {
clearStatus(callback: ErrorCallback): void;
}
declare export var RoleEnvironment: RoleEnvironmentInterface;
export declare var RoleEnvironment: RoleEnvironmentInterface;
//#endregion
//#region Export of internal classes
declare export class WebResource {
export declare class WebResource {
rawResponse: boolean;
queryString: Dictionary<string>;
@ -777,7 +777,7 @@ declare export class WebResource {
pipeInput(inputStream: stream.Stream, destStream: stream.Stream): stream.Stream;
}
declare export class ServiceClient extends events.EventEmitter {
export declare class ServiceClient extends events.EventEmitter {
static EnvironmentVariables: any;
static DEVSTORE_STORAGE_ACCOUNT: string;
static DEVSTORE_STORAGE_ACCESS_KEY: string;
@ -807,7 +807,7 @@ declare export class ServiceClient extends events.EventEmitter {
setProxy(proxyUrl: string, proxyPort: number): void;
}
declare export class BatchServiceClient extends StorageServiceClient {
export declare class BatchServiceClient extends StorageServiceClient {
operations: any[];
constructor(storageAccount: string, storageAccessKey: string, host: string, usePathstyleUri: boolean, authenticationProvider: any);
@ -822,11 +822,11 @@ declare export class BatchServiceClient extends StorageServiceClient {
processOperation(webResource: WebResource, rawResponse: string): any;
}
declare export class ServiceManagementClient {
export declare class ServiceManagementClient {
}
declare export class TableQuery {
export declare class TableQuery {
static select(...fields: string[]): TableQuery;
from(table: string): TableQuery;
whereKeys(partitionKey: string, rowKey: string): TableQuery;
@ -839,7 +839,7 @@ declare export class TableQuery {
toPath(): string;
}
declare export class BlobResult {
export declare class BlobResult {
blob: string;
container: string;
@ -889,7 +889,7 @@ declare export class BlobResult {
getPropertiesFromHeaders(headers: any): void;
}
declare export class ContainerResult {
export declare class ContainerResult {
name: string;
publicAccessLevel: string;
@ -912,7 +912,7 @@ declare export class ContainerResult {
getPropertiesFromHeaders(headers: any): void;
}
declare export class LeaseResult {
export declare class LeaseResult {
container: string;
blob: string;
id: string;
@ -929,7 +929,7 @@ declare export class LeaseResult {
getPropertiesFromHeaders(header: any): void;
}
declare export class QueueResult {
export declare class QueueResult {
name: string;
metadata: StorageMetadata;
approximatemessagecount: number;
@ -943,7 +943,7 @@ declare export class QueueResult {
getPropertiesFromHeaders(headers: any): void;
}
declare export class QueueMessageResult {
export declare class QueueMessageResult {
queue: string;
insertiontime: string;
expirationtime: string;
@ -966,7 +966,7 @@ declare export class QueueMessageResult {
getPropertiesFromHeaders(headers: any): void;
}
declare export class SpeedSummary {
export declare class SpeedSummary {
name: string;
totalSize: number;
completeSize: number;
@ -1022,7 +1022,7 @@ declare export class SpeedSummary {
getCompleteSize(humanReadable: boolean): number;
}
declare export module Constants {
export declare module Constants {
}
@ -1030,14 +1030,14 @@ export interface Filter {
handle(requestOptions: any, next: Function): void;
}
declare export class LinearRetryPolicyFilter implements Filter {
export declare class LinearRetryPolicyFilter implements Filter {
constructor(retryCount?: number, retryInterval?: number);
retryCount: number;
retryInterval: number;
handle(requestOptions: any, next: Function): void;
}
declare export class ExponentialRetryPolicyFilter implements Filter {
export declare class ExponentialRetryPolicyFilter implements Filter {
constructor(retryCount?: number, retryInterval?: number, minRetryInterval?: number, maxRetryInterval?: number);
retryCount: number;
retryInterval: number;
@ -1046,11 +1046,11 @@ declare export class ExponentialRetryPolicyFilter implements Filter {
handle(requestOptions: any, next: Function): void;
}
declare export class HmacSha256Sign {
export declare class HmacSha256Sign {
}
declare export class SharedAccessSignature {
export declare class SharedAccessSignature {
storageAccount: string;
storageAccessKey: string;
permissionSet: string[];
@ -1079,7 +1079,7 @@ declare export class SharedAccessSignature {
_permissionMatchesRequest(sharedAccessSignature: string, webResource: WebResource, resourceType: string, requiredPermissions: string[]): string;
}
declare export class SharedKey {
export declare class SharedKey {
storageAccount: string;
storageAccessKey: string;
usePathStyleUri: string;
@ -1114,7 +1114,7 @@ declare export class SharedKey {
_getCanonicalizedHeaders(webResource: WebResource): string;
}
declare export class SharedKeyLite {
export declare class SharedKeyLite {
storageAccount: string;
storageAccessKey: string;
usePathStyleUri: string;
@ -1149,7 +1149,7 @@ declare export class SharedKeyLite {
_getCanonicalizedHeaders(webResource: WebResource): string;
}
declare export class SharedKeyTable {
export declare class SharedKeyTable {
storageAccount: string;
storageAccessKey: string;
usePathStyleUri: string;
@ -1168,7 +1168,7 @@ declare export class SharedKeyTable {
_getCanonicalizedResource(webResource: WebResource): string;
}
declare export class SharedKeyLiteTable {
export declare class SharedKeyLiteTable {
torageAccount: string;
storageAccessKey: string;
usePathStyleUri: string;
@ -1187,7 +1187,7 @@ declare export class SharedKeyLiteTable {
_getCanonicalizedResource(webResource: WebResource): string;
}
declare export module ISO8061Date {
export declare module ISO8061Date {
/**
* Formats a date into an iso 8061 string.
*/
@ -1199,7 +1199,7 @@ declare export module ISO8061Date {
export function parse(stringDateTime: string): Date;
}
declare export class Logger {
export declare class Logger {
level: string;
loggerFunction: (level: string, message: string) => void;
@ -1228,7 +1228,7 @@ declare export class Logger {
defaultLoggerFunction(level: string, message: string): void;
}
declare export class ConnectionStringParser {
export declare class ConnectionStringParser {
_value: string;
_pos: number;
_state: string;
@ -1247,7 +1247,7 @@ declare export class ConnectionStringParser {
static parse(connectionString: string): Dictionary<string>;
}
declare export module ServiceSettings {
export declare module ServiceSettings {
export var DEFAULT_PROTOCOL: string;
export class NoMatchError implements Error {
@ -1318,7 +1318,7 @@ declare export module ServiceSettings {
export function parseHost(uri: string): url.Url;
}
declare export class StorageServiceSettings {
export declare class StorageServiceSettings {
_name: string;
_key: string;
_blobEndpointUri: string;
@ -1371,15 +1371,15 @@ declare export class StorageServiceSettings {
static customizeConfig(config: any): void;
}
declare export class ServiceBusSettings {
export declare class ServiceBusSettings {
}
declare export class ServiceManagementSettinsg {
export declare class ServiceManagementSettinsg {
}
declare export module Validate {
export declare module Validate {
/**
* Checks if the given uri is valid or not.
*/
@ -1441,7 +1441,7 @@ declare export module Validate {
export function validateArgs(functionName: string, validationRules: Function): boolean;
}
declare export module date {
export declare module date {
/**
* Generates a Date object which is in the given days from now.
*/
@ -1878,4 +1878,4 @@ declare class StorageServiceClient extends ServiceClient {
}
//#endregion
declare export function isEmulated(): boolean;
export declare function isEmulated(): boolean;

View File

@ -1,7 +1,7 @@
/// <reference path="bardjs.d.ts" />
/// <reference path="../mocha/mocha.d.ts" />
/// <reference path="../chai/chai.d.ts" />
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
/// <reference path="../angularjs/angular-mocks.d.ts" />
namespace bardTests {

2
bardjs/bardjs.d.ts vendored
View File

@ -3,7 +3,7 @@
// Definitions by: Andrew Archibald <https://github.com/TepigMC>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angularjs/angularjs.d.ts" />
/// <reference path="../chai/chai.d.ts" />
/// <reference path="../mocha/mocha.d.ts" />

View File

@ -9,14 +9,14 @@
* @param rounds Number of rounds to process the data for (default - 10)
* @return Generated salt
*/
declare export function genSaltSync(rounds?: number): string;
export declare function genSaltSync(rounds?: number): string;
/**
* Generate a salt asynchronously
* @param rounds Number of rounds to process the data for (default - 10)
* @param callback Callback with error and resulting salt, to be fired once the salt has been generated
*/
declare export function genSalt(rounds: number, callback: (error: Error, result: string) => void): void;
export declare function genSalt(rounds: number, callback: (error: Error, result: string) => void): void;
/**
* Generate a hash synchronously
@ -24,7 +24,7 @@ declare export function genSalt(rounds: number, callback: (error: Error, result:
* @param salt Salt to be used in encryption (default - new salt generated with 10 rounds)
* @return Generated hash
*/
declare export function hashSync(data: string, salt?: string): string;
export declare function hashSync(data: string, salt?: string): string;
/**
* Generate a hash asynchronously
@ -32,7 +32,7 @@ declare export function hashSync(data: string, salt?: string): string;
* @param salt Salt to be used in encryption
* @param callback Callback with error and hashed result, to be fired once the data has been encrypted
*/
declare export function hash(data: string, salt: string, callback: (error: Error, result: string) => void): void;
export declare function hash(data: string, salt: string, callback: (error: Error, result: string) => void): void;
/**
* Generate a hash asynchronously
@ -41,7 +41,7 @@ declare export function hash(data: string, salt: string, callback: (error: Error
* @param progressCallback Callback to be fired multiple times during the hash calculation to signify progress
* @param callback Callback with error and hashed result, to be fired once the data has been encrypted
*/
declare export function hash(data: string, salt: string, progressCallback: () => void, callback: (error: Error, result: string) => void): void;
export declare function hash(data: string, salt: string, progressCallback: () => void, callback: (error: Error, result: string) => void): void;
/**
* Compares data with a hash synchronously
@ -49,7 +49,7 @@ declare export function hash(data: string, salt: string, progressCallback: () =>
* @param hash Hash to be compared to
* @return true if matching, false otherwise
*/
declare export function compareSync(data: string, hash: string): boolean;
export declare function compareSync(data: string, hash: string): boolean;
/**
* Compares data with a hash asynchronously
@ -57,11 +57,11 @@ declare export function compareSync(data: string, hash: string): boolean;
* @param hash Hash to be compared to
* @param callback Callback with error and match result, to be fired once the data has been compared
*/
declare export function compare(data: string, hash: string, callback: (error: Error, result: boolean) => void): void;
export declare function compare(data: string, hash: string, callback: (error: Error, result: boolean) => void): void;
/**
* Get number of rounds used for hash
* @param hash Hash from which the number of rounds used should be extracted
* @return number of rounds used to encrypt a given hash
*/
declare export function getRounds(hash: string): number;
export declare function getRounds(hash: string): number;

20
bcrypt/bcrypt.d.ts vendored
View File

@ -7,58 +7,58 @@
/**
* @param rounds The cost of processing the data. Default 10.
*/
declare export function genSaltSync(rounds?: number): string;
export declare function genSaltSync(rounds?: number): string;
/**
* @param rounds The cost of processing the data. Default 10.
* @param callback A callback to be fire once the sald has been generated. Uses eio making it asynchronous.
*/
declare export function genSalt(rounds: number, callback: (err: Error, salt: string) => void): void;
export declare function genSalt(rounds: number, callback: (err: Error, salt: string) => void): void;
/**
* @param callback A callback to be fire once the sald has been generated. Uses eio making it asynchronous.
*/
declare export function genSalt(callback: (err: Error, salt: string) => void): void;
export declare function genSalt(callback: (err: Error, salt: string) => void): void;
/**
* @param data The data to be encrypted.
* @param salt The salt to be used in encryption.
*/
declare export function hashSync(data: any, salt: string): string;
export declare function hashSync(data: any, salt: string): string;
/**
* @param data The data to be encrypted.
* @param rounds A salt will be generated using the rounds specified.
*/
declare export function hashSync(data: any, rounds: number): string;
export declare function hashSync(data: any, rounds: number): string;
/**
* @param data The data to be encrypted.
* @param salt The salt to be used in encryption.
* @param callback A callback to be fired once the data has been encrypted. Uses eio making it asynchronous.
*/
declare export function hash(data: any, salt: string, callback: (err: Error, encrypted: string) => void): void;
export declare function hash(data: any, salt: string, callback: (err: Error, encrypted: string) => void): void;
/**
* @param data The data to be encrypted.
* @param rounds A salt will be generated using the rounds specified.
* @param callback A callback to be fired once the data has been encrypted. Uses eio making it asynchronous.
*/
declare export function hash(data: any, rounds: number, callback: (err: Error, encrypted: string) => void): void;
export declare function hash(data: any, rounds: number, callback: (err: Error, encrypted: string) => void): void;
/**
* @param data The data to be encrypted.
* @param encrypted The data to be compared against.
*/
declare export function compareSync(data: any, encrypted: string): boolean;
export declare function compareSync(data: any, encrypted: string): boolean;
/**
* @param data The data to be encrypted.
* @param encrypted The data to be compared against.
* @param callback A callback to be fire once the data has been compared. Uses eio making it asynchronous.
*/
declare export function compare(data: any, encrypted: string, callback: (err: Error, same: boolean) => void): void;
export declare function compare(data: any, encrypted: string, callback: (err: Error, same: boolean) => void): void;
/**
* Return the number of rounds used to encrypt a given hash
*
* @param encrypted Hash from which the number of rounds used should be extracted.
*/
declare export function getRounds(encrypted: string): number;
export declare function getRounds(encrypted: string): number;

View File

@ -10,27 +10,27 @@
* Please note: It is highly important that the PRNG used is cryptographically secure and that it is seeded properly!
* @param random Function taking the number of bytes to generate as its sole argument, returning the corresponding array of cryptographically secure random byte values.
*/
declare export function setRandomFallback(random: (random: number) => number[]): void;
export declare function setRandomFallback(random: (random: number) => number[]): void;
/**
* Synchronously generates a salt.
* @param rounds Number of rounds to use, defaults to 10 if omitted
* @return Resulting salt
*/
declare export function genSaltSync(rounds?: number): string;
export declare function genSaltSync(rounds?: number): string;
/**
* Asynchronously generates a salt.
* @param callback Callback receiving the error, if any, and the resulting salt
*/
declare export function genSalt(callback: (err: Error, salt: string) => void): void;
export declare function genSalt(callback: (err: Error, salt: string) => void): void;
/**
* Asynchronously generates a salt.
* @param rounds Number of rounds to use, defaults to 10 if omitted
* @param callback Callback receiving the error, if any, and the resulting salt
*/
declare export function genSalt(rounds: number, callback: (err: Error, salt: string) => void): void;
export declare function genSalt(rounds: number, callback: (err: Error, salt: string) => void): void;
/**
* Synchronously generates a hash for the given string.
@ -38,7 +38,7 @@ declare export function genSalt(rounds: number, callback: (err: Error, salt: str
* @param salt Salt length to generate or salt to use, default to 10
* @return Resulting hash
*/
declare export function hashSync(s: string, salt?: number | string): string;
export declare function hashSync(s: string, salt?: number | string): string;
/**
* Asynchronously generates a hash for the given string.
@ -47,7 +47,7 @@ declare export function hashSync(s: string, salt?: number | string): string;
* @param callback Callback receiving the error, if any, and the resulting hash
* @param progressCallback Callback successively called with the percentage of rounds completed (0.0 - 1.0), maximally once per MAX_EXECUTION_TIME = 100 ms.
*/
declare export function hash(s: string, salt: number | string, callback: (err: Error, hash: string) => void, progressCallback?: (percent: number) => void): void;
export declare function hash(s: string, salt: number | string, callback: (err: Error, hash: string) => void, progressCallback?: (percent: number) => void): void;
/**
* Synchronously tests a string against a hash.
@ -55,7 +55,7 @@ declare export function hash(s: string, salt: number | string, callback: (err: E
* @param hash Hash to test against
* @return true if matching, otherwise false
*/
declare export function compareSync(s: string, hash: string): boolean;
export declare function compareSync(s: string, hash: string): boolean;
/**
* Asynchronously compares the given data against the given hash.
@ -64,18 +64,18 @@ declare export function compareSync(s: string, hash: string): boolean;
* @param callback Callback receiving the error, if any, otherwise the result
* @param progressCallback Callback successively called with the percentage of rounds completed (0.0 - 1.0), maximally once per MAX_EXECUTION_TIME = 100 ms.
*/
declare export function compare(s: string, hash: string, callback: (err: Error, success: boolean) => void, progressCallback?: (percent: number) => void): void;
export declare function compare(s: string, hash: string, callback: (err: Error, success: boolean) => void, progressCallback?: (percent: number) => void): void;
/**
* Gets the number of rounds used to encrypt the specified hash.
* @param hash Hash to extract the used number of rounds from
* @return Number of rounds used
*/
declare export function getRounds(hash: string): number;
export declare function getRounds(hash: string): number;
/**
* Gets the salt portion from a hash. Does not validate the hash.
* @param hash Hash to extract the salt from
* @return Extracted salt part
*/
declare export function getSalt(hash: string): string;
export declare function getSalt(hash: string): string;

View File

@ -3,4 +3,4 @@
// Definitions by: Ray Martone <https://github.com/rmartone>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare export function md5(value: string, key?: string, raw?: boolean): string;
export declare function md5(value: string, key?: string, raw?: boolean): string;

View File

@ -116,7 +116,7 @@ export interface ElementProxy {
filter(selector: any, callback?: (err: Error, element: ElementProxy) => void): ElementProxy
}
declare export class Browser {
export declare class Browser {
//constructor(args: { type: string; location?: string; args?: string[] });
constructor(args: { type: string; location?: string; args?: any; });
@ -124,9 +124,9 @@ declare export class Browser {
close();
}
declare export function listen(port: number, callback?: Function)
declare export var events: HarnessEvents;
declare export var config: {
export declare function listen(port: number, callback?: Function)
export declare var events: HarnessEvents;
export declare var config: {
timeoutMS: number;
retryMS: number;
};

View File

@ -13,4 +13,4 @@ interface StreamOptions {
token: string;
}
declare export function createStream(options: StreamOptions): NodeJS.WritableStream;
export declare function createStream(options: StreamOptions): NodeJS.WritableStream;

20
bunyan/bunyan.d.ts vendored
View File

@ -72,18 +72,18 @@ interface Stream {
count?: number;
}
declare export var stdSerializers: Serializers;
export declare var stdSerializers: Serializers;
declare export var TRACE: number;
declare export var DEBUG: number;
declare export var INFO: number;
declare export var WARN: number;
declare export var ERROR: number;
declare export var FATAL: number;
export declare var TRACE: number;
export declare var DEBUG: number;
export declare var INFO: number;
export declare var WARN: number;
export declare var ERROR: number;
export declare var FATAL: number;
declare export function resolveLevel(value: number | string): number;
export declare function resolveLevel(value: number | string): number;
declare export function createLogger(options: LoggerOptions): Logger;
export declare function createLogger(options: LoggerOptions): Logger;
declare class RingBuffer extends EventEmitter {
constructor(options: RingBufferOptions);
@ -101,4 +101,4 @@ interface RingBufferOptions {
limit?: number;
}
declare export function safeCycles(): (key: string, value: any) => any;
export declare function safeCycles(): (key: string, value: any) => any;

6
byline/byline.d.ts vendored
View File

@ -31,7 +31,7 @@ export interface LineStreamCreatable extends LineStream {
// ():LineStream; // same as createStream():LineStream
// (stream:stream.Stream, options?:LineStreamOptions):LineStream; // same as createStream(stream, options?):LineStream
declare export function createStream(): LineStream;
declare export function createStream(stream: NodeJS.ReadableStream, options?: LineStreamOptions): LineStream;
export declare function createStream(): LineStream;
export declare function createStream(stream: NodeJS.ReadableStream, options?: LineStreamOptions): LineStream;
declare export var LineStream: LineStreamCreatable;
export declare var LineStream: LineStreamCreatable;

4
camo/camo.d.ts vendored
View File

@ -110,7 +110,7 @@ declare class DocumentInstance<Schema extends DocumentSchema> {
/**
* Camo document
*/
declare export class Document {
export declare class Document {
/**
* Index signature
*/
@ -134,4 +134,4 @@ declare export class Document {
*
* @param uri Connection URI
*/
declare export function connect(uri: string): Promise<any>;
export declare function connect(uri: string): Promise<any>;

View File

@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare export default class Complex {
export declare default class Complex {
/**
* @param real The real part of the number
* @param im The imaginary part of the number

View File

@ -11,7 +11,7 @@
*/
declare export class Store {
export declare class Store {
/**
* @constructor

View File

@ -7,17 +7,17 @@
/*
Set an item
*/
declare export function set(key: string, val: any): void;
export declare function set(key: string, val: any): void;
/*
Get an item
*/
declare export function get(key: string): any;
export declare function get(key: string): any;
/*
Delete an item
*/
declare export function del(key: string): void;
export declare function del(key: string): void;
/*
Get all items as an object or replace the current config with an object:
@ -26,12 +26,12 @@ declare export function del(key: string): void;
hello: 'world'
};
*/
declare export var all: Object;
export declare var all: Object;
/*
Get the item count
*/
declare export var size: number;
export declare var size: number;
/*
Get the path to the config file. Can be used to show the user where the config file is located or even better open it for them.
*/
declare export var path: string;
export declare var path: string;

View File

@ -16,11 +16,11 @@ export interface SourceMapConverter {
getProperty(key: string): any;
}
declare export function removeComments(src: string): string;
declare export var commentRegex: RegExp;
export declare function removeComments(src: string): string;
export declare var commentRegex: RegExp;
declare export function fromObject(obj: any): SourceMapConverter;
declare export function fromJSON(json: string): SourceMapConverter;
declare export function fromBase64(base64: string): SourceMapConverter;
declare export function fromComment(comment: string): SourceMapConverter;
declare export function fromSource(source: string): SourceMapConverter;
export declare function fromObject(obj: any): SourceMapConverter;
export declare function fromJSON(json: string): SourceMapConverter;
export declare function fromBase64(base64: string): SourceMapConverter;
export declare function fromComment(comment: string): SourceMapConverter;
export declare function fromSource(source: string): SourceMapConverter;

View File

@ -14,7 +14,7 @@ export type PasteCallback = (err: Error, content: string) => void;
* @param {T} content Takes either a string, array, object, or readable stream.
* @return {T} Returns the same value passed in.
*/
declare export function copy<T>(content: T): T;
export declare function copy<T>(content: T): T;
/**
* Asynchronously replaces the current contents of the clip board with text.
@ -23,7 +23,7 @@ declare export function copy<T>(content: T): T;
* @param {CopyCallback} callback will fire when the copy operation is complete.
* @return {T} Returns the same value passed in.
*/
declare export function copy<T>(content: T, callback: CopyCallback): T;
export declare function copy<T>(content: T, callback: CopyCallback): T;
/**
@ -35,11 +35,11 @@ declare export function copy<T>(content: T, callback: CopyCallback): T;
*
* @return {string} Returns the current contents of the system clip board.
*/
declare export function paste(): string;
export declare function paste(): string;
/**
* Asynchronously returns the current contents of the system clip board.
*
* @param {PasteCallback} callback The contents of the system clip board are passed to the callback as the second parameter.
*/
declare export function paste(callback: PasteCallback): void;
export declare function paste(callback: PasteCallback): void;

6
cradle/cradle.d.ts vendored
View File

@ -29,7 +29,7 @@ interface ErrorCallback {
(error: any): void;
}
declare export class Connection {
export declare class Connection {
constructor(uri?: string, port?: number, options?: Options);
database(name: string): Database;
databases(Callback: Callback): void;
@ -60,7 +60,7 @@ export interface ChangesOptions {
since: number;
}
declare export class Database {
export declare class Database {
name: string;
get(id: string, callback: (error: any, document: any) => void): void;
get<T>(id: string, callback: (error: any, document: T) => void): void;
@ -118,4 +118,4 @@ declare export class Database {
replicate(target: string, options: any, callback: Callback): void;
}
declare export function setup(options: Options): void;
export declare function setup(options: Options): void;

4
cron/cron.d.ts vendored
View File

@ -15,10 +15,10 @@ interface CronJob {
start(): void;
stop(): void;
}
declare export var CronJob: CronJobStatic;
export declare var CronJob: CronJobStatic;
interface CronTimeStatic {
new (time: string | Date): CronTime;
}
interface CronTime { }
declare export var CronTime: CronTimeStatic;
export declare var CronTime: CronTimeStatic;

View File

@ -17,7 +17,7 @@ interface SubDomain {
allow: CrossStorageMethod[];
}
declare export class CrossStorageClient {
export declare class CrossStorageClient {
/**
* Constructs a new cross storage client given the url to a hub. By default, an iframe is created
@ -72,7 +72,7 @@ declare export class CrossStorageClient {
close(): void;
}
declare export class CrossStorageHub {
export declare class CrossStorageHub {
/**
* Accepts an array of objects with two keys: origin and allow. The value of origin is expected to be
* a RegExp, and allow, an array of strings. The cross storage hub is then initialized to accept requests

36
cson/cson.d.ts vendored
View File

@ -5,27 +5,27 @@
// Create Strings
declare export function stringify(data: Object, opts?: Object, indent?: any): string;
declare export function createCSONString(data: Object, opts?: Object, next?: any): string;
declare export function createJSONString(data: Object, opts?: Object, next?: any): string;
declare export function createString(data: Object, opts?: Object, next?: any): string;
export declare function stringify(data: Object, opts?: Object, indent?: any): string;
export declare function createCSONString(data: Object, opts?: Object, next?: any): string;
export declare function createJSONString(data: Object, opts?: Object, next?: any): string;
export declare function createString(data: Object, opts?: Object, next?: any): string;
// Parse Strings
declare export function parse(data: string, opts?: Object, next?: any): Object;
declare export function parseCSONString(data: string, opts?: Object, next?: any): Object;
declare export function parseJSONString(data: string, opts?: Object, next?: any): Object;
declare export function parseCSString(data: string, opts?: Object, next?: any): Object;
declare export function parseJSString(data: string, opts?: Object, next?: any): Object;
declare export function parseString(data: string, opts?: Object, next?: any): Object;
export declare function parse(data: string, opts?: Object, next?: any): Object;
export declare function parseCSONString(data: string, opts?: Object, next?: any): Object;
export declare function parseJSONString(data: string, opts?: Object, next?: any): Object;
export declare function parseCSString(data: string, opts?: Object, next?: any): Object;
export declare function parseJSString(data: string, opts?: Object, next?: any): Object;
export declare function parseString(data: string, opts?: Object, next?: any): Object;
// Parse Files
declare export function load(filePath: string, opts?: Object, next?: any): Object;
declare export function parseCSONFile(filePath: string, opts?: Object, next?: any): Object;
declare export function parseJSONFile(filePath: string, opts?: Object, next?: any): Object;
declare export function parseCSFile(filePath: string, opts?: Object, next?: any): Object;
declare export function parseJSFile(filePath: string, opts?: Object, next?: any): Object;
export declare function load(filePath: string, opts?: Object, next?: any): Object;
export declare function parseCSONFile(filePath: string, opts?: Object, next?: any): Object;
export declare function parseJSONFile(filePath: string, opts?: Object, next?: any): Object;
export declare function parseCSFile(filePath: string, opts?: Object, next?: any): Object;
export declare function parseJSFile(filePath: string, opts?: Object, next?: any): Object;
// Require Files
declare export function requireCSFile(filePath: string, opts?: Object, next?: any): Object;
declare export function requireJSFile(filePath: string, opts?: Object, next?: any): Object;
declare export function requireFile(filePath: string, opts?: Object, next?: any): Object;
export declare function requireCSFile(filePath: string, opts?: Object, next?: any): Object;
export declare function requireJSFile(filePath: string, opts?: Object, next?: any): Object;
export declare function requireFile(filePath: string, opts?: Object, next?: any): Object;

View File

@ -6,7 +6,7 @@
type Diff = [number, string];
declare export class diff_match_patch {
export declare class diff_match_patch {
static new(): diff_match_patch;
Diff_Timeout: number;
@ -33,6 +33,6 @@ declare export class diff_match_patch {
diff_fromDelta(text1: string, delta: string): Diff[];
}
declare export var DIFF_DELETE: number;
declare export var DIFF_INSERT: number;
declare export var DIFF_EQUAL: number;
export declare var DIFF_DELETE: number;
export declare var DIFF_INSERT: number;
export declare var DIFF_EQUAL: number;

View File

@ -234,7 +234,7 @@ interface IndexingPolicy {
/** Provides a client-side logical representation of the Azure DocumentDB database account. This client is used to configure and execute requests against the service.
*/
declare export class DocumentClient {
export declare class DocumentClient {
/**
* Constructs a DocumentClient.
* @param urlConnection - The service endpoint to use to create the client.

View File

@ -4,5 +4,5 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare export function get(object: any, path: string): any;
declare export function set(object: any, path: string, value: any): void;
export declare function get(object: any, path: string): any;
export declare function set(object: any, path: string, value: any): void;

View File

@ -19,4 +19,4 @@ interface Options {
verbose?: boolean;
}
declare export function bundle(opts: Options): void;
export declare function bundle(opts: Options): void;

View File

@ -99,7 +99,7 @@ export interface Stream {
* @param name the unique template name.
* @param tmpl the template function.
*/
declare export function register(name: string, tmpl: Template): void;
export declare function register(name: string, tmpl: Template): void;
/**
* compile a template body into a string of JavaScript source code
@ -107,27 +107,27 @@ declare export function register(name: string, tmpl: Template): void;
* @param name the name used to register the compiled template into the internal cache. See render().
* @strip strip whitespaces from the output. Defaults to false.
*/
declare export function compile(source: string, name: string, strip?: boolean): string;
export declare function compile(source: string, name: string, strip?: boolean): string;
/**
* Compiles source directly into a JavaScript function that takes a context and an optional callback (see dust.renderSource). Registers the template under [name] if this argument is supplied.
* @param source the template string
* @param name the template name (optional).
*/
declare export function compileFn(source: string, name?: string): Template;
export declare function compileFn(source: string, name?: string): Template;
/**
* Evaluates a compiled source string.
*/
declare export function loadSource(compiled: string): Template;
export declare function loadSource(compiled: string): Template;
/**
* Renders the named template and calls callback on completion.context may be a plain object or an instance of dust.Context.
* @param name the template name.
* @param context a plain object or an instance of dust.Context.
*/
declare export function render(name: string, context: any, callback: (err: any, out: string) => any);
declare export function render(name: string, context: Context, callback: (err: any, out: string) => any);
export declare function render(name: string, context: any, callback: (err: any, out: string) => any);
export declare function render(name: string, context: Context, callback: (err: any, out: string) => any);
/**
* Compiles and renders source, invoking callback on completion. If no callback is supplied this function returns a Stream object. Use this function when precompilation is not required.
@ -135,28 +135,28 @@ declare export function render(name: string, context: Context, callback: (err: a
* @param context a plain object or an instance of dust.Context.
* @param callback (optional). If supplied the callback will be called passing the result string. If omitted, renderSource() will return a dust.Stream object.
*/
declare export function renderSource(source: string, context: any): Stream;
declare export function renderSource(source: string, context: Context): Stream;
declare export function renderSource(source: string, context: any, callback: (err: any, out: string) => any): void;
declare export function renderSource(source: string, context: Context, callback: (err: any, out: string) => any): void;
export declare function renderSource(source: string, context: any): Stream;
export declare function renderSource(source: string, context: Context): Stream;
export declare function renderSource(source: string, context: any, callback: (err: any, out: string) => any): void;
export declare function renderSource(source: string, context: Context, callback: (err: any, out: string) => any): void;
/**
* Streams the named template. context may be a plain object or an instance of dust.Context. Returns an instance of dust.Stream.
* @param name the template name.
* @param context a plain object or an instance of dust.Context.
*/
declare export function stream(name: string, context: any): Stream;
declare export function stream(name: string, context: Context): Stream;
export declare function stream(name: string, context: any): Stream;
export declare function stream(name: string, context: Context): Stream;
/**
* Manufactures a dust.Context instance with its global object set to object.
* @param global a plain object or an instance of dust.Context.
*/
declare export function makeBase(global: any): Context;
declare export function makeBase(global: Context): Context;
export declare function makeBase(global: any): Context;
export declare function makeBase(global: Context): Context;
declare export function escapeHtml(html: string): string;
declare export function escapeJs(js: string): string;
export declare function escapeHtml(html: string): string;
export declare function escapeJs(js: string): string;
declare var helpers: {
[key: string]: (chk: Chunk, ctx: Context, bodies?: any, params?: any) => any;

View File

@ -16,7 +16,7 @@ import request = require('request');
import bunyan = require('bunyan');
import express = require('express');
declare export function create(opts: {
export declare function create(opts: {
name: any;
config: {
url: string;

View File

@ -25,4 +25,4 @@ interface getAgent {
(...args: any[]): Agent
}
declare export function getAgentFactory(app: express.Application, transform?: Function): getAgent;
export declare function getAgentFactory(app: express.Application, transform?: Function): getAgent;

View File

@ -10,6 +10,6 @@
import express = require('express');
declare export function isLoggedIn(role?: string): express.RequestHandler;
declare export function isLoggedOut(): express.RequestHandler;
declare export function hasRole(role: string): express.RequestHandler;
export declare function isLoggedIn(role?: string): express.RequestHandler;
export declare function isLoggedOut(): express.RequestHandler;
export declare function hasRole(role: string): express.RequestHandler;

View File

@ -4,9 +4,9 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare export function get(key: string, callback: (error: any, data: Object) => void): void;
declare export function set(key: string, json: Object, callback: (error: any) => void): void;
declare export function has(key: string, callback: (error: any, hasKey: boolean) => void): void;
declare export function keys(callback: (error: any, keys: string[]) => void): void;
declare export function remove(key: string, callback: (error: any) => void): void;
declare export function clear(callback: (error: any) => void): void;
export declare function get(key: string, callback: (error: any, data: Object) => void): void;
export declare function set(key: string, json: Object, callback: (error: any) => void): void;
export declare function has(key: string, callback: (error: any, hasKey: boolean) => void): void;
export declare function keys(callback: (error: any, keys: string[]) => void): void;
export declare function remove(key: string, callback: (error: any) => void): void;
export declare function clear(callback: (error: any) => void): void;

View File

@ -4,4 +4,4 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare export function validate(email: String): boolean;
export declare function validate(email: String): boolean;

View File

@ -20,28 +20,28 @@ interface ConvertOptions {
bom?: boolean | string;
}
declare export function detect(data: RawType, encodings?: Encoding | Encoding[]): Encoding;
declare export function convert(data: RawType, to: Encoding, from?: Encoding): number[];
declare export function convert(data: RawType, options: ConvertOptions): string | ArrayBuffer | number[];
declare export function urlEncode(data: number[] | Uint8Array): string;
declare export function urlDecode(data: string): number[];
declare export function base64Encode(data: number[] | Uint8Array): string;
declare export function base64Decode(data: string): number[];
declare export function codeToString(data: number[] | Uint8Array): string;
declare export function stringToCode(data: string): number[];
declare export function toHankakuCase(data: number[]): number[];
declare export function toHankakuCase(data: string): string;
declare export function toZenkakuCase(data: number[]): number[];
declare export function toZenkakuCase(data: string): string;
declare export function toHiraganaCase(data: number[]): number[];
declare export function toHiraganaCase(data: string): string;
declare export function toKatakanaCase(data: number[]): number[];
declare export function toKatakanaCase(data: string): string;
declare export function toHankanaCase(data: number[]): number[];
declare export function toHankanaCase(data: string): string;
declare export function toZenkanaCase(data: number[]): number[];
declare export function toZenkanaCase(data: string): string;
declare export function toHankakuSpace(data: number[]): number[];
declare export function toHankakuSpace(data: string): string;
declare export function toZenkakuSpace(data: number[]): number[];
declare export function toZenkakuSpace(data: string): string;
export declare function detect(data: RawType, encodings?: Encoding | Encoding[]): Encoding;
export declare function convert(data: RawType, to: Encoding, from?: Encoding): number[];
export declare function convert(data: RawType, options: ConvertOptions): string | ArrayBuffer | number[];
export declare function urlEncode(data: number[] | Uint8Array): string;
export declare function urlDecode(data: string): number[];
export declare function base64Encode(data: number[] | Uint8Array): string;
export declare function base64Decode(data: string): number[];
export declare function codeToString(data: number[] | Uint8Array): string;
export declare function stringToCode(data: string): number[];
export declare function toHankakuCase(data: number[]): number[];
export declare function toHankakuCase(data: string): string;
export declare function toZenkakuCase(data: number[]): number[];
export declare function toZenkakuCase(data: string): string;
export declare function toHiraganaCase(data: number[]): number[];
export declare function toHiraganaCase(data: string): string;
export declare function toKatakanaCase(data: number[]): number[];
export declare function toKatakanaCase(data: string): string;
export declare function toHankanaCase(data: number[]): number[];
export declare function toHankanaCase(data: string): string;
export declare function toZenkanaCase(data: number[]): number[];
export declare function toZenkanaCase(data: string): string;
export declare function toHankakuSpace(data: number[]): number[];
export declare function toHankakuSpace(data: string): string;
export declare function toZenkakuSpace(data: number[]): number[];
export declare function toZenkakuSpace(data: string): string;

12
enzyme/enzyme.d.ts vendored
View File

@ -9,7 +9,7 @@
import {ReactElement, Component, StatelessComponent, ComponentClass, HTMLAttributes} from "react";
declare export class ElementClass extends Component<any, any> {
export declare class ElementClass extends Component<any, any> {
}
/**
@ -389,22 +389,22 @@ export interface CheerioWrapper<P, S> extends CommonWrapper<P, S> {
* @param node
* @param [options]
*/
declare export function shallow<P, S>(node: ReactElement<P>, options?: any): ShallowWrapper<P, S>;
export declare function shallow<P, S>(node: ReactElement<P>, options?: any): ShallowWrapper<P, S>;
/**
* Mounts and renders a react component into the document and provides a testing wrapper around it.
* @param node
* @param [options]
*/
declare export function mount<P, S>(node: ReactElement<P>, options?: any): ReactWrapper<P, S>;
export declare function mount<P, S>(node: ReactElement<P>, options?: any): ReactWrapper<P, S>;
/**
* Render react components to static HTML and analyze the resulting HTML structure.
* @param node
* @param [options]
*/
declare export function render<P, S>(node: ReactElement<P>, options?: any): CheerioWrapper<P, S>;
export declare function render<P, S>(node: ReactElement<P>, options?: any): CheerioWrapper<P, S>;
declare export function describeWithDOM(description: String, fn: Function): void;
export declare function describeWithDOM(description: String, fn: Function): void;
declare export function spyLifecycle(component: typeof Component): void;
export declare function spyLifecycle(component: typeof Component): void;

View File

@ -13,27 +13,27 @@ import * as stream from 'stream';
*
* @param asyncFunction
*/
declare export function map(asyncFunction: Function): stream.Stream;
export declare function map(asyncFunction: Function): stream.Stream;
/**
* Same as map, but the callback is called synchronously. Based on es.through
* @param syncFunction
*/
declare export function mapSync(syncFunction: Function): stream.Stream;
export declare function mapSync(syncFunction: Function): stream.Stream;
/**
* Break up a stream and reassemble it so that each line is a chunk. matcher may be a String, or a RegExp
*
* @param matcher
*/
declare export function split(matcher: string | RegExp): stream.Stream;
export declare function split(matcher: string | RegExp): stream.Stream;
/**
* Create a through stream that emits separator between each chunk, just like Array#join
*
* @param separator
*/
declare export function join(separator: string): stream.Stream;
export declare function join(separator: string): stream.Stream;
/**
* Merges streams into one and returns it. Incoming data will be emitted as soon it comes into - no ordering will be applied
@ -42,7 +42,7 @@ declare export function join(separator: string): stream.Stream;
*
* @param stream
*/
declare export function concat(...stream: stream.Stream[]): stream.Stream;
export declare function concat(...stream: stream.Stream[]): stream.Stream;
/**
* Merges streams into one and returns it. Incoming data will be emitted as soon it comes into - no ordering will be applied
@ -51,7 +51,7 @@ declare export function concat(...stream: stream.Stream[]): stream.Stream;
*
* @param stream
*/
declare export function concat(streamArray: stream.Stream[]): stream.Stream;
export declare function concat(streamArray: stream.Stream[]): stream.Stream;
/**
* Merges streams into one and returns it. Incoming data will be emitted as soon it comes into - no ordering will be applied
@ -60,7 +60,7 @@ declare export function concat(streamArray: stream.Stream[]): stream.Stream;
*
* @param stream
*/
declare export function merge(...stream: stream.Stream[]): stream.Stream;
export declare function merge(...stream: stream.Stream[]): stream.Stream;
/**
* Merges streams into one and returns it. Incoming data will be emitted as soon it comes into - no ordering will be applied
@ -69,52 +69,52 @@ declare export function merge(...stream: stream.Stream[]): stream.Stream;
*
* @param stream
*/
declare export function merge(streamArray: stream.Stream[]): stream.Stream;
export declare function merge(streamArray: stream.Stream[]): stream.Stream;
/**
* Replace all occurrences of from with to
* @param from
* @param to
*/
declare export function replace(from: string | RegExp, to: string | RegExp): stream.Stream;
export declare function replace(from: string | RegExp, to: string | RegExp): stream.Stream;
/**
* Convenience function for parsing JSON chunks. For newline separated JSON, use with es.split.
* By default it logs parsing errors by console.error; for another behaviour, transforms created by es.parse({error: true})
* will emit error events for exceptions thrown from JSON.parse, unmodified.
*/
declare export function parse(): any;
export declare function parse(): any;
/**
* convert javascript objects into lines of text. The text will have whitespace escaped and have a \n appended, so it will be compatible with es.parse
*/
declare export function stringify(): stream.Stream;
export declare function stringify(): stream.Stream;
/**
* create a readable stream (that respects pause) from an async function.
*
* @param asyncFunction
*/
declare export function readable(asyncFunction: Function): stream.Stream;
export declare function readable(asyncFunction: Function): stream.Stream;
/**
* Create a readable stream from an Array.
*
* @param array
*/
declare export function readArray(array: any[]): stream.Stream;
export declare function readArray(array: any[]): stream.Stream;
/**
* create a writeable stream from a callback
*
* @param callback
*/
declare export function writeArray(callback: Function): stream.Stream;
export declare function writeArray(callback: Function): stream.Stream;
/**
* A stream that buffers all chunks when paused
*/
declare export function pause(): stream.Stream | void;
export declare function pause(): stream.Stream | void;
/**
* Takes a writable stream and a readable stream and makes them appear as a readable writable stream.
@ -122,14 +122,14 @@ declare export function pause(): stream.Stream | void;
* @param writeStream
* @param readStream
*/
declare export function duplex(writeStream: stream.Writable, readStream: stream.Readable): stream.Stream;
export declare function duplex(writeStream: stream.Writable, readStream: stream.Readable): stream.Stream;
/**
* Create a through stream from a child process
*
* @param child_process
*/
declare export function child(child_process: any): stream.Stream;
export declare function child(child_process: any): stream.Stream;
/**
* waits for stream to emit 'end'. joins chunks of a stream into a single string or buffer.
@ -137,4 +137,4 @@ declare export function child(child_process: any): stream.Stream;
*
* @param callback
*/
declare export function wait(callback: Function): stream.Stream;
export declare function wait(callback: Function): stream.Stream;

14
expect/expect.d.ts vendored
View File

@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare export class Expectation {
export declare class Expectation {
constructor(actual: any);
toExist(message?: string): Expectation;
toBeTruthy(message?: string): Expectation;
@ -60,11 +60,11 @@ export interface Spy {
declare function expect(actual: any): Expectation;
declare export function createSpy(fn?: Function, restore?: Function): Spy;
declare export function spyOn(object: Object, methodName: string): Spy;
declare export function isSpy(object: any): Boolean;
declare export function restoreSpies(): void;
declare export function assert(condition: any, messageFormat: string, ...extraArgs: Array<any>): void;
declare export function extend(extension: Extension): void;
export declare function createSpy(fn?: Function, restore?: Function): Spy;
export declare function spyOn(object: Object, methodName: string): Spy;
export declare function isSpy(object: any): Boolean;
export declare function restoreSpies(): void;
export declare function assert(condition: any, messageFormat: string, ...extraArgs: Array<any>): void;
export declare function extend(extension: Extension): void;
export default expect;

View File

@ -102,7 +102,7 @@ interface MemcachedStoreOptions {
* @summary A memcached store adapter.
* @class
*/
declare export default class MemcachedStore {
export declare default class MemcachedStore {
/**
* @summary Constructor.
* @constructor

View File

@ -48,4 +48,4 @@ type Middleware = (request: Request, response: Response) => void;
* Middleware for express; takes an options object or function as input to
* configure behavior, and returns an express middleware.
*/
declare export default function graphqlHTTP(options: Options): Middleware;
export declare default function graphqlHTTP(options: Options): Middleware;

View File

@ -32,13 +32,13 @@
import express = require('express');
declare export function initialize(args: Args): InitializedApi;
export declare function initialize(args: Args): InitializedApi;
export interface InitializedApi {
apiDoc: OpenApi.ApiDefinition;
}
declare export module OpenApi {
export declare module OpenApi {
export interface ApiDefinition {
swagger: string
info: InfoObject

4
eyes/eyes.d.ts vendored
View File

@ -8,8 +8,8 @@
import stream = require('stream');
declare export function inspector(options?: EyesOptions): InspectorFunction;
declare export function inspect(thing: any, label?: string): void;
export declare function inspector(options?: EyesOptions): InspectorFunction;
export declare function inspect(thing: any, label?: string): void;
export interface InspectorFunction {
(thing: any, label?: string): string;

View File

@ -67,7 +67,7 @@ export interface Bucket {
* Additionally, some methods can be calculated quickly as data is inserted, thereby reducing the number of loops required to run through the data during processing.
* Fast stats maintains a running cache of several summary values as data is inserted making final calculation very fast. It trades off a small amount of additional memory usage for a large reduction in execution time.
*/
declare export class Stats {
export declare class Stats {
constructor(opts?: StatsOpts);
/**

View File

@ -5,7 +5,7 @@
declare export class EventSubscription {
export declare class EventSubscription {
listener: Function;
context: any;
@ -17,7 +17,7 @@ declare export class EventSubscription {
}
declare export class EventEmitter {
export declare class EventEmitter {
constructor();

4
field/field.d.ts vendored
View File

@ -4,5 +4,5 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare export function get(topObj: any, fields: string): any;
declare export function set(topObj: any, fields: string, value: any): any;
export declare function get(topObj: any, fields: string): any;
export declare function set(topObj: any, fields: string, value: any): any;

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