fix(Operation): default to wide type

This commit is contained in:
Kalvis Kalniņš
2019-01-07 15:19:19 +02:00
parent 1f4c27d940
commit 62448ddf78
+1 -1
View File
@@ -311,7 +311,7 @@ export namespace StellarBase {
}
type SignerOptions = SignerEd25519PublicKeyOptions | SignerSha256HashOptions | SignerPreAuthTxOptions;
type SignerUnion = {ed25519PublicKey: any} | {sha256Hash: any} | {preAuthTx: any} | null;
interface SetOptions<T extends SignerUnion = never> extends Operation<OperationType.setOptions> {
interface SetOptions<T extends SignerUnion = SignerUnion> extends Operation<OperationType.setOptions> {
inflationDest?: string;
clearFlags?: AuthFlags;
setFlags?: AuthFlags;