mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
As the docs indicate, the 2nd parameter is optional.
This commit is contained in:
Vendored
+2
-2
@@ -7371,7 +7371,7 @@ declare module WinJS.UI.Fragments {
|
||||
* @param element Optional. The element to which the fragment is appended.
|
||||
* @returns A promise that is fulfilled when the fragment has been loaded. If a target element is not specified, the copied fragment is the completed value. The element is not added to the cache. See also rendercopy, where the element is added to the cache.
|
||||
**/
|
||||
function render(href: string, element: HTMLElement): Promise<HTMLElement>;
|
||||
function render(href: string, element?: HTMLElement): Promise<HTMLElement>;
|
||||
|
||||
/**
|
||||
* Loads and copies the contents of the specified URI into the specified element.
|
||||
@@ -7379,7 +7379,7 @@ declare module WinJS.UI.Fragments {
|
||||
* @param target The element to which the fragment is appended.
|
||||
* @returns A promise that is fulfilled when the fragment has been loaded. If a target element is not specified, the copied fragment is the completed value. The fragment is added to the cache. See also render, where the element is not added to the cache.
|
||||
**/
|
||||
function renderCopy(href: string, target: HTMLElement): Promise<HTMLElement>;
|
||||
function renderCopy(href: string, target?: HTMLElement): Promise<HTMLElement>;
|
||||
|
||||
//#endregion Functions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user