src/module/excel/excel.dto.ts
Properties |
data |
Type : string
|
Decorators :
@IsString()
|
Defined in src/module/excel/excel.dto.ts:7
|
Optional options |
Type : ParseConfig<>
|
Decorators :
@IsOptional()
|
Defined in src/module/excel/excel.dto.ts:10
|
import { IsOptional, IsString } from 'class-validator';
import { ParseConfig } from 'papaparse';
import { IParseCsvDTO } from 'shared/model/CSV';
export class ParseCsvDTO implements IParseCsvDTO {
@IsString()
data!: string;
@IsOptional()
options?: ParseConfig<unknown>;
}