Merge pull request #1839 from strongloop/fix-types/datasource-migrate

types: allow no `models` argument for automigrate
This commit is contained in:
Miroslav Bajtoš 2020-05-12 16:43:34 +02:00 committed by GitHub
commit 259c0b9cc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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,