Skip to content

Commit e5b9d66

Browse files
committed
Refactor code-style
1 parent 35c8ee4 commit e5b9d66

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import {convert} from 'unist-util-is'
1212
export const findAllBefore =
1313
/**
1414
* @type {(
15-
* (<T extends Node>(node: Parent, index: Node|number, test: T['type']|Partial<T>|import('unist-util-is').TestFunctionPredicate<T>|Array.<T['type']|Partial<T>|import('unist-util-is').TestFunctionPredicate<T>>) => Array.<T>) &
16-
* ((node: Parent, index: Node|number, test?: null|undefined|Type|Props|TestFunctionAnything|Array<Type|Props|TestFunctionAnything>) => Array.<Node>)
15+
* (<T extends Node>(node: Parent, index: Node|number, test: T['type']|Partial<T>|import('unist-util-is').TestFunctionPredicate<T>|Array<T['type']|Partial<T>|import('unist-util-is').TestFunctionPredicate<T>>) => Array<T>) &
16+
* ((node: Parent, index: Node|number, test?: null|undefined|Type|Props|TestFunctionAnything|Array<Type|Props|TestFunctionAnything>) => Array<Node>)
1717
* )}
1818
*/
1919
(
@@ -23,11 +23,11 @@ export const findAllBefore =
2323
* @param {Parent} parent Parent node
2424
* @param {Node|number} index Child of `parent`, or it’s index
2525
* @param {null|undefined|Type|Props|TestFunctionAnything|Array<Type|Props|TestFunctionAnything>} [test] is-compatible test (such as a type)
26-
* @returns {Array.<Node>}
26+
* @returns {Array<Node>}
2727
*/
2828
function (parent, index, test) {
2929
const is = convert(test)
30-
/** @type {Array.<Node>} */
30+
/** @type {Array<Node>} */
3131
const results = []
3232
let offset = -1
3333

0 commit comments

Comments
 (0)