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

22 lines
366 B
TypeScript
Raw Normal View History

import type { IRoom } from '../../IRoom';
import type { IUser } from '../../IUser';
export type DmEndpoints = {
'dm.create': {
POST: (
params: (
| {
username: Exclude<IUser['username'], undefined>;
}
| {
usernames: string;
}
) & {
excludeSelf?: boolean;
}
) => {
room: IRoom & { rid: IRoom['_id'] };
};
};
};