Skip to content

types(ajax): improve Ajax types and docs#6233

Merged
benlesh merged 2 commits intoReactiveX:masterfrom
jakovljevic-mladen:ajax_docs_improvements
Apr 19, 2021
Merged

types(ajax): improve Ajax types and docs#6233
benlesh merged 2 commits intoReactiveX:masterfrom
jakovljevic-mladen:ajax_docs_improvements

Conversation

@jakovljevic-mladen
Copy link
Copy Markdown
Member

Description:
This PR improves ajax docs, introduces AjaxDirection type and fixes multiple typos.

Also, some npm run docs failures are fixed with this PR, like:

  • No handler provided for inline tag "{@see {@link AjaxConfig}" or
  • Error in {@link AjaxProgressEvents} - Invalid link (does not match any doc).

Related issue (if exists):
None

* The total number of bytes loaded so far. To be used with {@link total} while
* calcating progress. (You will want to set {@link includeDownloadProgress} or {@link includeDownloadProgress})
*
* {@see {@link AjaxConfig}}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This @see doesn't work here (it doesn't seem to be rendered anywhere on the page). For this reason, I moved it to line 16.

* response is available.
*/
public readonly type = 'download_load'
public readonly type: string = 'download_load'
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a "fix" for the table at /api/ajax/AjaxResponse#properties where type property has had 'download_load' TypeScript type instead of string type.

@cartant cartant changed the title docs(ajax): improve Ajax docs types(ajax): improve Ajax types and docs Apr 19, 2021
Copy link
Copy Markdown
Member

@benlesh benlesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the thorough follow-up. It is appreciated!

@benlesh benlesh merged commit 40206e5 into ReactiveX:master Apr 19, 2021
@jakovljevic-mladen jakovljevic-mladen deleted the ajax_docs_improvements branch April 19, 2021 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants