mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
tingle.js: setContent() accepts Node (#46614)
This commit is contained in:
parent
16ad6a4098
commit
f74772c4e1
2
types/tingle.js/index.d.ts
vendored
2
types/tingle.js/index.d.ts
vendored
@ -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;
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user