UNPKG

@basictech/cli

Version:

Basic CLI for creating & managing your projects

28 lines 920 B
import type { Schema } from './types'; export interface SchemaFileResult { schema: Schema; projectId: string; filePath: string; } /** * Read schema from local config files * Supports basic.config.ts, basic.config.js, and basic.config.json */ export declare function readSchemaFromConfig(targetDir?: string): Promise<SchemaFileResult | null>; /** * Extract schema object from TypeScript/JavaScript code using proper parsing */ export declare function extractSchemaFromCode(content: string): Schema; /** * Save schema to config file */ export declare function saveSchemaToConfig(schema: Schema, targetDir?: string): Promise<string>; /** * Check if schema versions are different */ export declare function compareVersions(local: Schema, remote: Schema): { status: 'current' | 'ahead' | 'behind' | 'equal'; localVersion: number; remoteVersion: number; }; //# sourceMappingURL=schema.d.ts.map