From: Alexander Ebert Date: Sat, 16 Jan 2021 12:21:32 +0000 (+0100) Subject: Hint the return type based on the provided parameters X-Git-Tag: 5.4.0_Alpha_1~435 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f0bd64fe1c3bf204718db1207c01ba0b0161a7bb;p=GitHub%2FWoltLab%2FWCF.git Hint the return type based on the provided parameters --- 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) {