Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/api-derive/staking/util.ts>combineEras

Package publishing for deno.land/x/polkadot
Go to Latest
function combineEras
import { combineEras } from "https://deno.land/x/polkadot@0.2.12/api-derive/staking/util.ts";

Type Parameters

F extends "_eraExposure" | "_eraPrefs" | "_eraSlashes"

Returns

(instanceId: string, api: DeriveApi) => (eras: EraIndex[], withActive: boolean) => Observable<ObsInnerType<ApplyReturn<F>>[]>