@nomiclabs/buidler > ArgumentType

Interface: ArgumentType

Provides an interface for every valid task argument type.

Type parameters

T

Hierarchy

ArgumentType

Index

Properties

Methods


Properties

name

● name: string

Defined in internal/core/params/argumentTypes.ts:14

Type's name.


Methods

parse

parse(argName: string, strValue: string): T

Defined in internal/core/params/argumentTypes.ts:26

Parses strValue. This function MUST throw BDLR301 if it can parse the given value.

throws: BDLR301 if an invalid value is given.

Parameters:

Name Type Description
argName string argument's name.
strValue string argument's value.

Returns: T the parsed value.