From 0fb18de28e725fce2c49208f0652757c7d9a2adb5cc5d1feede462a5d77efbf5 Mon Sep 17 00:00:00 2001 From: evilchili Date: Sat, 17 Oct 2026 18:19:43 -0700 Subject: [PATCH] checkpoint --- dist/tags/base.d.ts | 2 +- src/ts/tags/base.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/tags/base.d.ts b/dist/tags/base.d.ts index 83507cf..0873e12 100644 --- a/dist/tags/base.d.ts +++ b/dist/tags/base.d.ts @@ -32,7 +32,7 @@ export declare class TagCollection implements TagCollectionType { tags: TagType[]; map: Map; constructor(tags: TagType[]); - getByName(name: string): TagType; + getByName(name: string): TagType | undefined; getByElementName(element: string): TagType | undefined; } export {}; diff --git a/src/ts/tags/base.ts b/src/ts/tags/base.ts index be9c6d1..7c3657a 100644 --- a/src/ts/tags/base.ts +++ b/src/ts/tags/base.ts @@ -157,7 +157,7 @@ export class TagCollection implements TagCollectionType { } } - getByName(name: string) { + getByName(name: string): TagType | undefined { return this.tags.filter(t => { t.constructor.name == name })[0] || undefined;