Merge pull request #1654 from strongloop/fix/types
fix: update typescript declarations
This commit is contained in:
commit
c7d23d18d0
|
@ -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<any>;
|
||||
[property: string]: any; // Other properties that vary by connectors
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -154,7 +154,7 @@ export declare class PersistedModel extends ModelBase {
|
|||
data: PersistedData,
|
||||
options?: Options,
|
||||
callback?: Callback<PersistedModel>,
|
||||
): PromiseOrVoid<PersistedModel>;
|
||||
): PromiseOrVoid<[PersistedModel, boolean]>;
|
||||
|
||||
/**
|
||||
* Check whether a model instance exists in database.
|
||||
|
|
Loading…
Reference in New Issue