From 97d87fabb42344e0836bcc883ca494b20a807096 Mon Sep 17 00:00:00 2001 From: Stefan Adolf Date: Tue, 23 Jun 2020 22:31:17 +0200 Subject: [PATCH] replaced boolean "values" with types in d.ts changed "default" values to type defs. --- packages/web3-eth/types/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/web3-eth/types/index.d.ts b/packages/web3-eth/types/index.d.ts index 26dc569242e..c018c2dbcac 100644 --- a/packages/web3-eth/types/index.d.ts +++ b/packages/web3-eth/types/index.d.ts @@ -211,7 +211,7 @@ export class Eth { getBlock(blockHashOrBlockNumber: BlockNumber | string): Promise; getBlock( blockHashOrBlockNumber: BlockNumber | string, - returnTransactionObjects: true + returnTransactionObjects: boolean ): Promise; getBlock( blockHashOrBlockNumber: BlockNumber | string, @@ -219,7 +219,7 @@ export class Eth { ): Promise; getBlock( blockHashOrBlockNumber: BlockNumber | string, - returnTransactionObjects: true, + returnTransactionObjects: boolean, callback?: (error: Error, block: BlockTransactionObject) => void ): Promise; @@ -240,7 +240,7 @@ export class Eth { getUncle( blockHashOrBlockNumber: BlockNumber | string, uncleIndex: number | string | BN, - returnTransactionObjects: true + returnTransactionObjects: boolean ): Promise; getUncle( blockHashOrBlockNumber: BlockNumber | string, @@ -250,7 +250,7 @@ export class Eth { getUncle( blockHashOrBlockNumber: BlockNumber | string, uncleIndex: number | string | BN, - returnTransactionObjects: true, + returnTransactionObjects: boolean, callback?: (error: Error, uncle: any) => void ): Promise;