Skip to content

Commit

Permalink
Cast element in fill-in to get around TS not correctly resolving the …
Browse files Browse the repository at this point in the history
…element type through the promise chain
  • Loading branch information
NullVoxPopuli committed Jun 26, 2024
1 parent 2e0293b commit fc84403
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default function fillIn(target: Target, text: string): Promise<void> {
} else if (isContentEditable(element)) {
return __focus__(element).then(() => {
element.innerHTML = text;
return element;
return element as Element;
});
} else {
throw new Error(
Expand Down

0 comments on commit fc84403

Please sign in to comment.