From e1b871ae0f321e414a495ce102d40f018df2b7c3 Mon Sep 17 00:00:00 2001 From: biniam Date: Mon, 5 Nov 2018 01:01:55 -0500 Subject: [PATCH] fix: update typescript declarations --- types/connector.d.ts | 1 + types/persisted-model.d.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/types/connector.d.ts b/types/connector.d.ts index 8a708b181..f834d7bb4 100644 --- a/types/connector.d.ts +++ b/types/connector.d.ts @@ -15,6 +15,7 @@ export interface Connector { disconnect(callback?: Callback): PromiseOrVoid; // Disconnect from the underlying system ping(callback?: Callback): PromiseOrVoid; // Ping the underlying system execute?(...args: any[]): Promise; + [property: string]: any; // Other properties that vary by connectors } /** diff --git a/types/persisted-model.d.ts b/types/persisted-model.d.ts index cb99617a1..c908e7415 100644 --- a/types/persisted-model.d.ts +++ b/types/persisted-model.d.ts @@ -154,7 +154,7 @@ export declare class PersistedModel extends ModelBase { data: PersistedData, options?: Options, callback?: Callback, - ): PromiseOrVoid; + ): PromiseOrVoid<[PersistedModel, boolean]>; /** * Check whether a model instance exists in database.