(count)
| 44 | } |
| 45 | |
| 46 | const endpointDeclarationFixture = (count) => `// Compares endpoint declaration for ${count} same-shaped endpoints. |
| 47 | ${imports()} |
| 48 | |
| 49 | ${warmup} |
| 50 | |
| 51 | ${schemas} |
| 52 | |
| 53 | ${api(count)} |
| 54 | |
| 55 | type Groups = typeof api extends HttpApi.HttpApi<string, infer Groups> ? Groups : never |
| 56 | type EndpointUnion = HttpApiGroup.Endpoints<Groups> |
| 57 | |
| 58 | ${assertions} |
| 59 | |
| 60 | export type Api = typeof api |
| 61 | export type EndpointsExist = Assert<IsNever<EndpointUnion> extends false ? true : false> |
| 62 | export type EndpointRequests = HttpApiEndpoint.Request<EndpointUnion> |
| 63 | export type ServerServices = HttpApiEndpoint.ServerServices<EndpointUnion> |
| 64 | export type ClientServices = HttpApiEndpoint.ClientServices<EndpointUnion> |
| 65 | ` |
| 66 | |
| 67 | const clientMethodsFixture = () => `// Compares grouped client method derivation from 500 same-shaped endpoints. |
| 68 | ${imports({ client: true })} |
no test coverage detected