From c7aef9783196cce256eb75eada7203764909e7f8 Mon Sep 17 00:00:00 2001 From: dpiercey Date: Mon, 9 Feb 2026 14:09:12 -0700 Subject: [PATCH] fix: avoid const enum export --- .changeset/petite-webs-sing.md | 5 +++++ src/util/constants.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/petite-webs-sing.md diff --git a/.changeset/petite-webs-sing.md b/.changeset/petite-webs-sing.md new file mode 100644 index 00000000..37dd908d --- /dev/null +++ b/.changeset/petite-webs-sing.md @@ -0,0 +1,5 @@ +--- +"htmljs-parser": patch +--- + +Use normal enum for TagType which allows easier usage in consuming packages. diff --git a/src/util/constants.ts b/src/util/constants.ts index 4428ab45..044cf31a 100644 --- a/src/util/constants.ts +++ b/src/util/constants.ts @@ -141,7 +141,7 @@ export enum ErrorCode { INVALID_ATTR_TYPE_PARAMS, } -export const enum TagType { +export enum TagType { html, text, void,