types: add `DataSource.definitions` property

This commit is contained in:
khlilturki97@gmail.com 2020-07-18 19:54:32 +01:00 committed by Miroslav Bajtoš
parent 8d1690e9b2
commit b1cd7eff5c
No known key found for this signature in database
GPG Key ID: 6F2304BA9361C7E3
1 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,7 @@ import {
ModelBaseClass,
ModelBuilder,
ModelDefinition,
PropertyDefinition,
PropertyDefinition
} from './model';
import {EventEmitter} from 'events';
import {IsolationLevel, Transaction} from './transaction-mixin';
@ -84,6 +84,8 @@ export declare class DataSource extends EventEmitter {
connector?: Connector;
definitions: {[modelName: string]: ModelDefinition};
DataAccessObject: AnyObject & {prototype: AnyObject};
constructor(name: string, settings?: Options, modelBuilder?: ModelBuilder);