Add type asserition to Papa.parse data

Parsed data from Papa.parse does not utilize a generic
type and returns any[]. Adding an asserition will at least
error if there are changes to the type of FluxTable.data.
pull/10616/head
Delmer Reed 2018-06-20 15:18:07 -04:00
parent 4e42fdcc35
commit f591d72db2
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import uuid from 'uuid'
import {FluxTable} from 'src/types'
export const parseResponseError = (response: string): FluxTable[] => {
const {data} = Papa.parse(response.trim())
const data = Papa.parse(response.trim()).data as string[][]
return [
{