Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MapDeclarationOption<T>

Type parameters

  • T

Hierarchy

Index

Properties

defaultValue

defaultValue: T

Unlike the rest of the option types, there is no sensible generic default for mapped option types. The default value for a mapped type must be specified.

help

help: string

The help text to be displayed to the user when --help is passed.

map

map: Map<string, T> | Record<string | number, T>

Maps a given value to the option type. The map type may be a TypeScript enum. In that case, when generating an error message for a mismatched key, the numeric keys will not be listed.

Optional mapError

mapError: undefined | string

Optional override for the error reported when an invalid key is provided.

name

name: string

The option name.

type

type: Map

Generated using TypeDoc