fix: api model
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import type { IRequestAdapter } from '~/interfaces/adapter'
|
import type { IRequestAdapter } from '~/interfaces/adapter'
|
||||||
import type { IController } from '~/interfaces/controller'
|
import type { IController } from '~/interfaces/controller'
|
||||||
import type { IRequestHandler } from '~/interfaces/request'
|
import type { IRequestHandler } from '~/interfaces/request'
|
||||||
import type { ActivityPresence } from '~/models/activity'
|
import type { ActivityPresence, RoomsData } from '~/models/activity'
|
||||||
import type { HTTPClient } from '../core'
|
import type { HTTPClient } from '../core'
|
||||||
|
|
||||||
import { autoBind } from '~/utils/auto-bind'
|
import { autoBind } from '~/utils/auto-bind'
|
||||||
@@ -84,6 +84,6 @@ export class ActivityController<ResponseWrapper> implements IController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getRoomsInfo() {
|
async getRoomsInfo() {
|
||||||
return this.proxy.rooms.get<{}>()
|
return this.proxy.rooms.get<RoomsData>()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user