From 2f4744ca7127ba923cc8e5565f6b78cea2a0daa7 Mon Sep 17 00:00:00 2001 From: Patrick O'Carroll Date: Thu, 26 Oct 2017 13:25:47 +0200 Subject: [PATCH] declared any to info in declaration --- public/app/features/panellinks/linkSrv.ts | 28 +++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/public/app/features/panellinks/linkSrv.ts b/public/app/features/panellinks/linkSrv.ts index 5847d0b7b46..b167fb813ac 100644 --- a/public/app/features/panellinks/linkSrv.ts +++ b/public/app/features/panellinks/linkSrv.ts @@ -66,26 +66,26 @@ export class LinkSrv { } getAnchorInfo(link) { - var info = {}; - (info).href = this.getLinkUrl(link); - (info).title = this.templateSrv.replace(link.title || ''); + var info: any = {}; + info.href = this.getLinkUrl(link); + info.title = this.templateSrv.replace(link.title || ''); return info; } getPanelLinkAnchorInfo(link, scopedVars) { - var info = {}; + var info: any = {}; if (link.type === 'absolute') { - (info).target = link.targetBlank ? '_blank' : '_self'; - (info).href = this.templateSrv.replace(link.url || '', scopedVars); - (info).title = this.templateSrv.replace(link.title || '', scopedVars); + info.target = link.targetBlank ? '_blank' : '_self'; + info.href = this.templateSrv.replace(link.url || '', scopedVars); + info.title = this.templateSrv.replace(link.title || '', scopedVars); } else if (link.dashUri) { - (info).href = 'dashboard/' + link.dashUri + '?'; - (info).title = this.templateSrv.replace(link.title || '', scopedVars); - (info).target = link.targetBlank ? '_blank' : ''; + info.href = 'dashboard/' + link.dashUri + '?'; + info.title = this.templateSrv.replace(link.title || '', scopedVars); + info.target = link.targetBlank ? '_blank' : ''; } else { - (info).title = this.templateSrv.replace(link.title || '', scopedVars); + info.title = this.templateSrv.replace(link.title || '', scopedVars); var slug = kbn.slugifyForUrl(link.dashboard || ''); - (info).href = 'dashboard/db/' + slug + '?'; + info.href = 'dashboard/db/' + slug + '?'; } var params = {}; @@ -100,10 +100,10 @@ export class LinkSrv { this.templateSrv.fillVariableValuesForUrl(params, scopedVars); } - (info).href = this.addParamsToUrl((info).href, params); + info.href = this.addParamsToUrl(info.href, params); if (link.params) { - (info).href = this.appendToQueryString((info).href, this.templateSrv.replace(link.params, scopedVars)); + info.href = this.appendToQueryString(info.href, this.templateSrv.replace(link.params, scopedVars)); } return info;