OpenAPI Paths, as prescribed by openapi-typescript
This is primarily used when using openapi-fetch to ensure type-safety.
Example:
const myApi = { ... } as const satisfies FastifyApi;type MyApiPaths = OpenApiPaths<typeof myApi>;const client = createClient<MyApiPaths>({ ... }); Copy
const myApi = { ... } as const satisfies FastifyApi;type MyApiPaths = OpenApiPaths<typeof myApi>;const client = createClient<MyApiPaths>({ ... });
OpenAPI Paths, as prescribed by openapi-typescript
This is primarily used when using openapi-fetch to ensure type-safety.
Example: