From c0a433bab50a0e5f69d34a7d30df021d00c7b655 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 24 Jan 2023 14:45:13 +0100 Subject: [PATCH] Update dev-dependencies --- index.test-d.ts | 9 ++++++++- package.json | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/index.test-d.ts b/index.test-d.ts index 2340979..9a7de1d 100644 --- a/index.test-d.ts +++ b/index.test-d.ts @@ -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' @@ -31,6 +31,7 @@ const complexTree: Root = { ] } +// eslint-disable-next-line @typescript-eslint/consistent-type-definitions interface Element extends Parent { type: 'element' tagName: string @@ -41,6 +42,7 @@ 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 @@ -48,17 +50,20 @@ interface Root extends Parent { type Flow = Blockquote | Heading | Paragraph +// eslint-disable-next-line @typescript-eslint/consistent-type-definitions interface Blockquote extends Parent { type: 'blockquote' children: Array } +// eslint-disable-next-line @typescript-eslint/consistent-type-definitions interface Heading extends Parent { type: 'heading' depth: number children: Array } +// eslint-disable-next-line @typescript-eslint/consistent-type-definitions interface Paragraph extends Parent { type: 'paragraph' children: Array @@ -66,11 +71,13 @@ interface Paragraph extends Parent { type Phrasing = Text | Emphasis +// eslint-disable-next-line @typescript-eslint/consistent-type-definitions interface Emphasis extends Parent { type: 'emphasis' children: Array } +// eslint-disable-next-line @typescript-eslint/consistent-type-definitions interface Text extends Literal { type: 'text' value: string diff --git a/package.json b/package.json index 4d9a283..466beac 100644 --- a/package.json +++ b/package.json @@ -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",