(
this: AnyWithProps,
api: AnyWithProps
)
| 132 | * @since 4.0.0 |
| 133 | */ |
| 134 | export interface Top extends HttpApi<string, HttpApiGroup.Top> {} |
| 135 | |
| 136 | const Proto = { |
| 137 | [TypeId]: TypeId, |
| 138 | pipe() { |
| 139 | return pipeArguments(this, arguments) |
| 140 | }, |
| 141 | add( |
| 142 | this: Top, |
| 143 | ...toAdd: NonEmptyReadonlyArray<HttpApiGroup.Top> |
| 144 | ) { |
| 145 | const groups = { ...this.groups } |
| 146 | for (const group of toAdd) { |
| 147 | InternalRecord.assignProperty(groups, group.identifier, group) |
| 148 | } |
| 149 | return makeProto({ |
| 150 | ...optionsFromApi(this), |
| 151 | groups |
| 152 | }) |