mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Fixed the Page object.
Generated pages don't play nicely with the optional options parameter. Made it required.
This commit is contained in:
Vendored
+3
-3
@@ -7325,7 +7325,7 @@ declare module WinJS.UI.Pages {
|
||||
* @param options The options passed to the constructor of the page.
|
||||
* @returns A promise that is fulfilled when initialization is complete, if asynchronous processing is necessary. If not, returns nothing.
|
||||
**/
|
||||
init?(element: HTMLElement, options?: any): Promise<any>;
|
||||
init?(element: HTMLElement, options: any): Promise<any>;
|
||||
|
||||
/**
|
||||
* Creates DOM objects from the content in the specified URI. This method is called after the PageControl is defined and before the init method is called.
|
||||
@@ -7340,7 +7340,7 @@ declare module WinJS.UI.Pages {
|
||||
* @param options The options that are to be passed to the constructor of the page.
|
||||
* @returns A promise that is fulfilled when initialization is complete, if asynchronous processing is necessary. If not, returns nothing.
|
||||
**/
|
||||
processed?(element: HTMLElement, options?: any): Promise<any>;
|
||||
processed?(element: HTMLElement, options: any): Promise<any>;
|
||||
|
||||
/**
|
||||
* Called after all initialization and rendering is complete. At this time, the element is ready for use.
|
||||
@@ -7348,7 +7348,7 @@ declare module WinJS.UI.Pages {
|
||||
* @param options An object that contains one or more property/value pairs to apply to the PageControl. How these property/value pairs are used (or not used) depends on the implementation of that particular PageControl.
|
||||
* @returns A promise that is fulfilled when the element is ready for use, if asynchronous processing is necessary. If not, returns nothing.
|
||||
**/
|
||||
ready?(element: HTMLElement, options?: any): Promise<any>;
|
||||
ready?(element: HTMLElement, options: any): Promise<any>;
|
||||
|
||||
/**
|
||||
* Takes the elements returned by the load method and attaches them to the specified element.
|
||||
|
||||
Reference in New Issue
Block a user