From 5f9eb125819aa86f769b881832533d9a6b8e2597 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Tue, 4 Nov 2025 14:58:00 +0100 Subject: [PATCH] tag: fix value type Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- src/tag.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tag.ts b/src/tag.ts index 4469abf..dae679b 100644 --- a/src/tag.ts +++ b/src/tag.ts @@ -104,10 +104,10 @@ export function Parse(s: string): Tag { const value = parts[1]; switch (key) { case 'type': { - if (!Object.values(Type).includes(value)) { + if (!Object.values(Type).includes(value as Type)) { throw new Error(`Unknown tag type attribute: ${value}`); } - tag.type = value; + tag.type = value as Type; break; } default: {