Skip to content

Commit

Permalink
feat: [capricorn86#1176] Adds support for Window.happyDOM.close().
Browse files Browse the repository at this point in the history
  • Loading branch information
capricorn86 committed Feb 21, 2024
1 parent 2e6980a commit 2279309
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default class CustomElementRegistry {
* @param name Tag name of element.
* @returns HTMLElement Class defined or undefined.
*/
public get(name: string): typeof HTMLElement {
public get(name: string): typeof HTMLElement | undefined {
return this[PropertySymbol.registry][name]?.elementClass;
}

Expand Down

0 comments on commit 2279309

Please sign in to comment.