Chore: Migrate REST API - getUsernameSuggestion to Typescript (#3872)
This commit is contained in:
parent
61b8f3e40a
commit
4dc43313ab
|
@ -43,6 +43,9 @@ export type UsersEndpoints = {
|
|||
user: IUser;
|
||||
};
|
||||
};
|
||||
'users.getUsernameSuggestion': {
|
||||
GET: () => { result: string };
|
||||
};
|
||||
'users.resetAvatar': {
|
||||
POST: (params: { userId: string }) => {};
|
||||
};
|
||||
|
|
|
@ -586,10 +586,8 @@ export const setAvatarFromService = ({
|
|||
// RC 0.51.0
|
||||
sdk.methodCallWrapper('setAvatarFromService', data, contentType, service);
|
||||
|
||||
export const getUsernameSuggestion = (): any =>
|
||||
export const getUsernameSuggestion = () =>
|
||||
// RC 0.65.0
|
||||
// TODO: missing definitions from server
|
||||
// @ts-ignore
|
||||
sdk.get('users.getUsernameSuggestion');
|
||||
|
||||
export const getFiles = (roomId: string, type: RoomTypes, offset: number): any =>
|
||||
|
|
Loading…
Reference in New Issue