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
Returns DsvXhr<object>
-
Parameters
-
url: string
-
callback: function
-
- (error: any, rows: object[]): void
-
Parameters
-
error: any
-
rows: object[]
Returns void
Returns DsvXhr<object>
-
Parameters
Returns DsvXhr<object>
-
Type parameters
Parameters
-
url: string
-
accessor: function
-
callback: function
-
Type parameters
Parameters
-
url: string
-
accessor: function
-
callback: function
-
- (error: any, rows: T[]): void
-
Type parameters
Parameters
-
url: string
-
accessor: function
Methods
format
- format(rows: Object[]): string
-
Parameters
Returns string
formatRows
- formatRows(rows: string[]): string
-
Parameters
Returns string
parse
- parse(string: string): object[]
- parse<T>(string: string, accessor: function): T[]
-
Parameters
Returns object[]
-
Type parameters
Parameters
-
string: string
-
accessor: function
-
- (row: object, index: number): T
-
Parameters
-
row: object
-
index: number
Returns T
Returns T[]
parseRows
- parseRows(string: string): string[]
- parseRows<T>(string: string, accessor: function): T[]
-
Parameters
Returns string[]
-
Type parameters
Parameters
-
string: string
-
accessor: function
-
- (row: string[], index: number): T
-
Parameters
-
row: string[]
-
index: number
Returns T
Returns T[]