(count, options = {})
| 34 | type IsNever<T> = [T] extends [never] ? true : false` |
| 35 | |
| 36 | const api = (count, options = {}) => { |
| 37 | const groupIdentifier = options.groupIdentifier ?? "users" |
| 38 | const topLevel = options.topLevel === true ? ", { topLevel: true }" : "" |
| 39 | return `const api = HttpApi.make("Api").add( |
| 40 | HttpApiGroup.make("${groupIdentifier}"${topLevel}).add( |
| 41 | ${endpoints(count)} |
| 42 | ) |
| 43 | )` |
| 44 | } |
| 45 | |
| 46 | const endpointDeclarationFixture = (count) => `// Compares endpoint declaration for ${count} same-shaped endpoints. |
| 47 | ${imports()} |
no test coverage detected