method api.ScProvider.prototype.onimport { api } from "https://dotland.deno.dev/x/polkadot@0.2.23/mod.ts"; const { ScProvider } = api; on(type: ProviderInterfaceEmitted, sub: ProviderInterfaceEmitCb): () => voidParameterstype: ProviderInterfaceEmittedsub: ProviderInterfaceEmitCbReturns() => void