fix: typing
This commit is contained in:
parent
c41ff44708
commit
3a6f57ef6f
|
|
@ -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 ?? '"';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue