ngx-papaparse
Advanced tools
Comparing version 6.0.1 to 6.0.2
import { ParseResult } from './parse-result'; | ||
export interface PapaParseParser { | ||
abort: () => ParseResult; | ||
export interface PapaParseParser<T = any> { | ||
abort: () => ParseResult<T>; | ||
aborted: () => boolean; | ||
parse: (csv: string | Blob, baseIndex: number, ignoreLastRow: boolean) => ParseResult; | ||
parse: (csv: string | Blob, baseIndex: number, ignoreLastRow: boolean) => ParseResult<T>; | ||
pause: () => void; | ||
@@ -7,0 +7,0 @@ paused: () => boolean; |
import { ParseMeta } from './parse-meta'; | ||
import { ParseError } from './parse-error'; | ||
export interface ParseResult { | ||
data: any; | ||
export interface ParseResult<T = any> { | ||
data: T; | ||
errors: ParseError[]; | ||
meta: ParseMeta; | ||
} |
@@ -6,3 +6,3 @@ import { ParseResult } from './interfaces/parse-result'; | ||
import * as i0 from "@angular/core"; | ||
export declare class Papa { | ||
export declare class Papa<T = any> { | ||
_papa: any; | ||
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
parse(csv: string | Blob, config?: ParseConfig): ParseResult; | ||
parse(csv: string | Blob, config?: ParseConfig): ParseResult<T>; | ||
/** | ||
@@ -51,4 +51,4 @@ * Convert an array into CSV | ||
get workersSupported(): boolean; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<Papa, never>; | ||
static ɵprov: i0.ɵɵInjectableDeclaration<Papa>; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<Papa<any>, never>; | ||
static ɵprov: i0.ɵɵInjectableDeclaration<Papa<any>>; | ||
} |
{ | ||
"name": "ngx-papaparse", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"description": "Papa Parse wrapper for Angular. Fast parser-library for CSV to JSON and vice versa, with built in support for background-workers.", | ||
@@ -5,0 +5,0 @@ "author": "Albert Haff <ahn@haffdata.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
54370