From 1e59918c11fb5bef34f5b1a7ed43769138379bdf Mon Sep 17 00:00:00 2001 From: shimks Date: Tue, 24 Jul 2018 16:48:17 -0400 Subject: [PATCH] Add EventEmitter type info to DataSource type --- types/datasource.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/datasource.d.ts b/types/datasource.d.ts index 117cbc97..6f311a13 100644 --- a/types/datasource.d.ts +++ b/types/datasource.d.ts @@ -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;