mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 09:41:45 +00:00
.appendTo() should accept a document fragment as an argument (not just Element)
This commit is contained in:
Vendored
+1
-1
@@ -3487,7 +3487,7 @@ interface JQuery<TElement = HTMLElement> extends Iterable<TElement> {
|
||||
* @see \`{@link https://api.jquery.com/appendTo/ }\`
|
||||
* @since 1.0
|
||||
*/
|
||||
appendTo(target: JQuery.Selector | JQuery.htmlString | JQuery.TypeOrArray<Element> | JQuery): this;
|
||||
appendTo(target: JQuery.Selector | JQuery.htmlString | JQuery.TypeOrArray<Node> | JQuery): this;
|
||||
/**
|
||||
* Set one or more attributes for the set of matched elements.
|
||||
*
|
||||
|
||||
@@ -5670,6 +5670,9 @@ function JQuery() {
|
||||
|
||||
// $ExpectType JQuery<HTMLElement>
|
||||
$('span').appendTo($('p'));
|
||||
|
||||
// $ExpectType JQuery<HTMLElement>
|
||||
$('span').appendTo(document.createDocumentFragment());
|
||||
}
|
||||
|
||||
function insertAfter() {
|
||||
|
||||
Reference in New Issue
Block a user