Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Formatter

class Formatter {
constructor();
readonly formats: Formats;
 
_block(value: any, format: any): Block;
accessList(accessList: Array<any>): AccessList;
address(value: any): string;
bigNumber(value: any): BigNumber;
block(value: any): Block;
blockTag(blockTag: any): string;
blockWithTransactions(value: any): Block;
boolean(value: any): boolean;
callAddress(value: any): string;
contractAddress(value: any): string;
data(value: any, strict?: boolean): string;
difficulty(value: any): number;
filter(value: any): any;
filterLog(value: any): any;
getDefaultFormats(): Formats;
hash(value: any, strict?: boolean): string;
hex(value: any, strict?: boolean): string;
number(number: any): number;
receipt(value: any): TransactionReceipt;
receiptLog(value: any): any;
topics(value: any): any;
transaction(value: any): any;
transactionRequest(value: any): any;
transactionResponse(transaction: any): TransactionResponse;
type(number: any): number;
uint256(value: any): string;
 
static allowFalsish(format: FormatFunc, replaceValue: any): FormatFunc;
static allowNull(format: FormatFunc, nullValue?: any): FormatFunc;
static arrayOf(format: FormatFunc): FormatFunc;
static check(format: {
[name: string]: FormatFunc;
}
, object: any): any;
}

§Constructors

§
new Formatter()
[src]

§Properties

§
formats: Formats
[src]

§Methods

§
_block(value: any, format: any): Block
[src]
§
accessList(accessList: Array<any>): AccessList
[src]
§
address(value: any): string
[src]
§
bigNumber(value: any): BigNumber
[src]
§
block(value: any): Block
[src]
§
blockTag(blockTag: any): string
[src]
§
blockWithTransactions(value: any): Block
[src]
§
boolean(value: any): boolean
[src]
§
callAddress(value: any): string
[src]
§
contractAddress(value: any): string
[src]
§
data(value: any, strict?: boolean): string
[src]
§
difficulty(value: any): number
[src]
§
filter(value: any): any
[src]
§
filterLog(value: any): any
[src]
§
getDefaultFormats(): Formats
[src]
§
hash(value: any, strict?: boolean): string
[src]
§
hex(value: any, strict?: boolean): string
[src]
§
number(number: any): number
[src]
§
receipt(value: any): TransactionReceipt
[src]
§
receiptLog(value: any): any
[src]
§
topics(value: any): any
[src]
§
transaction(value: any): any
[src]
§
transactionRequest(value: any): any
[src]
§
transactionResponse(transaction: any): TransactionResponse
[src]
§
type(number: any): number
[src]
§
uint256(value: any): string
[src]

§Static Methods

§
allowFalsish(format: FormatFunc, replaceValue: any): FormatFunc
[src]
§
allowNull(format: FormatFunc, nullValue?: any): FormatFunc
[src]
§
arrayOf(format: FormatFunc): FormatFunc
[src]
§
check(format: {
[name: string]: FormatFunc;
}
, object: any): any
[src]