// Copyright 2017-2021 @polkadot/api-derive authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { ApiInterfaceRx } from '@polkadot/api/types'; import type { Observable } from '@polkadot/x-rxjs'; import type { DeriveCollectiveProposal } from '../types'; import { proposals as collectiveProposals } from '../collective'; import { memo } from '../util'; export function proposals (instanceId: string, api: ApiInterfaceRx): () => Observable { return memo(instanceId, collectiveProposals(instanceId, api, 'technicalCommittee')); }