ReadConfigDirSourceOptions
Defined in: cli/datapad/src/read-config-dir-source/read-config-dir-source.type.ts:14
Options for fetching the area files of a config directory from a remote source.
Properties
Section titled “Properties”areas: readonly
string[]
Defined in: cli/datapad/src/read-config-dir-source/read-config-dir-source.type.ts:18
The closed list of area names to look for: ["notifications", "repo"] probes <dir>/notifications.* and <dir>/repo.*.
dir:
string
Defined in: cli/datapad/src/read-config-dir-source/read-config-dir-source.type.ts:16
The directory the areas live in, relative to the config: ".holocron".
extensions?
Section titled “extensions?”
optionalextensions?: readonlystring[]
Defined in: cli/datapad/src/read-config-dir-source/read-config-dir-source.type.ts:26
Override the extension probe order.
fetch: (
path) =>Promise<string|undefined>
Defined in: cli/datapad/src/read-config-dir-source/read-config-dir-source.type.ts:24
Fetches one file by relative path (.holocron/notifications.ts): its content, or undefined when it doesn’t
exist. Throw for anything else (a network failure, a permission error) — that propagates rather than reading
as “absent”.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<string | undefined>