1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2024-11-22 01:36:56 +01:00

fix: makeoutput input type

Signed-off-by: getlarge <ed@getlarge.eu>
This commit is contained in:
getlarge 2021-03-10 13:58:38 +01:00
parent 71fe66c1f5
commit d5fd300cfc
No known key found for this signature in database
GPG Key ID: E4E13243600F9566

View File

@ -4,11 +4,8 @@ import type {
PreimageSha256,
ThresholdSha256,
} from 'crypto-conditions';
import { TypeId } from 'crypto-conditions/types/types';
import {
Ed25519Sha256JSONCondition,
JSONConditions,
JSONConditionUnion,
PreimageSha256JSONCondition,
ThresholdSha256JSONCondition,
} from './utils/ccJsonify';
@ -166,12 +163,10 @@ export default class Transaction {
): TransactionInput;
static makeOutput(
condition: JSONConditionUnion,
amount: string = '1'
): TransactionOutput;
static makeOutput<T = TypeId.Ed25519Sha256>(
condition: JSONConditions[T],
condition:
| PreimageSha256JSONCondition
| ThresholdSha256JSONCondition
| Ed25519Sha256JSONCondition,
amount: string = '1'
): TransactionOutput;