diff options
Diffstat (limited to 'source/helpers/on-replaced-element.ts')
-rw-r--r-- | source/helpers/on-replaced-element.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/helpers/on-replaced-element.ts b/source/helpers/on-replaced-element.ts index 3ef75caf..12594a95 100644 --- a/source/helpers/on-replaced-element.ts +++ b/source/helpers/on-replaced-element.ts @@ -8,7 +8,8 @@ Tracks the replacement of an element, identified via selector. @param selector The unique selector used to find the element and its future replacements @param callback The function to call after it's replaced */ -export default async function onReplacedElement(selector: string, callback: VoidCallback): void { + +export default async function onReplacedElement(selector: string, callback: VoidCallback): Promise<void> { let trackedElement = select(selector); if (!trackedElement) { throw new Error('The element can’t be found'); |