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:
Clayton Astrom
2018-10-24 11:23:20 -05:00
parent ea89485ed3
commit ccd51e7e79
+2 -2
View File
@@ -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;