fix: Fixes #154 Modify TypeDocs that change the source to resolve rendering correctly (#203)

* fix: Modify TypeDocs that change the source to resolve rendering correctly

* Add TypeDoc/TSDoc labels

* Use HTML <BR> element in TypeDoc to generate new lines even to achieve a newline between lines of code

* Use HTML <PRE><CODE> combination in TypeDoc for multiple line code generation

* Add missing TypeDocs for HTTP `constructor` and `send` for HTTP and WS

* Remove unnecessary assignment of `= true` default value in TypeDoc @param value and clean up text alignment

* Verified that it displays correctly in development environment by running `yarn; yarn polkadot-dev-build-docs; yarn gitbook serve`, and then navigating to localhost:4000

* fix: remove signature that was used with jsdocs flowtype
This commit is contained in:
Luke Schoen
2018-10-05 08:42:32 +02:00
committed by Jaco Greeff
parent f77d75086f
commit fd596a1eb4
4 changed files with 58 additions and 26 deletions
+6 -2
View File
@@ -21,14 +21,18 @@ type CachedMap = {
};
/**
* An RxJs wrapper around the [[api]].
* @name RxApi
* @summary The RxJS API is a wrapper around the API.
* @description It allows wrapping API components with observables using RxJS.
*
* @example
* <BR><PRE><CODE>
* import RxApi from '@polkadot/api';
* import WsProvider from '@polkadot/api-provider/ws';
*
* <BR>
* const provider = new WsProvider('http://127.0.0.1:9944');
* const rxapi = new RxApi(provider);
* </CODE></PRE>
*/
export default class RxApi implements RxApiInterface {
private _api: ApiInterface;