simple-task-master
Version:
A simple command-line task management tool
33 lines • 976 B
TypeScript
/**
* Schema validation for Simple Task Master
*/
import { isTask, isConfig, isLockFile, type Task, type Config, type LockFile } from './types';
export { isTask, isConfig, isLockFile };
/**
* Current schema version
*/
export declare const CURRENT_SCHEMA_VERSION = 1;
/**
* Error thrown when schema validation fails
*/
export declare class SchemaValidationError extends Error {
readonly field?: string | undefined;
constructor(message: string, field?: string | undefined);
}
/**
* Validates a Task object against the schema
*/
export declare function validateTask(obj: unknown): Task;
/**
* Validates a Config object against the schema
*/
export declare function validateConfig(obj: unknown): Config;
/**
* Validates a LockFile object against the schema
*/
export declare function validateLockFile(obj: unknown): LockFile;
/**
* Creates a default Config object
*/
export declare function createDefaultConfig(): Config;
//# sourceMappingURL=schema.d.ts.map