Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MixedDeclarationOption

Hierarchy

Index

Properties

Methods

Properties

Optional defaultValue

defaultValue: unknown

If not specified defaults to undefined.

help

help: string

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

name

name: string

The option name.

type

type: Mixed

The parameter type, used to convert user configuration values into the expected type. If not set, the type will be a string.

Methods

Optional validate

  • validate(value: unknown): void
  • An optional validation function that validates a potential value of this option. The function must throw an Error if the validation fails and should do nothing otherwise.

    Parameters

    • value: unknown

    Returns void

Generated using TypeDoc