takt/src/infra/config/resolvedConfig.ts
2026-03-04 14:16:12 +09:00

18 lines
843 B
TypeScript

import type { PersistedGlobalConfig } from '../../core/models/persisted-global-config.js';
import type { ProjectLocalConfig } from './types.js';
import type { MigratedProjectLocalConfigKey } from './migratedProjectLocalKeys.js';
export interface LoadedConfig
extends PersistedGlobalConfig,
Pick<ProjectLocalConfig, MigratedProjectLocalConfigKey> {
piece?: string;
logLevel: NonNullable<ProjectLocalConfig['logLevel']>;
minimalOutput: NonNullable<ProjectLocalConfig['minimalOutput']>;
verbose: NonNullable<ProjectLocalConfig['verbose']>;
concurrency: NonNullable<ProjectLocalConfig['concurrency']>;
taskPollIntervalMs: NonNullable<ProjectLocalConfig['taskPollIntervalMs']>;
interactivePreviewMovements: NonNullable<ProjectLocalConfig['interactivePreviewMovements']>;
}
export type ConfigParameterKey = keyof LoadedConfig;