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

x/polkadot/api-derive/collective/helpers.ts>withSection

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

Type Parameters

T
F extends (...args: any[]) => Observable<T>

Parameters

section: Collective
fn: (
query: DeriveApi["query"]["council"],
api: DeriveApi,
instanceId: string,
) => F

Returns

(instanceId: string, api: DeriveApi) => F