Options
All
  • Public
  • Public/Protected
  • All
Menu

Data loading code that Jest cannot handle (due to ESM modules, etc.)

Index

Interfaces

Functions

Functions

Const loadData

  • loadData(url: string): Promise<ItemType<"scenario">[]>
  • Load the model data.

    Parameters

    • url: string

      URL to an index file

    Returns Promise<ItemType<"scenario">[]>

    a list of Scenario objects

loadFrom

  • loadFrom(url: string | Promise<string>, src: string, type: Type | "index"): Promise<DSVRowArray>
  • loadFrom(request: Requested | Promise<Requested>, src: string, type: Type | "index"): Promise<DSVRowArray>
  • Load data from the specified URL.

    Parameters

    • url: string | Promise<string>

      URL to load the data from

    • src: string
    • type: Type | "index"

    Returns Promise<DSVRowArray>

  • Parameters

    Returns Promise<DSVRowArray>

Const parse

  • parse(text: string): DSVRowArray<string>
  • Parameters

    • text: string

    Returns DSVRowArray<string>

Generated using TypeDoc