[CI Skip] 0.38.2

This commit is contained in:
Travis CI
2019-01-09 10:05:24 +00:00
parent f6c93e48b7
commit ea20e195f1
355 changed files with 3072 additions and 2900 deletions
+6
View File
@@ -0,0 +1,6 @@
@polkadot/api-derive
====================
Common functions used across Polkadot, derived from RPC calls and storage queries.
+9
View File
@@ -0,0 +1,9 @@
* ["cache"](modules/_cache_.md)
* ["cache.spec"](modules/_cache_spec_.md)
* ["chain/bestNumber"](modules/_chain_bestnumber_.md)
* ["chain/index"](modules/_chain_index_.md)
* ["index"](modules/_index_.md)
* [Derive](interfaces/_index_.derive.md)
* ["index.spec"](modules/_index_spec_.md)
* ["session/index"](modules/_session_index_.md)
* ["session/sessionProgress"](modules/_session_sessionprogress_.md)
@@ -0,0 +1,27 @@
# Hierarchy
**Derive**
# Properties
<a id="chain"></a>
## chain
**● chain**: *`ReturnTypes`<[&quot;chain/index&quot;](../modules/_chain_index_.md)>*
*Defined in [index.ts:23](https://github.com/polkadot-js/api/blob/f6c93e4/packages/api-derive/src/index.ts#L23)*
___
<a id="session"></a>
## session
**● session**: *`ReturnTypes`<[&quot;session/index&quot;](../modules/_session_index_.md)>*
*Defined in [index.ts:24](https://github.com/polkadot-js/api/blob/f6c93e4/packages/api-derive/src/index.ts#L24)*
___
+25
View File
@@ -0,0 +1,25 @@
# Functions
<a id="cache"></a>
## `<Const>` cache
▸ **cache**(fn: *`Function`*, map?: *`WeakMap`<`object`, `any`>*): `(Anonymous function)`
*Defined in [cache.ts:23](https://github.com/polkadot-js/api/blob/f6c93e4/packages/api-derive/src/cache.ts#L23)*
Create memoization for a 2-currified function.
**Parameters:**
| Name | Type | Default value | Description |
| ------ | ------ | ------ | ------ |
| fn | `Function` | - | The function to memoize. |
| `Default value` map | `WeakMap`<`object`, `any`> | new WeakMap() | The Map used to cache function returns. |
**Returns:** `(Anonymous function)`
___
+2
View File
@@ -0,0 +1,2 @@
@@ -0,0 +1,24 @@
# Functions
<a id="bestnumber"></a>
## bestNumber
▸ **bestNumber**(api: *`ApiRx`*): `(Anonymous function)`
*Defined in [chain/bestNumber.ts:13](https://github.com/polkadot-js/api/blob/f6c93e4/packages/api-derive/src/chain/bestNumber.ts#L13)*
Get the latest block number.
**Parameters:**
| Name | Type |
| ------ | ------ |
| api | `ApiRx` |
**Returns:** `(Anonymous function)`
___
+2
View File
@@ -0,0 +1,2 @@
+34
View File
@@ -0,0 +1,34 @@
# Index
### Interfaces
* [Derive](../interfaces/_index_.derive.md)
### Functions
* [decorateDerive](_index_.md#decoratederive)
---
# Functions
<a id="decoratederive"></a>
## decorateDerive
▸ **decorateDerive**(api: *`ApiRx`*): [Derive](../interfaces/_index_.derive.md)
*Defined in [index.ts:27](https://github.com/polkadot-js/api/blob/f6c93e4/packages/api-derive/src/index.ts#L27)*
**Parameters:**
| Name | Type |
| ------ | ------ |
| api | `ApiRx` |
**Returns:** [Derive](../interfaces/_index_.derive.md)
___
+2
View File
@@ -0,0 +1,2 @@
@@ -0,0 +1,2 @@
@@ -0,0 +1,22 @@
# Functions
<a id="sessionprogress"></a>
## sessionProgress
▸ **sessionProgress**(api: *`ApiRx`*): `(Anonymous function)`
*Defined in [session/sessionProgress.ts:13](https://github.com/polkadot-js/api/blob/f6c93e4/packages/api-derive/src/session/sessionProgress.ts#L13)*
**Parameters:**
| Name | Type |
| ------ | ------ |
| api | `ApiRx` |
**Returns:** `(Anonymous function)`
___