Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils"

Index

Type aliases

Functions

Type aliases

CSVRow

CSVRow: object

A CSV row.

Type declaration

  • [name: string]: string

TempFileFunction

TempFileFunction<TResult>: function

A function for 'tempFile()' function.

Type parameters

  • TResult: any

Type declaration

    • (file: string): TResult | PromiseLike<TResult>
    • Parameters

      • file: string

      Returns TResult | PromiseLike<TResult>

Functions

isNil

  • isNil(val: unknown): boolean
  • Checks if a value is (null) or (undefined).

    Parameters

    • val: unknown

      The value to check.

    Returns boolean

    Is (null) or (undefined).

readCSV

  • readCSV<TRow>(data: any): Promise<TRow[]>
  • Parses data as CSV.

    Type parameters

    • TRow: any

    Parameters

    • data: any

      The data to parse.

    Returns Promise<TRow[]>

    The promise with the rows.

tempFile

  • Invokes an action for a temp file.

    Type parameters

    • TResult: any

    Parameters

    Returns Promise<TResult>

    The promise with the result of the function.

Generated using TypeDoc