Skip to content

Commit

Permalink
Add EventEmitter type info to DataSource type
Browse files Browse the repository at this point in the history
  • Loading branch information
shimks committed Jul 25, 2018
1 parent 4d14c14 commit 1e59918
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/datasource.d.ts
Expand Up @@ -11,6 +11,7 @@ import {
ModelDefinition,
PropertyDefinition,
} from './model';
import {EventEmitter} from 'events';

/**
* LoopBack models can manipulate data via the DataSource object.
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 1e59918

Please sign in to comment.