mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-30 18:12:08 -07:00
feat(core): add Electron runtime, services, and app composition
This commit is contained in:
19
src/config/warnings.ts
Normal file
19
src/config/warnings.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { ConfigValidationWarning } from '../types';
|
||||
|
||||
export interface WarningCollector {
|
||||
warnings: ConfigValidationWarning[];
|
||||
warn(path: string, value: unknown, fallback: unknown, message: string): void;
|
||||
}
|
||||
|
||||
export function createWarningCollector(): WarningCollector {
|
||||
const warnings: ConfigValidationWarning[] = [];
|
||||
const warn = (path: string, value: unknown, fallback: unknown, message: string): void => {
|
||||
warnings.push({
|
||||
path,
|
||||
value,
|
||||
fallback,
|
||||
message,
|
||||
});
|
||||
};
|
||||
return { warnings, warn };
|
||||
}
|
||||
Reference in New Issue
Block a user