mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-06-12 15:13:32 -07:00
10 lines
495 B
TypeScript
10 lines
495 B
TypeScript
import type { ConfigSettingsField, ConfigSettingsSnapshotValue } from '../types/settings';
|
|
|
|
export interface SettingsControlContext {
|
|
setFieldError(path: string, message: string | null): void;
|
|
resetDraftPath(path: string, defaultValue?: ConfigSettingsSnapshotValue): void;
|
|
updateDraft(path: string, value: ConfigSettingsSnapshotValue): void;
|
|
valueForField(field: ConfigSettingsField): ConfigSettingsSnapshotValue;
|
|
valueForPath(path: string): ConfigSettingsSnapshotValue | undefined;
|
|
}
|