mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
Changed page return type
Gave an index signature for elements and section Removed props and url - someone who understands these more can add them
This commit is contained in:
Vendored
+2
-2
@@ -5,7 +5,7 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export interface NightwatchCustomPageObjects {
|
||||
page: {[name: string]: () => NightwatchBrowser};
|
||||
page: {[name: string]: () => EnhancedPageObject};
|
||||
}
|
||||
|
||||
export interface NightwatchDesiredCapabilities {
|
||||
@@ -1877,7 +1877,7 @@ type url = urlString | urlFunc;
|
||||
|
||||
export interface EnhancedPageObject extends SharedFunctions {
|
||||
api: NightwatchAPI;
|
||||
elements: EnhancedElementInstance;
|
||||
elements: {[name: string]: EnhancedElementInstance};
|
||||
name: string;
|
||||
props: props;
|
||||
section: EnhancedSectionInstance;
|
||||
|
||||
Reference in New Issue
Block a user