Skip to content

Commit

Permalink
Merge pull request #130 from ledamint/fix-url-type
Browse files Browse the repository at this point in the history
fix page.url() return type
  • Loading branch information
dijs committed Apr 14, 2021
2 parents 6948246 + c0f88a4 commit c8a0570
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
Expand Up @@ -229,10 +229,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
Expand Up @@ -400,7 +400,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 c8a0570

Please sign in to comment.