fix: typing

This commit is contained in:
hyper 2026-03-31 14:25:38 +08:00
parent c41ff44708
commit 3a6f57ef6f
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ interface PropertyConfig {
export default function csvLoader( export default function csvLoader(
this: LoaderContext<CsvLoaderOptions>, this: LoaderContext<CsvLoaderOptions>,
content: string content: string
): string { ): string | Buffer {
const options = this.getOptions() || {}; const options = this.getOptions() || {};
const delimiter = options.delimiter ?? ','; const delimiter = options.delimiter ?? ',';
const quote = options.quote ?? '"'; const quote = options.quote ?? '"';