Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Utils

Index

Type aliases

ArgType<T>: Result<T, possibleOutput>

Wrapper type taking Ok(T) or Err(possibleOutput) e.g Result<T, possibleOutput

Type parameters

  • T

Functions

  • parseBool(arg: string, onFailure?: possibleOutput<string>, regexes?: { noRegex: RegExp; yesRegex: RegExp }): ArgType<boolean>
  • toArr(arg: string, sep?: string): ArgType<string[]>

Generated using TypeDoc