Skip to content

Commit 2289b37

Browse files
committed
Update dev-dependencies
1 parent 968e97c commit 2289b37

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"tape": "^4.0.0",
4343
"tinyify": "^2.0.0",
4444
"unified": "^8.4.2",
45-
"xo": "^0.26.0"
45+
"xo": "^0.28.0"
4646
},
4747
"scripts": {
4848
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix",

types/index.d.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,13 @@
33
import {Node, Parent} from 'unist'
44

55
declare namespace unistUtilModifyChildren {
6-
type Modifier = (
7-
node: Node,
8-
index: number,
9-
parent: Parent
10-
) => number | void
6+
type Modifier = (node: Node, index: number, parent: Parent) => number | void
117

128
type Modify = (tree: Node) => void
139
}
1410

1511
/**
16-
* unist utility to modify direct children of a parent.
12+
* Unist utility to modify direct children of a parent.
1713
*
1814
* @param callback modifier function that (optionally) returns a next position (number) to iterate.
1915
* @returns callback to be used on the tree.

types/unist-util-modify-children-test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {Node} from 'unist'
22

33
import unified = require('unified')
44

5-
import * as modifyChildren from 'unist-util-modify-children'
5+
import modifyChildren = require('unist-util-modify-children')
66

77
const node: Node = {
88
type: 'root',
@@ -16,8 +16,10 @@ const node: Node = {
1616
// $ExpectType Modify
1717
modifyChildren((node, index) => index + 1)
1818

19+
/* eslint-disable @typescript-eslint/no-empty-function */
1920
// $ExpectType Modify
2021
modifyChildren(() => {})
22+
/* eslint-enable @typescript-eslint/no-empty-function */
2123

2224
// $ExpectError
2325
modifyChildren(() => '')

0 commit comments

Comments
 (0)