mirror of
https://github.com/hanzoai/turborepo.git
synced 2026-10-30 19:44:51 +00:00
- Bump `typescript` from 5.5.4 to 7.0.1-rc in all workspace packages and the root - Change `moduleResolution: "node"` to `"nodenext"` in `packages/tsconfig/base.json` and root `tsconfig.json` (node/node10 are removed in TS7) - Remove `baseUrl` from root `tsconfig.json` and `apps/docs/tsconfig.json` (baseUrl is removed in TS7; paths works without it since TS5) --------- Co-authored-by: Hanzo Dev <[email protected]>
16 lines
343 B
TypeScript
16 lines
343 B
TypeScript
import { createOpenAPI } from "fumadocs-openapi/server";
|
|
import spec from "./remote-cache-openapi.json";
|
|
|
|
type OpenApiInput = NonNullable<
|
|
Parameters<typeof createOpenAPI>[0]
|
|
>["input"] extends () => infer R
|
|
? R
|
|
: never;
|
|
|
|
export const openapi = createOpenAPI({
|
|
input: () =>
|
|
({
|
|
"remote-cache": spec
|
|
}) as OpenApiInput
|
|
});
|