Skip to content

Commit ccbee98

Browse files
committed
refactor: add comment
1 parent d885a36 commit ccbee98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/rules/no-use-computed-property-like-method.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ const utils = require('../utils')
1414
* @typedef {import('../utils').ComponentPropertyData} ComponentPropertyData
1515
* @typedef {import('../utils').ComponentObjectPropertyData} ComponentObjectPropertyData
1616
*
17-
* @typedef {{[key: string]: ComponentPropertyData & { valueType: { type: string } }}} PropertyMap
17+
* @typedef {{[key: string]: ComponentPropertyData & { valueType: { type: string | null } }}} PropertyMap
1818
*/
1919
// ------------------------------------------------------------------------------
2020
// Rule Definition
2121
// ------------------------------------------------------------------------------
2222

2323
/**
2424
* Get type of props item.
25+
* Can't consider array props like: props: {propsA: [String, Number, Function]}
2526
* @param {ComponentObjectPropertyData} property
2627
* @return {string | null}
2728
*

0 commit comments

Comments
 (0)