verdnatura-chat/app/definitions/rest/v1/dm.ts

22 lines
366 B
TypeScript
Raw Normal View History

2022-02-28 18:00:47 +00:00
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'] };
};
};
};