Skip to content

Commit 572cce0

Browse files
committed
fix: avoid const enum export
1 parent 506a376 commit 572cce0

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/petite-webs-sing.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"htmljs-parser": patch
3+
---
4+
5+
Use normal enum for TagType which allows easier usage in consuming packages.

src/util/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export enum ErrorCode {
141141
INVALID_ATTR_TYPE_PARAMS,
142142
}
143143

144-
export const enum TagType {
144+
export enum TagType {
145145
html,
146146
text,
147147
void,

0 commit comments

Comments
 (0)