mirror of
https://github.com/morluto/rea.git
synced 2026-12-06 14:59:05 +00:00
refactor(setup): reuse client layer location fields (#17100)
This commit is contained in:
1 parent
40109b81c8
commit
fea4f9db56
1 file changed
+4
-11
@@ -219,19 +219,12 @@ export interface ClientSystemPaths {
|
||||
* A user-scope location decided by which configuration layers exist, which
|
||||
* only an asynchronous probe can observe.
|
||||
*/
|
||||
export interface ClientLayeredLocation {
|
||||
readonly configPath: string;
|
||||
export interface ClientLayeredLocation extends Pick<
|
||||
SetupClient,
|
||||
"configPath" | "inlineConfiguration" | "readUpperLayers" | "readOnlyFiles"
|
||||
> {
|
||||
/** Every file layer in load order, including `configPath`. */
|
||||
readonly configPaths: readonly string[];
|
||||
readonly inlineConfiguration?: ClientInlineConfiguration;
|
||||
/** Reads file-backed upper layers again, since they can change after selection. */
|
||||
readonly readUpperLayers?: (
|
||||
resources?: ArtifactResourceScope,
|
||||
) => Promise<
|
||||
Result<ClientInlineConfiguration | undefined, ClientPathFailure>
|
||||
>;
|
||||
/** Files no write target may reach, whether or not they exist yet. */
|
||||
readonly readOnlyFiles?: readonly string[];
|
||||
}
|
||||
|
||||
/** One resolved configuration location and its detection evidence. */
|
||||
|
||||
Reference in new issue
Block a user