diff options
author | 2020-05-30 14:47:23 +0200 | |
---|---|---|
committer | 2020-05-30 14:47:23 +0200 | |
commit | 2a81048d4336b7a307d8b712a6362e9c34f03013 (patch) | |
tree | 3b8fe21eb8ff5fd933f31774e52fe44d91c25565 /source/helpers/on-replaced-element.ts | |
parent | 7589633720493550e359468ffdb4294858b74646 (diff) | |
download | refined-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.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'); |