UNPKG

@tryloop/oats

Version:

🌾 OATS - OpenAPI TypeScript Sync. The missing link between your OpenAPI specs and TypeScript applications. Automatically watch, generate, and sync TypeScript clients from your API definitions.

38 lines • 910 B
/** * OATS Configuration TypeScript Support * * This module provides TypeScript support for OATS configuration files. * Users can create oats.config.ts files and import this for full type safety. * * @example * ```typescript * import { defineConfig } from '@tryloop/oats'; * * export default defineConfig({ * services: { * backend: { * path: '../backend', * startCommand: 'npm run dev', * port: 4000, * apiSpec: { * path: 'swagger.json' * } * }, * client: { * path: '../client', * packageName: '@mycompany/api-client' * } * } * }); * ``` */ /** * Define an OATS configuration with full TypeScript support * * @param config - OATS configuration object * @returns The same configuration object with type checking */ export function defineConfig(config) { return config; } //# sourceMappingURL=config.js.map