diff --git a/packages/api/src/index.js b/packages/api/src/index.js index d9725c2819a5..50ea492be2b8 100644 --- a/packages/api/src/index.js +++ b/packages/api/src/index.js @@ -16,9 +16,7 @@ const createInterface = require('./create/interface'); module.exports = function api (provider: ProviderInterface): ApiInterface { assert(provider && isFunction(provider.send), 'Expected Provider to API create'); - const exposed: ApiInterface = { - on: provider.on - }; + const exposed: ApiInterface = {}; return Object .keys(interfaces) diff --git a/packages/api/src/types.js b/packages/api/src/types.js index d3b0b545ef5f..f7bf5995b167 100644 --- a/packages/api/src/types.js +++ b/packages/api/src/types.js @@ -4,7 +4,6 @@ // @flow import type { InterfaceTypes } from '@polkadot/api-jsonrpc/types'; -import type { ProviderInterface$Emitted, ProviderInterface$EmitCb } from '@polkadot/api-provider/types'; export type ApiInterface$Section$Method = { (...params: Array): Promise; @@ -16,6 +15,5 @@ export type ApiInterface$Section = { }; export type ApiInterface = { - on: (type: ProviderInterface$Emitted, callback: ProviderInterface$EmitCb) => void, [InterfaceTypes]: ApiInterface$Section }