summaryrefslogtreecommitdiff
path: root/source/helpers/on-replaced-element.ts
diff options
context:
space:
mode:
authorGravatar Fregante <opensource@bfred.it> 2020-05-30 14:47:23 +0200
committerGravatar GitHub <noreply@github.com> 2020-05-30 14:47:23 +0200
commit2a81048d4336b7a307d8b712a6362e9c34f03013 (patch)
tree3b8fe21eb8ff5fd933f31774e52fe44d91c25565 /source/helpers/on-replaced-element.ts
parent7589633720493550e359468ffdb4294858b74646 (diff)
downloadrefined-github-2a81048d4336b7a307d8b712a6362e9c34f03013.tar.gz
refined-github-2a81048d4336b7a307d8b712a6362e9c34f03013.tar.zst
refined-github-2a81048d4336b7a307d8b712a6362e9c34f03013.zip
Meta: config and build cleanup (#3157)
Diffstat (limited to 'source/helpers/on-replaced-element.ts')
-rw-r--r--source/helpers/on-replaced-element.ts3
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');