mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-11-22 09:46:58 +01:00
fix: makeoutput input type
Signed-off-by: getlarge <ed@getlarge.eu>
This commit is contained in:
parent
71fe66c1f5
commit
d5fd300cfc
13
types/transaction.d.ts
vendored
13
types/transaction.d.ts
vendored
@ -4,11 +4,8 @@ import type {
|
|||||||
PreimageSha256,
|
PreimageSha256,
|
||||||
ThresholdSha256,
|
ThresholdSha256,
|
||||||
} from 'crypto-conditions';
|
} from 'crypto-conditions';
|
||||||
import { TypeId } from 'crypto-conditions/types/types';
|
|
||||||
import {
|
import {
|
||||||
Ed25519Sha256JSONCondition,
|
Ed25519Sha256JSONCondition,
|
||||||
JSONConditions,
|
|
||||||
JSONConditionUnion,
|
|
||||||
PreimageSha256JSONCondition,
|
PreimageSha256JSONCondition,
|
||||||
ThresholdSha256JSONCondition,
|
ThresholdSha256JSONCondition,
|
||||||
} from './utils/ccJsonify';
|
} from './utils/ccJsonify';
|
||||||
@ -166,12 +163,10 @@ export default class Transaction {
|
|||||||
): TransactionInput;
|
): TransactionInput;
|
||||||
|
|
||||||
static makeOutput(
|
static makeOutput(
|
||||||
condition: JSONConditionUnion,
|
condition:
|
||||||
amount: string = '1'
|
| PreimageSha256JSONCondition
|
||||||
): TransactionOutput;
|
| ThresholdSha256JSONCondition
|
||||||
|
| Ed25519Sha256JSONCondition,
|
||||||
static makeOutput<T = TypeId.Ed25519Sha256>(
|
|
||||||
condition: JSONConditions[T],
|
|
||||||
amount: string = '1'
|
amount: string = '1'
|
||||||
): TransactionOutput;
|
): TransactionOutput;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user