Skip to content

Commit

Permalink
fix page.url() return type
Browse files Browse the repository at this point in the history
  • Loading branch information
ledamint committed Nov 3, 2019
1 parent 94188a0 commit c0f88a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@ declare module 'wikijs' {
/**
* Get URL for wiki page
*
* @return {URL}
* @return {String}
* @memberof Page
*/
url(): URL;
url(): string;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ export default function wikiPage(rawPageInfo, apiOptions) {
/**
* Get URL for wiki page
* @method WikiPage#url
* @return {URL}
* @return {String}
*/
function url() {
return raw.canonicalurl;
Expand Down

0 comments on commit c0f88a4

Please sign in to comment.