-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TS] Page.content() has incorrect return type #164
[TS] Page.content() has incorrect return type #164
Comments
Thanks for the example. I will look info this. |
After looking at this again, the function seems to be doing exactly as described in the docs: https://dijs.github.io/wiki/WikiPage.html#content It parses the extracted content from sections on the page. If you would like to transform the results into a string , i am sure that would not be difficult. |
The method acts as it should, however its return type is incorrect. It's said to return a string while it actually returns an array.
|
Page.content()
is set to return a promise of a string, however this is not always the case. Sometimes (more often than not it seems) it returns a promise for an array of page sections.The text was updated successfully, but these errors were encountered: