From 2852d20f865dc18a8dc6727d5b5e586282e7d50d Mon Sep 17 00:00:00 2001 From: taoqf Date: Thu, 17 Aug 2023 09:40:36 +0800 Subject: [PATCH] fix: more change about types #230 --- pnpm-lock.yaml | 2 +- src/nodes/html.ts | 2 +- tsconfig.json | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7878888..a0b92fc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5417,7 +5417,7 @@ packages: require-directory: 2.1.1 string-width: 4.2.3 y18n: 5.0.8 - yargs-parser: 20.2.4 + yargs-parser: 20.2.9 dev: true /yn@3.1.1: diff --git a/src/nodes/html.ts b/src/nodes/html.ts index 4c75e33..b24cbe8 100644 --- a/src/nodes/html.ts +++ b/src/nodes/html.ts @@ -173,7 +173,7 @@ export default class HTMLElement extends Node { keyAttrs: KeyAttributes, public rawAttrs = '', parentNode = null as HTMLElement | null, - range: [number, number], + range?: [number, number], private voidTag = new VoidTag(), _parseOptions = {} as Partial ) { diff --git a/tsconfig.json b/tsconfig.json index 230aec9..da0903a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -56,9 +56,6 @@ "stripInternal": false, "suppressExcessPropertyErrors": false, "traceResolution": false, - "typeRoots": [ ], - "types": [ - "node" - ] + "typeRoots": [ ] } } \ No newline at end of file