Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/463.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何在google闭包中注释哈希?_Javascript_Annotations_Google Closure - Fatal编程技术网

Javascript 如何在google闭包中注释哈希?

Javascript 如何在google闭包中注释哈希?,javascript,annotations,google-closure,Javascript,Annotations,Google Closure,演示了如何注释记录: {{myNum: number, myObject}} An anonymous type with both a property named myNum that has a value of type number and a property named myObject that has a value of any type. 我有一个任意字符串到数字的散列。不清楚我是如何指出这一点的,因为在示例中,左侧两次都是一个特定的属性名称。我应该如何注释我的散列?/

演示了如何注释记录:

{{myNum: number, myObject}} 
An anonymous type with both a property named myNum that has a value of type number and a property named myObject that has a value of any type.
我有一个任意字符串到数字的散列。不清楚我是如何指出这一点的,因为在示例中,左侧两次都是一个特定的属性名称。我应该如何注释我的散列?

/**@type{Object.}*/
/** @type {Object.<number>} */ 

/**@type{Object.}*/
/** @type {Object.<string, number>} */