Merge pull request #1839 from strongloop/fix-types/datasource-migrate
types: allow no `models` argument for automigrate
This commit is contained in:
commit
259c0b9cc6
|
@ -140,13 +140,13 @@ export declare class DataSource extends EventEmitter {
|
|||
*/
|
||||
attach(modelClass: ModelBaseClass): ModelBaseClass;
|
||||
|
||||
automigrate(models: string | string[]): Promise<void>;
|
||||
automigrate(models?: string | string[]): Promise<void>;
|
||||
// legacy callback style
|
||||
automigrate(models: string | string[], callback: Callback): void;
|
||||
automigrate(models: string | string[] | undefined, callback: Callback): void;
|
||||
|
||||
autoupdate(models: string | string[]): Promise<void>;
|
||||
autoupdate(models?: string | string[]): Promise<void>;
|
||||
// legacy callback style
|
||||
autoupdate(models: string | string[], callback: Callback): void;
|
||||
autoupdate(models: string | string[] | undefined, callback: Callback): void;
|
||||
|
||||
discoverModelDefinitions(
|
||||
options?: Options,
|
||||
|
|
Loading…
Reference in New Issue