Merge pull request #1611 from strongloop/datasource-event-type

Add EventEmitter type information to DataSource type
This commit is contained in:
Kyusung Shim 2018-07-25 16:15:07 -04:00 committed by GitHub
commit 2b8b6719a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ import {
ModelDefinition,
PropertyDefinition,
} from './model';
import {EventEmitter} from 'events';
/**
* LoopBack models can manipulate data via the DataSource object.
@ -72,7 +73,7 @@ import {
* - new DataSource(connectorModule, {name: 'myDataSource})
* - new DataSource(connectorModule)
*/
export declare class DataSource {
export declare class DataSource extends EventEmitter {
name: string;
settings: Options;