UNPKG

simple-task-master

Version:
33 lines 976 B
/** * 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