Skip to content

Commit

Permalink
Fixed references to Bluebird 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lhecker committed Aug 11, 2016
1 parent 9745184 commit 568ec43
Show file tree
Hide file tree
Showing 30 changed files with 1,572 additions and 1,572 deletions.
2 changes: 1 addition & 1 deletion acl/acl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Definitions by: Qubo <https://github.com/tkQubo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference path="../bluebird/bluebird.d.ts" />
/// <reference path="../bluebird/bluebird-2.0.d.ts" />
/// <reference path='../node/node.d.ts'/>

/// <reference path='../redis/redis.d.ts'/>
Expand Down
4 changes: 2 additions & 2 deletions anydb-sql-migrations/anydb-sql-migrations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Definitions by: Gorgi Kosev <https://github.com/spion>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference path="../bluebird/bluebird.d.ts" />
/// <reference path="../bluebird/bluebird-2.0.d.ts" />
/// <reference path="../anydb-sql/anydb-sql.d.ts" />

declare module "anydb-sql-migrations" {
Expand Down Expand Up @@ -31,4 +31,4 @@ declare module "anydb-sql-migrations" {
items: MigrationTask[];
}) => any) => Promise<any>;
};
}
}
2 changes: 1 addition & 1 deletion asana/asana.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Definitions by: Qubo <https://github.com/tkqubo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference path="../bluebird/bluebird.d.ts" />
/// <reference path="../bluebird/bluebird-2.0.d.ts" />
/// <reference path="../request/request.d.ts" />

declare module "asana" {
Expand Down
2 changes: 1 addition & 1 deletion blue-tape/blue-tape-tests.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// <reference path="../node/node.d.ts" />
/// <reference path="../bluebird/bluebird.d.ts" />
/// <reference path="../bluebird/bluebird-2.0.d.ts" />
/// <reference path="blue-tape.d.ts" />

import tape = require('blue-tape');
Expand Down
4 changes: 2 additions & 2 deletions bluebird-retry/bluebird-retry-tests.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// <reference path="bluebird-retry.d.ts" />
/// <reference path="../bluebird/bluebird.d.ts" />
/// <reference path="../bluebird/bluebird-2.0.d.ts" />
import Promise = require('bluebird');
import retry = require('bluebird-retry');

Expand Down Expand Up @@ -32,4 +32,4 @@ var options:retry.Options = {
interval: 500
};

retry(logFail, options);
retry(logFail, options);
2 changes: 1 addition & 1 deletion bluebird-retry/bluebird-retry.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Definitions by: Pascal Vomhoff <https://github.com/pvomhoff>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference path="../bluebird/bluebird.d.ts" />
/// <reference path="../bluebird/bluebird-2.0.d.ts" />
declare module "bluebird-retry" {
import Promise = require('bluebird');

Expand Down
2 changes: 1 addition & 1 deletion bookshelf/bookshelf.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Definitions by: Andrew Schurman <http://github.com/arcticwaters>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference path="../bluebird/bluebird.d.ts" />
/// <reference path="../bluebird/bluebird-2.0.d.ts" />
/// <reference path='../lodash/lodash-3.10.d.ts' />
/// <reference path="../knex/knex.d.ts" />
/// <reference path="../create-error/create-error.d.ts" />
Expand Down
2 changes: 1 addition & 1 deletion consolidate/consolidate.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Imported from: https://github.com/soywiz/typescript-node-definitions/consolidate.d.ts

/// <reference path="../node/node.d.ts" />
/// <reference path="../bluebird/bluebird.d.ts" />
/// <reference path="../bluebird/bluebird-2.0.d.ts" />

declare module "consolidate" {
var cons: Consolidate;
Expand Down
2 changes: 1 addition & 1 deletion fs-extra-promise/fs-extra-promise.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Imported from: https://github.com/soywiz/typescript-node-definitions/fs-extra.d.ts via TSD fs-extra definition

///<reference path="../node/node.d.ts"/>
///<reference path="../bluebird/bluebird.d.ts"/>
///<reference path="../bluebird/bluebird-2.0.d.ts"/>

declare module "fs-extra-promise" {
import stream = require("stream");
Expand Down
2 changes: 1 addition & 1 deletion inline-css/inline-css.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Definitions by: Philip Spain <https://github.com/philipisapain>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference path="../bluebird/bluebird.d.ts" />
/// <reference path="../bluebird/bluebird-2.0.d.ts" />

declare module 'inline-css' {
import Promise = require('bluebird');
Expand Down
66 changes: 33 additions & 33 deletions inversify/inversify.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Definitions by: inversify <https://github.com/inversify>
// Definitions: https://github.com/borisyankov/DefinitelyTyped

/// <reference path="../bluebird/bluebird.d.ts" />
/// <reference path="../bluebird/bluebird-2.0.d.ts" />

interface Symbol {
toString(): string;
Expand Down Expand Up @@ -31,9 +31,9 @@ declare namespace inversify {
export interface Newable<T> {
new(...args: any[]): T;
}

export type ServiceIdentifier<T> = (string|Symbol|Newable<T>);

export interface Binding<T> extends Clonable<Binding<T>> {
guid: string;
moduleId: string;
Expand All @@ -49,74 +49,74 @@ declare namespace inversify {
scope: number; // BindingScope
type: number; // BindingType
}

export interface Factory<T> extends Function {
(...args: any[]): (((...args: any[]) => T)|T);
}

export interface FactoryCreator<T> extends Function {
(context: Context): Factory<T>;
}

export interface Provider<T> extends Function {
(): Promise<T>;
}

export interface ProviderCreator<T> extends Function {
(context: Context): Provider<T>;
}

export interface PlanAndResolve<T> {
(args: PlanAndResolveArgs): T[];
}

export interface PlanAndResolveArgs {
multiInject: boolean;
serviceIdentifier: ServiceIdentifier<any>;
target: Target;
contextInterceptor: (contexts: Context) => Context;
}

export interface Middleware extends Function {
(next: PlanAndResolve<any>): PlanAndResolve<any>;
}

export interface Context {
guid: string;
kernel: Kernel;
plan: Plan;
addPlan(plan: Plan): void;
}

export interface ReflectResult {
[key: string]: Metadata[];
}

export interface Metadata {
key: string;
value: any;
}

export interface Plan {
parentContext: Context;
rootRequest: Request;
}

export interface Planner {
createContext(kernel: Kernel): Context;
createPlan(parentContext: Context, binding: Binding<any>, target: Target): Plan;
getBindings<T>(kernel: Kernel, serviceIdentifier: ServiceIdentifier<T>): Binding<T>[];
getActiveBindings(parentRequest: Request, target: Target): Binding<any>[];
}

export interface QueryableString {
startsWith(searchString: string): boolean;
endsWith(searchString: string): boolean;
contains(searchString: string): boolean;
equals(compareString: string): boolean;
value(): string;
}

export interface Request {
guid: string;
serviceIdentifier: ServiceIdentifier<any>;
Expand All @@ -131,7 +131,7 @@ declare namespace inversify {
target: Target
): Request;
}

export interface Target {
guid: string;
serviceIdentifier: ServiceIdentifier<any>;
Expand All @@ -145,11 +145,11 @@ declare namespace inversify {
matchesNamedTag(name: string): boolean;
matchesTag(key: string): (value: any) => boolean;
}

export interface Resolver {
resolve<T>(context: Context): T;
}

export interface Kernel {
guid: string;
bind<T>(serviceIdentifier: ServiceIdentifier<T>): BindingToSyntax<T>;
Expand All @@ -167,48 +167,48 @@ declare namespace inversify {
snapshot(): void;
restore(): void;
}

export interface Bind extends Function {
<T>(serviceIdentifier: ServiceIdentifier<T>): BindingToSyntax<T>;
}

export interface KernelModule {
guid: string;
registry: (bind: Bind) => void;
}

export interface KernelSnapshot {
bindings: Lookup<Binding<any>>;
middleware: PlanAndResolve<any>;
}

export interface Clonable<T> {
clone(): T;
}

export interface Lookup<T> extends Clonable<Lookup<T>> {
add(serviceIdentifier: ServiceIdentifier<any>, value: T): void;
get(serviceIdentifier: ServiceIdentifier<any>): Array<T>;
remove(serviceIdentifier: ServiceIdentifier<any>): void;
removeByModuleId(moduleId: string): void;
hasKey(serviceIdentifier: ServiceIdentifier<any>): boolean;
}

export interface KeyValuePair<T> {
serviceIdentifier: ServiceIdentifier<any>;
value: Array<T>;
}

export interface BindingInSyntax<T> {
inSingletonScope(): BindingWhenOnSyntax<T>;
}

export interface BindingInWhenOnSyntax<T> extends BindingInSyntax<T>, BindingWhenOnSyntax<T> {}

export interface BindingOnSyntax<T> {
onActivation(fn: (context: Context, injectable: T) => T): BindingWhenSyntax<T>;
}

export interface BindingToSyntax<T> {
to(constructor: { new(...args: any[]): T; }): BindingInWhenOnSyntax<T>;
toConstantValue(value: T): BindingWhenOnSyntax<T>;
Expand All @@ -219,9 +219,9 @@ declare namespace inversify {
toAutoFactory<T2>(serviceIdentifier: ServiceIdentifier<T2>): BindingWhenOnSyntax<T>;
toProvider<T2>(provider: ProviderCreator<T2>): BindingWhenOnSyntax<T>;
}

export interface BindingWhenOnSyntax<T> extends BindingWhenSyntax<T>, BindingOnSyntax<T> {}

export interface BindingWhenSyntax<T> {
when(constraint: (request: Request) => boolean): BindingOnSyntax<T>;
whenTargetNamed(name: string): BindingOnSyntax<T>;
Expand All @@ -238,7 +238,7 @@ declare namespace inversify {
whenAnyAncestorMatches(constraint: (request: Request) => boolean): BindingOnSyntax<T>;
whenNoAncestorMatches(constraint: (request: Request) => boolean): BindingOnSyntax<T>;
}

}

export var Kernel: interfaces.KernelConstructor;
Expand Down
2 changes: 1 addition & 1 deletion java/java-tests.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path="java.d.ts"/>
///<reference path="../bluebird/bluebird.d.ts"/>
///<reference path="../bluebird/bluebird-2.0.d.ts"/>

import java = require('java');
import BluePromise = require('bluebird');
Expand Down
2 changes: 1 addition & 1 deletion karma/karma.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference path="../bluebird/bluebird.d.ts" />
/// <reference path="../bluebird/bluebird-2.0.d.ts" />
/// <reference path="../node/node.d.ts" />
/// <reference path="../log4js/log4js.d.ts" />

Expand Down
2 changes: 1 addition & 1 deletion knex/knex.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Definitions by: Qubo <https://github.com/tkQubo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference path="../bluebird/bluebird.d.ts" />
/// <reference path="../bluebird/bluebird-2.0.d.ts" />
/// <reference path="../node/node.d.ts" />

declare module "knex" {
Expand Down
2 changes: 1 addition & 1 deletion libxmljs/libxmljs-tests.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference path="..\node\node.d.ts" />
/// <reference path="../node/node.d.ts" />
/// <reference path="libxmljs.d.ts" />

var libxmljs = require("libxmljs");
Expand Down
2 changes: 1 addition & 1 deletion mz/mz.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

// Modified from the node.js definitions https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/node/node.d.ts

/// <reference path="../bluebird/bluebird.d.ts" />
/// <reference path="../bluebird/bluebird-2.0.d.ts" />
/// <reference path="../node/node.d.ts" />


Expand Down
Loading

0 comments on commit 568ec43

Please sign in to comment.