diff options
author | Idan Amit <ia096e@intl.att.com> | 2018-08-26 16:05:19 +0300 |
---|---|---|
committer | Idan Amit <ia096e@intl.att.com> | 2018-08-26 16:05:19 +0300 |
commit | dc5da2d5d61bd20051ee8b5bffa23773ee7d44f3 (patch) | |
tree | 76d8c6ce475aea7c4bd8cef9ffc1be955baeec5c /lib/plugin-pubsub.ts | |
parent | 138f7d22e0b8a143d45f23f7aecac0380318cafd (diff) |
Add tslint report to sdc-pubsub sonar
Added tslint report to sdc-pubsub sonar
Fixed all issues raised from tslint report
Change-Id: Iac8174b4a72f190c4b607c2d7ee55f7db457b4b5
Issue-ID: SDC-1668
Signed-off-by: Idan Amit <ia096e@intl.att.com>
Diffstat (limited to 'lib/plugin-pubsub.ts')
-rw-r--r-- | lib/plugin-pubsub.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/plugin-pubsub.ts b/lib/plugin-pubsub.ts index 3a34de9..ec4afb2 100644 --- a/lib/plugin-pubsub.ts +++ b/lib/plugin-pubsub.ts @@ -1,16 +1,16 @@ -import {BasePubSub} from "./base-pubsub"; +import { BasePubSub } from './base-pubsub'; declare const window: Window; export class PluginPubSub extends BasePubSub { - constructor(pluginId: string, parentUrl: string, eventsToWait?: Array<string>) { + constructor(pluginId: string, parentUrl: string, eventsToWait?: string[]) { super(pluginId); this.register('sdc-hub', window.parent, parentUrl); this.subscribe(eventsToWait); } - public subscribe(eventsToWait?: Array<string>) { + public subscribe(eventsToWait?: string[]) { const registerData = { pluginId: this.clientId, eventsToWait: eventsToWait || [] |