@gear-js/react-hooks
Version:
React hooks used across Gear applications
12 lines (11 loc) • 586 B
TypeScript
import { DeriveStakingAccount } from '@polkadot/api-derive/types';
import { QueryParameters } from '../../../types';
type UseDeriveStakingAccountParameters<T> = QueryParameters<DeriveStakingAccount, T> & {
address: string | undefined;
watch?: boolean;
};
declare function useDeriveStakingAccount<T = DeriveStakingAccount>({ address, watch, query, }: UseDeriveStakingAccountParameters<T>): import('@tanstack/react-query').UseQueryResult<T, Error> & {
queryKey: (string | undefined)[];
};
export { useDeriveStakingAccount };
export type { UseDeriveStakingAccountParameters };