Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jan 24, 2023
1 parent 6eff10c commit c0a433b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion index.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/no-empty-function */

import {expectError, expectType} from 'tsd'
import {Node, Parent, Literal} from 'unist'
import type {Node, Parent, Literal} from 'unist'
import {is} from 'unist-util-is'
import {visit, SKIP, EXIT, CONTINUE} from './index.js'

Expand Down Expand Up @@ -31,6 +31,7 @@ const complexTree: Root = {
]
}

// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface Element extends Parent {
type: 'element'
tagName: string
Expand All @@ -41,36 +42,42 @@ interface Element extends Parent {

type Content = Flow | Phrasing

// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface Root extends Parent {
type: 'root'
children: Array<Flow>
}

type Flow = Blockquote | Heading | Paragraph

// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface Blockquote extends Parent {
type: 'blockquote'
children: Array<Flow>
}

// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface Heading extends Parent {
type: 'heading'
depth: number
children: Array<Phrasing>
}

// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface Paragraph extends Parent {
type: 'paragraph'
children: Array<Phrasing>
}

type Phrasing = Text | Emphasis

// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface Emphasis extends Parent {
type: 'emphasis'
children: Array<Phrasing>
}

// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface Text extends Literal {
type: 'text'
value: string
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@
"remark-preset-wooorm": "^9.0.0",
"rimraf": "^3.0.0",
"tape": "^5.0.0",
"tsd": "^0.22.0",
"tsd": "^0.25.0",
"type-coverage": "^2.0.0",
"typescript": "^4.7.0",
"xo": "^0.51.0"
"xo": "^0.53.0"
},
"scripts": {
"prepack": "npm run build && npm run format",
Expand Down

0 comments on commit c0a433b

Please sign in to comment.