From a2b4b57390a5bad4ee437a94f395d72571b6e790 Mon Sep 17 00:00:00 2001 From: Dillon Baldwin <114532112+DillBal@users.noreply.github.com> Date: Wed, 7 Aug 2024 04:15:50 -0500 Subject: [PATCH] Added name to contributors list as well as addressed issue #3343. Ran ninja check and the build compiled successfully. (#3345) --- CONTRIBUTORS | 1 + ts/lib/tslib/dom.ts | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 660abd15e..a05949544 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -184,6 +184,7 @@ Rastislav Kish Expertium Christian Donat Asuka Minato +Dillon Baldwin ******************** The text of the 3 clause BSD license follows: diff --git a/ts/lib/tslib/dom.ts b/ts/lib/tslib/dom.ts index c3925ef8c..f0ea6855c 100644 --- a/ts/lib/tslib/dom.ts +++ b/ts/lib/tslib/dom.ts @@ -142,11 +142,5 @@ const getAnchorParent = const isListItem = (element: Element): element is HTMLLIElement => window.getComputedStyle(element).display === "list-item"; -const isParagraph = (element: Element): element is HTMLParamElement => element.tagName === "P"; -const isBlockElement = ( - element: Element, -): element is HTMLLIElement & HTMLParamElement => isListItem(element) || isParagraph(element); export const getListItem = getAnchorParent(isListItem); -export const getParagraph = getAnchorParent(isParagraph); -export const getBlockElement = getAnchorParent(isBlockElement);