Files
api/docs/rpc-provider/modules/_mock_on_.md
T
2018-10-15 21:40:51 +00:00

25 lines
451 B
Markdown

# Functions
<a id="on"></a>
## on
▸ **on**(self: *`MockState`*, type: *`ProviderInterface$Emitted`*, sub: *`ProviderInterface$EmitCb`*): `void`
*Defined in [mock/on.ts:8](https://github.com/polkadot-js/api/blob/99b9332/packages/rpc-provider/src/mock/on.ts#L8)*
**Parameters:**
| Param | Type |
| ------ | ------ |
| self | `MockState` |
| type | `ProviderInterface$Emitted` |
| sub | `ProviderInterface$EmitCb` |
**Returns:** `void`
___