Skip to content

Commit 4d3ad2d

Browse files
committed
fix: add type assertions for tipKey in handleUserActionOnTip (fix TS2345)
1 parent a4a9f97 commit 4d3ad2d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/extension/services/tipsNotificationsService/tipsNotificationService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ export class TipNotificationService implements vscode.Disposable {
228228

229229
if (readmeFile) {
230230
const anchorLink: string = isGeneralTip
231-
? this.getGeneralTipNotificationAnchorLinkByKey(tipKey)
232-
: this.getSpecificTipNotificationAnchorLinkByKey(tipKey);
231+
? this.getGeneralTipNotificationAnchorLinkByKey(tipKey as GeneralTipKey)
232+
: this.getSpecificTipNotificationAnchorLinkByKey(tipKey as SpecificTipKey);
233233

234234
const uriFile = vscode.Uri.parse(
235235
path.normalize(`file://${readmeFile}${anchorLink}`),

0 commit comments

Comments
 (0)