From c98cc8e4998ace2cc935209e6187283cbd20a0b1 Mon Sep 17 00:00:00 2001 From: getlarge Date: Wed, 10 Mar 2021 13:58:38 +0100 Subject: [PATCH] fix: makeoutput input type --- types/transaction.d.ts | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/types/transaction.d.ts b/types/transaction.d.ts index 752cc3c..a3681dd 100644 --- a/types/transaction.d.ts +++ b/types/transaction.d.ts @@ -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( - condition: JSONConditions[T], + condition: + | PreimageSha256JSONCondition + | ThresholdSha256JSONCondition + | Ed25519Sha256JSONCondition, amount: string = '1' ): TransactionOutput;