fix: update typescript declarations
This commit is contained in:
parent
4d288813e2
commit
4b705b127c
|
@ -15,6 +15,7 @@ export interface Connector {
|
||||||
disconnect(callback?: Callback): PromiseOrVoid; // Disconnect from the underlying system
|
disconnect(callback?: Callback): PromiseOrVoid; // Disconnect from the underlying system
|
||||||
ping(callback?: Callback): PromiseOrVoid; // Ping the underlying system
|
ping(callback?: Callback): PromiseOrVoid; // Ping the underlying system
|
||||||
execute?(...args: any[]): Promise<any>;
|
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,
|
data: PersistedData,
|
||||||
options?: Options,
|
options?: Options,
|
||||||
callback?: Callback<PersistedModel>,
|
callback?: Callback<PersistedModel>,
|
||||||
): PromiseOrVoid<PersistedModel>;
|
): PromiseOrVoid<[PersistedModel, boolean]>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check whether a model instance exists in database.
|
* Check whether a model instance exists in database.
|
||||||
|
|
Loading…
Reference in New Issue