(options: {
readonly identifier: Id
readonly topLevel: TopLevel
readonly endpoints: Record.ReadonlyRecord<string, HttpApiEndpoint.Constraint>
readonly annotations: Context.Context<never>
})
| 364 | }) |
| 365 | |
| 366 | const makeProto = < |
| 367 | Id extends string, |
| 368 | Endpoints extends HttpApiEndpoint.Constraint, |
| 369 | TopLevel extends (true | false) |
| 370 | >(options: { |
| 371 | readonly identifier: Id |
| 372 | readonly topLevel: TopLevel |
| 373 | readonly endpoints: Record.ReadonlyRecord<string, HttpApiEndpoint.Constraint> |
| 374 | readonly annotations: Context.Context<never> |
| 375 | }): HttpApiGroup<Id, Endpoints, TopLevel> => { |
| 376 | function HttpApiGroup() {} |
| 377 | Object.setPrototypeOf(HttpApiGroup, Proto) |
| 378 | HttpApiGroup.key = `effect/httpapi/HttpApiGroup/${options.identifier}` |
| 379 | return Object.assign(HttpApiGroup, options) as any |
| 380 | } |
| 381 | |
| 382 | /** |
| 383 | * Creates an empty `HttpApiGroup` with the supplied identifier. |
no test coverage detected