Skip to content

Commit ef78173

Browse files
author
Matt Mazzola
committed
Update report.page method to accept displayName and allow constructing full page object if it's known
1 parent 3e6fd0c commit ef78173

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/report.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ export class Report extends embed.Embed implements IReportNode, IFilterable {
120120
* page.setActive();
121121
* ```
122122
*/
123-
page(name: string): Page {
124-
return new Page(this, name);
123+
page(name: string, displayName?: string): Page {
124+
return new Page(this, name, displayName);
125125
}
126126

127127
/**

0 commit comments

Comments
 (0)