Skip to content

Commit 940247a

Browse files
committed
Update dev-dependencies
1 parent d190ee7 commit 940247a

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
* @typedef {import('./complex-types').Visitor} Visitor
77
*/
88

9-
import {visitParents, CONTINUE, SKIP, EXIT} from 'unist-util-visit-parents'
10-
11-
export {CONTINUE, SKIP, EXIT}
9+
import {visitParents} from 'unist-util-visit-parents'
1210

1311
/**
1412
* Visit children of tree which pass a test
@@ -43,7 +41,7 @@ export const visit =
4341

4442
/**
4543
* @param {Node} node
46-
* @param {Array.<Parent>} parents
44+
* @param {Array<Parent>} parents
4745
*/
4846
function overload(node, parents) {
4947
const parent = parents[parents.length - 1]
@@ -55,3 +53,4 @@ export const visit =
5553
}
5654
}
5755
)
56+
export {CONTINUE, EXIT, SKIP} from 'unist-util-visit-parents'

index.test-d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,39 +36,39 @@ interface Element extends Parent {
3636
tagName: string
3737
properties: Record<string, unknown>
3838
content: Node
39-
children: Node[]
39+
children: Array<Node>
4040
}
4141

4242
type Content = Flow | Phrasing
4343

4444
interface Root extends Parent {
4545
type: 'root'
46-
children: Flow[]
46+
children: Array<Flow>
4747
}
4848

4949
type Flow = Blockquote | Heading | Paragraph
5050

5151
interface Blockquote extends Parent {
5252
type: 'blockquote'
53-
children: Flow[]
53+
children: Array<Flow>
5454
}
5555

5656
interface Heading extends Parent {
5757
type: 'heading'
5858
depth: number
59-
children: Phrasing[]
59+
children: Array<Phrasing>
6060
}
6161

6262
interface Paragraph extends Parent {
6363
type: 'paragraph'
64-
children: Phrasing[]
64+
children: Array<Phrasing>
6565
}
6666

6767
type Phrasing = Text | Emphasis
6868

6969
interface Emphasis extends Parent {
7070
type: 'emphasis'
71-
children: Phrasing[]
71+
children: Array<Phrasing>
7272
}
7373

7474
interface Text extends Literal {

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@
5858
"prettier": "^2.0.0",
5959
"remark": "^14.0.0",
6060
"remark-cli": "^10.0.0",
61-
"remark-gfm": "^2.0.0",
61+
"remark-gfm": "^3.0.0",
6262
"remark-preset-wooorm": "^9.0.0",
6363
"rimraf": "^3.0.0",
6464
"tape": "^5.0.0",
65-
"tsd": "^0.17.0",
65+
"tsd": "^0.20.0",
6666
"type-coverage": "^2.0.0",
6767
"typescript": "^4.0.0",
68-
"xo": "^0.44.0"
68+
"xo": "^0.49.0"
6969
},
7070
"scripts": {
7171
"prepack": "npm run build && npm run format",
@@ -84,7 +84,11 @@
8484
"trailingComma": "none"
8585
},
8686
"xo": {
87-
"prettier": true
87+
"prettier": true,
88+
"rules": {
89+
"@typescript-eslint/ban-types": "off",
90+
"@typescript-eslint/array-type": "off"
91+
}
8892
},
8993
"remarkConfig": {
9094
"plugins": [

0 commit comments

Comments
 (0)