From 970ef290a2a59c07fa3af74639ac6e6dee6cc831 Mon Sep 17 00:00:00 2001 From: Grigore Robert George <81811949+MaxwellTheSecond@users.noreply.github.com> Date: Wed, 8 Nov 2023 20:37:44 +0200 Subject: [PATCH] Fix TS type for replaceWith method (#5504) --- src/dom_components/model/Component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dom_components/model/Component.ts b/src/dom_components/model/Component.ts index 9f77a5fe3b..afd69ab21b 100644 --- a/src/dom_components/model/Component.ts +++ b/src/dom_components/model/Component.ts @@ -508,7 +508,7 @@ export default class Component extends StyleableModel { * component.replaceWith('
Some new content
'); * // -> Component */ - replaceWith(el: Component) { + replaceWith(el: Component | String) { const coll = this.collection; const at = coll.indexOf(this); coll.remove(this);