diff --git a/types/tingle.js/index.d.ts b/types/tingle.js/index.d.ts index 30c04b9342..5028952c96 100644 --- a/types/tingle.js/index.d.ts +++ b/types/tingle.js/index.d.ts @@ -17,7 +17,7 @@ export interface Options { } export class modal { constructor(options?: Options); - setContent(content: string | Element): void; + setContent(content: string | Node): void; getContent(): HTMLDivElement; destroy(): void; open(): void; diff --git a/types/tingle.js/tingle.js-tests.ts b/types/tingle.js/tingle.js-tests.ts index 9734178a00..6ebbedb10b 100644 --- a/types/tingle.js/tingle.js-tests.ts +++ b/types/tingle.js/tingle.js-tests.ts @@ -6,6 +6,10 @@ instance.checkOverflow(); instance.close(); instance.close(); +instance.setContent("string content"); +instance.setContent(new Node()); +instance.setContent(new DocumentFragment()); + instance = new modal({ onOpen() { this.checkOverflow();