Skip to content

Commit 5f9eb12

Browse files
committed
tag: fix value type
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 parent be25a4c commit 5f9eb12

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/tag.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ export function Parse(s: string): Tag {
104104
const value = parts[1];
105105
switch (key) {
106106
case 'type': {
107-
if (!Object.values(Type).includes(value)) {
107+
if (!Object.values(Type).includes(value as Type)) {
108108
throw new Error(`Unknown tag type attribute: ${value}`);
109109
}
110-
tag.type = value;
110+
tag.type = value as Type;
111111
break;
112112
}
113113
default: {

0 commit comments

Comments
 (0)