PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@polkadot/api-derive/cjs/elections
Просмотр файла: info.d.ts
import type { Observable } from 'rxjs';
import type { DeriveApi } from '../types.js';
import type { DeriveElectionsInfo } from './types.js';
/**
* @name info
* @returns An object containing the combined results of the storage queries for
* all relevant election module properties.
* @example
* <BR>
*
* ```javascript
* api.derive.elections.info(({ members, candidates }) => {
* console.log(`There are currently ${members.length} council members and ${candidates.length} prospective council candidates.`);
* });
* ```
*/
export declare function info(instanceId: string, api: DeriveApi): () => Observable<DeriveElectionsInfo>;
Выполнить команду
Для локальной разработки. Не используйте в интернете!