From 516443cc7029b2bda9de11f08122925df3737c90 Mon Sep 17 00:00:00 2001 From: vcastro Date: Thu, 6 Jun 2013 10:32:11 +0100 Subject: [PATCH 1/3] Correction to Q.resolve signature --- q/Q.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/q/Q.d.ts b/q/Q.d.ts index fd81031fe1..044f9752fc 100644 --- a/q/Q.d.ts +++ b/q/Q.d.ts @@ -42,7 +42,7 @@ interface QStatic { fcall(method: Function, ...args: any[]): Qpromise; all(promises: Qpromise[]): Qpromise; allResolved(promises: Qpromise[]): Qpromise; - resolve(object?:Qpromise); + resolve(object:any):Qpromise; spread(onFulfilled: Function, onRejected: Function): Qpromise; timeout(ms: number): Qpromise; delay(ms: number): Qpromise; From 99e020bff32db617ecde4c12dba1c45c6ea1c0b4 Mon Sep 17 00:00:00 2001 From: vcastro Date: Thu, 6 Jun 2013 10:50:23 +0100 Subject: [PATCH 2/3] Updated QStatic.when to better reflect the actual signature of the method. --- q/Q.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/q/Q.d.ts b/q/Q.d.ts index 044f9752fc..15f3fdea72 100644 --- a/q/Q.d.ts +++ b/q/Q.d.ts @@ -36,7 +36,7 @@ interface Qpromise { } interface QStatic { - when(value: any, onFulfilled: Function, onRejected?: Function): Qpromise; + when(value: any, onFulfilled?: Function, onRejected?: Function): Qpromise; try(method: Function, ...args: any[]): Qpromise; fbind(method: Function, ...args: any[]): Qpromise; fcall(method: Function, ...args: any[]): Qpromise; From 3e2b27c9d0de1005ab1270269dc56b22e957a37d Mon Sep 17 00:00:00 2001 From: vcastro Date: Thu, 6 Jun 2013 18:00:10 +0100 Subject: [PATCH 3/3] Added setEntityTypeForResourceName method to the MetadataStore definition --- breeze/breeze.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/breeze/breeze.d.ts b/breeze/breeze.d.ts index e1572069fa..14721ecc07 100644 --- a/breeze/breeze.d.ts +++ b/breeze/breeze.d.ts @@ -586,7 +586,8 @@ declare module breeze { isEmpty(): bool; registerEntityTypeCtor(entityTypeName: string, entityCtor: Function, initializationFn?: (entity: Entity) =>void ): void; trackUnmappedType(entityCtor: Function, interceptor?: Function); - } + setEntityTypeForResourceName(resourceName: string, entityTypeOrName: string): void; + } interface MetadataStoreOptions { namingConvention?: NamingConvention;