File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 4
4
* @typedef {import('hast').Element } Element
5
5
*
6
6
* @typedef {string } TagName
7
- * @typedef {null|undefined|TagName|TestFunctionAnything|Array. <TagName|TestFunctionAnything> } Test
7
+ * @typedef {null|undefined|TagName|TestFunctionAnything|Array<TagName|TestFunctionAnything> } Test
8
8
*/
9
9
10
10
/**
11
11
* @template {Element} T
12
- * @typedef {null|undefined|T['tagName']|TestFunctionPredicate<T>|Array. <T['tagName']|TestFunctionPredicate<T>> } PredicateTest
12
+ * @typedef {null|undefined|T['tagName']|TestFunctionPredicate<T>|Array<T['tagName']|TestFunctionPredicate<T>> } PredicateTest
13
13
*/
14
14
15
15
/**
@@ -159,11 +159,11 @@ export const convertElement =
159
159
)
160
160
161
161
/**
162
- * @param {Array. <TagName|TestFunctionAnything> } tests
162
+ * @param {Array<TagName|TestFunctionAnything> } tests
163
163
* @returns {AssertAnything }
164
164
*/
165
165
function anyFactory ( tests ) {
166
- /** @type {Array. <AssertAnything> } */
166
+ /** @type {Array<AssertAnything> } */
167
167
const checks = [ ]
168
168
let index = - 1
169
169
@@ -175,7 +175,7 @@ function anyFactory(tests) {
175
175
176
176
/**
177
177
* @this {unknown}
178
- * @param {unknown[] } parameters
178
+ * @param {Array< unknown> } parameters
179
179
* @returns {boolean }
180
180
*/
181
181
function any ( ...parameters ) {
@@ -220,7 +220,7 @@ function castFactory(check) {
220
220
/**
221
221
* @this {unknown}
222
222
* @param {unknown } node
223
- * @param {Array. <unknown> } parameters
223
+ * @param {Array<unknown> } parameters
224
224
* @returns {boolean }
225
225
*/
226
226
function assertion ( node , ...parameters ) {
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ There is no default export.
44
44
Check if the given value is a (certain) [ * element* ] [ element ] .
45
45
46
46
* ` node ` ([ ` Node ` ] [ node ] ) — Node to check.
47
- * ` test ` ([ ` Function ` ] [ test ] , ` string ` , or ` Array. <Test> ` , optional)
47
+ * ` test ` ([ ` Function ` ] [ test ] , ` string ` , or ` Array<Test> ` , optional)
48
48
— When ` array ` , checks if any one of the subtests pass.
49
49
When ` string ` , checks that the element has that tag name.
50
50
When ` function ` , see [ ` test ` ] [ test ]
You can’t perform that action at this time.
0 commit comments