mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Add Document to JQuery.Node type alias (#43384)
DocumentFragment was added earlier, but Document isn't assignable to DocumentFragment in Typescript 3.9, so both need to be part of the union that makes up Node.
This commit is contained in:
parent
aee6e22947
commit
f377d05079
2
types/jquery/misc.d.ts
vendored
2
types/jquery/misc.d.ts
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
declare namespace JQuery {
|
||||
type TypeOrArray<T> = T | T[];
|
||||
type Node = Element | Text | Comment | DocumentFragment;
|
||||
type Node = Element | Text | Comment | Document | DocumentFragment;
|
||||
|
||||
/**
|
||||
* A string is designated htmlString in jQuery documentation when it is used to represent one or more DOM elements, typically to be created and inserted in the document. When passed as an argument of the jQuery() function, the string is identified as HTML if it starts with <tag ... >) and is parsed as such until the final > character. Prior to jQuery 1.9, a string was considered to be HTML if it contained <tag ... > anywhere within the string.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user