nextjs-rewrite (#5)
Reviewed-on: #5 Co-authored-by: David Gwilliam <dhgwilliam@gmail.com> Co-committed-by: David Gwilliam <dhgwilliam@gmail.com>
This commit was merged in pull request #5.
This commit is contained in:
Vendored
+29
@@ -0,0 +1,29 @@
|
||||
declare module "papaparse" {
|
||||
export interface ParseResult<T> {
|
||||
data: T[]
|
||||
errors: Array<{
|
||||
type: string
|
||||
code: string
|
||||
message: string
|
||||
row?: number
|
||||
}>
|
||||
meta: {
|
||||
delimiter: string
|
||||
linebreak: string
|
||||
aborted: boolean
|
||||
fields?: string[]
|
||||
truncated: boolean
|
||||
}
|
||||
}
|
||||
|
||||
export function parse<T = any>(
|
||||
input: string,
|
||||
config?: {
|
||||
header?: boolean
|
||||
skipEmptyLines?: boolean
|
||||
delimiter?: string
|
||||
}
|
||||
): ParseResult<T>
|
||||
}
|
||||
|
||||
export {}
|
||||
Reference in New Issue
Block a user