Files
97f41556d4 chore: Upgrade TypeScript to 7.0.1-rc (#13144)
- 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]>
2026-07-01 19:57:38 +00:00

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
});