Skip to content

Commit

Permalink
fix(typescript): fix type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
pandan-12 authored and BlackHole1 committed Dec 7, 2019
1 parent f406baa commit ad2dc89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/chrome-extension/lib/tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Tabs {
}

getExtraInfo (id: number) {
return (this.getTab(id) && this.getTab(id).extraInfo) ? this.getTab(id).extraInfo : 0;
return (this.getTab(id) && this.getTab(id).extraInfo) ? this.getTab(id).extraInfo : {};
}

getFileName (id: number) {
Expand Down
2 changes: 1 addition & 1 deletion src/chrome-extension/typing/background.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ export interface IWebPageMessages {
fileName?: string; // Record saved file name
pageWidth?: number; // The width of the page
pageHeight?: number; // The height of the page
extraInfo?: any; // Additional information to carry
extraInfo?: IRecursive; // Additional information to carry
}

0 comments on commit ad2dc89

Please sign in to comment.