Components Interactions Examples Tutorials API FAQ
Options
Menu

Interface Dsv

Hierarchy

  • Dsv

Callable

  • __call(url: string, callback: function): DsvXhr<object>
  • __call(url: string, callback: function): DsvXhr<object>
  • __call(url: string): DsvXhr<object>
  • __call<T>(url: string, accessor: function, callback: function): DsvXhr<T>
  • __call<T>(url: string, accessor: function, callback: function): DsvXhr<T>
  • __call<T>(url: string, accessor: function): DsvXhr<T>
  • Parameters

    • url: string
    • callback: function
        • (rows: object[]): void
        • Parameters

          • rows: object[]
            • [key: string]: string

          Returns void

    Returns DsvXhr<object>

  • Parameters

    • url: string
    • callback: function
        • (error: any, rows: object[]): void
        • Parameters

          • error: any
          • rows: object[]
            • [key: string]: string

          Returns void

    Returns DsvXhr<object>

  • Parameters

    • url: string

    Returns DsvXhr<object>

  • Type parameters

    • T

    Parameters

    • url: string
    • accessor: function
        • (row: object): T
        • Parameters

          • row: object
            • [key: string]: string

          Returns T

    • callback: function
        • (rows: T[]): void
        • Parameters

          • rows: T[]

          Returns void

    Returns DsvXhr<T>

  • Type parameters

    • T

    Parameters

    • url: string
    • accessor: function
        • (row: object): T
        • Parameters

          • row: object
            • [key: string]: string

          Returns T

    • callback: function
        • (error: any, rows: T[]): void
        • Parameters

          • error: any
          • rows: T[]

          Returns void

    Returns DsvXhr<T>

  • Type parameters

    • T

    Parameters

    • url: string
    • accessor: function
        • (row: object): T
        • Parameters

          • row: object
            • [key: string]: string

          Returns T

    Returns DsvXhr<T>

Index

Methods

format

  • format(rows: Object[]): string

formatRows

  • formatRows(rows: string[]): string

parse

  • parse(string: string): object[]
  • parse<T>(string: string, accessor: function): T[]
  • Parameters

    • string: string

    Returns object[]

    • [key: string]: string
  • Type parameters

    • T

    Parameters

    • string: string
    • accessor: function
        • (row: object, index: number): T
        • Parameters

          • row: object
            • [key: string]: string
          • index: number

          Returns T

    Returns T[]

parseRows

  • parseRows(string: string): string[]
  • parseRows<T>(string: string, accessor: function): T[]
  • Parameters

    • string: string

    Returns string[]

  • Type parameters

    • T

    Parameters

    • string: string
    • accessor: function
        • (row: string[], index: number): T
        • Parameters

          • row: string[]
          • index: number

          Returns T

    Returns T[]

Generated using TypeDoc