()
| 65 | ` |
| 66 | |
| 67 | const clientMethodsFixture = () => `// Compares grouped client method derivation from 500 same-shaped endpoints. |
| 68 | ${imports({ client: true })} |
| 69 | |
| 70 | ${warmup} |
| 71 | |
| 72 | ${schemas} |
| 73 | |
| 74 | ${api(500)} |
| 75 | |
| 76 | type Client = HttpApiClient.ForApi<typeof api> |
| 77 | type Users = Client["users"] |
| 78 | type Methods = Users[keyof Users] |
| 79 | |
| 80 | ${assertions} |
| 81 | |
| 82 | export type HasUsersGroup = Assert<"users" extends keyof Client ? true : false> |
| 83 | export type HasLastEndpoint = Assert<"getUser0500" extends keyof Users ? true : false> |
| 84 | export type MethodsExist = Assert<IsNever<Methods> extends false ? true : false> |
| 85 | export type ClientMethodRequests = Parameters<Methods>[0] |
| 86 | export type ClientMethodResults = ReturnType<Methods> |
| 87 | ` |
| 88 | |
| 89 | const topLevelClientMethodsFixture = () => `// Compares top-level client method derivation from 500 same-shaped endpoints. |
| 90 | ${imports({ client: true })} |
no test coverage detected