Function: fetchCsv() 
fetchCsv<
T>(url,schema,options?):Promise<StaticDecode<T>[]>
Fetch CSV from the URL and parse according to the given schema
Type Parameters 
| Type Parameter | 
|---|
| TextendsTCsvSchema | 
Parameters 
| Parameter | Type | Description | 
|---|---|---|
| url | string | URL to the CSV file | 
| schema | T | Output schema mapping of each row | 
| options? | FetchOptions | Fetch options FetchOptions | 
Returns 
Promise<StaticDecode<T>[]>
An array of objects corresponded to the table definition
Throws 
If fail to fetch or parse the schema
Example 
ts
const output = await fetchCsv('https://url-to/data.csv', schema);