|
6 | 6 | import type { Observable, OperatorFunction } from 'rxjs'; |
7 | 7 | import type { Address, ApplyExtrinsicResult, Call, Extrinsic, ExtrinsicEra, ExtrinsicStatus, Hash, Header, Index, RuntimeDispatchInfo } from '@polkadot/types/interfaces'; |
8 | 8 | import type { Callback, Codec, Constructor, IKeyringPair, ISubmittableResult, Registry, SignatureOptions } from '@polkadot/types/types'; |
9 | | -import type { ApiInterfaceRx, ApiTypes, SignerResult } from '../types'; |
10 | | -import type { AddressOrPair, SignerOptions, SubmittableDryRunResult, SubmittableExtrinsic, SubmittablePaymentResult, SubmittableResultResult, SubmittableResultSubscription, SubmittableThis } from './types'; |
| 9 | +import type { ApiInterfaceRx, ApiTypes, PromiseOrObs, SignerResult } from '../types'; |
| 10 | +import type { AddressOrPair, SignerOptions, SubmittableDryRunResult, SubmittableExtrinsic, SubmittablePaymentResult, SubmittableResultResult, SubmittableResultSubscription } from './types'; |
11 | 11 |
|
12 | 12 | import { catchError, first, map, mapTo, mergeMap, of, switchMap, tap } from 'rxjs'; |
13 | 13 |
|
@@ -168,7 +168,7 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, decorate |
168 | 168 | /** |
169 | 169 | * @description Signs a transaction, returning `this` to allow chaining. E.g.: `sign(...).send()`. Like `.signAndSend` this will retrieve the nonce and blockHash to send the tx with. |
170 | 170 | */ |
171 | | - public signAsync (account: AddressOrPair, partialOptions?: Partial<SignerOptions>): SubmittableThis<ApiType, this> { |
| 171 | + public signAsync (account: AddressOrPair, partialOptions?: Partial<SignerOptions>): PromiseOrObs<ApiType, this> { |
172 | 172 | // eslint-disable-next-line @typescript-eslint/no-unsafe-return,@typescript-eslint/no-unsafe-call |
173 | 173 | return decorateMethod( |
174 | 174 | (): Observable<this> => |
|
0 commit comments