diff options
| author | Shoubhit Dash <[email protected]> | 2026-04-15 04:45:25 +0530 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2026-04-14 20:55:39 -0400 |
| commit | fba752a5016a93ad7ea54890cf444de02a89a0f8 (patch) | |
| tree | f56a7f7705574fb418c7773e915dceafdcc51a1f /packages/server/src/types.ts | |
| parent | 87b2a9d749ac39f47ea2d9d6806e32f224fe8ba9 (diff) | |
| download | opencode-fba752a5016a93ad7ea54890cf444de02a89a0f8.tar.gz opencode-fba752a5016a93ad7ea54890cf444de02a89a0f8.zip | |
feat(server): extract question httpapi contract
Diffstat (limited to 'packages/server/src/types.ts')
| -rw-r--r-- | packages/server/src/types.ts | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/packages/server/src/types.ts b/packages/server/src/types.ts index 8d337be42..9e89fe74c 100644 --- a/packages/server/src/types.ts +++ b/packages/server/src/types.ts @@ -1,14 +1,5 @@ -export interface ServerApi { - readonly name: string - readonly groups: readonly string[] -} +import type { HttpApi, HttpApiGroup, OpenApi } from "effect/unstable/httpapi" -export interface OpenApiSpec { - readonly openapi: string - readonly info: { - readonly title: string - readonly version: string - readonly description: string - } - readonly paths: Record<string, never> -} +export type ServerApi = HttpApi.HttpApi<string, HttpApiGroup.Any> + +export type OpenApiSpec = OpenApi.OpenAPISpec |
