Rocket.Chat.ReactNative/app/definitions/rest/v1/user.ts

15 lines
271 B
TypeScript
Raw Normal View History

import { IUser } from '../../IUser';
export type UserEndpoints = {
'users.info': {
GET: (params: { userId: IUser['_id'] }) => {
user: IUser;
success: boolean;
};
POST: (params: { userId: IUser['_id'] }) => {
user: IUser;
success: boolean;
};
};
};