From: Alexander Ebert Date: Mon, 16 Nov 2015 23:52:36 +0000 (+0100) Subject: Improved parameter hinting X-Git-Tag: 3.0.0_Beta_1~2030^2~249 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f64defda3e690f95440c117779744ad02fc42746;p=GitHub%2FWoltLab%2FWCF.git Improved parameter hinting --- diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Dictionary.js b/wcfsetup/install/files/js/WoltLab/WCF/Dictionary.js index d8f927fffc..94f818985f 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Dictionary.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Dictionary.js @@ -23,8 +23,8 @@ define([], function() { /** * Sets a new key with given value, will overwrite an existing key. * - * @param {string} key key - * @param {*} value value + * @param {(number|string)} key key + * @param {?} value value */ set: function(key, value) { if (typeof key === 'number') key = key.toString(); @@ -40,7 +40,7 @@ define([], function() { /** * Removes a key from the dictionary. * - * @param {string} key key + * @param {(number|string)} key key */ 'delete': function(key) { if (typeof key === 'number') key = key.toString(); @@ -52,7 +52,7 @@ define([], function() { /** * Returns true if dictionary contains a value for given key and is not undefined. * - * @param {string} key key + * @param {(number|string)} key key * @return {boolean} true if key exists and value is not undefined */ has: function(key) { @@ -67,7 +67,7 @@ define([], function() { /** * Retrieves a value by key, returns undefined if there is no match. * - * @param {string} key key + * @param {(number|string)} key key * @return {*} */ get: function(key) {