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
parent
4e42fdcc35
commit
f591d72db2
|
@ -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 [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue