Add EventEmitter type info to DataSource type

This commit is contained in:
shimks 2018-07-24 16:48:17 -04:00
parent 4d14c1473f
commit 1e59918c11
1 changed files with 2 additions and 1 deletions

View File

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