checkpoint

This commit is contained in:
evilchili committed 2026-10-17 18:19:43 -07:00
1 parent 77b68bf272
commit 0fb18de28e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ export declare class TagCollection implements TagCollectionType {
tags: TagType[];
map: Map<string, TagType[]>;
constructor(tags: TagType[]);
getByName(name: string): TagType;
getByName(name: string): TagType | undefined;
getByElementName(element: string): TagType | undefined;
}
export {};
+1 -1
View File
@@ -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;