From f0bd64fe1c3bf204718db1207c01ba0b0161a7bb Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 16 Jan 2021 13:21:32 +0100 Subject: [PATCH] Hint the return type based on the provided parameters --- ts/WoltLabSuite/Core/Ui/Message/Manager.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ts/WoltLabSuite/Core/Ui/Message/Manager.ts b/ts/WoltLabSuite/Core/Ui/Message/Manager.ts index f4403ef622..484dadd86b 100644 --- a/ts/WoltLabSuite/Core/Ui/Message/Manager.ts +++ b/ts/WoltLabSuite/Core/Ui/Message/Manager.ts @@ -71,6 +71,8 @@ class UiMessageManager implements AjaxCallbackObject { /** * Returns the given property value from a message, optionally supporting a boolean return value. */ + getPropertyValue(objectId: string, propertyName: string, asBool: true): boolean; + getPropertyValue(objectId: string, propertyName: string, asBool: false): string; getPropertyValue(objectId: string, propertyName: string, asBool: boolean): boolean | string { const element = this._elements.get(objectId); if (element === undefined) { -- 2.20.1