Merge pull request #1611 from strongloop/datasource-event-type
Add EventEmitter type information to DataSource type
This commit is contained in:
commit
2b8b6719a7
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue