14 lines
370 B
TypeScript
14 lines
370 B
TypeScript
import { LoaderContext } from '@rspack/core';
|
|
|
|
interface CsvLoaderOptions {
|
|
delimiter?: string;
|
|
quote?: string;
|
|
escape?: string;
|
|
bom?: boolean;
|
|
comment?: string | false;
|
|
trim?: boolean;
|
|
}
|
|
declare function csvLoader(this: LoaderContext<CsvLoaderOptions>, content: string): string | Buffer;
|
|
|
|
export { type CsvLoaderOptions, csvLoader as default };
|