Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

LoadConfigSource

interface LoadConfigSource <T = any> {
extensions?: string[];
files: Arrayable<string>;
parser?: BuiltinParsers | CustomParser<T> | "auto";
rewrite?: <F = any>(obj: F, filepath: string) => Promise<T | undefined> | T | undefined;
skipOnError?: boolean;
transform?: (code: string, filepath: string) => Promise<string | undefined> | string | undefined;
}

§Type Parameters

§
T = any
[src]

§Properties

§
extensions?: string[]
[src]
§
files: Arrayable<string>
[src]
§
parser?: BuiltinParsers | CustomParser<T> | "auto"
[src]

Loader for loading config,

§
rewrite?: <F = any>(obj: F, filepath: string) => Promise<T | undefined> | T | undefined
[src]

Rewrite the config object, return nullish value to bypassing loading the file

§
skipOnError?: boolean
[src]

Skip this source if error occurred on loading

§
transform?: (code: string, filepath: string) => Promise<string | undefined> | string | undefined
[src]

Transform the source code before loading, return nullish value to skip transformation