diff options
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 |
