somod-chat-service
Version:
Serverless Chat Service from SOMOD
10 lines (9 loc) • 371 B
TypeScript
import { Message, MessageInput } from "./types";
export declare const putMessage: (tableName: string, userId: string, message: Omit<Message, "seqNo">) => Promise<Message>;
export declare const validateIncomingMessage: (message: MessageInput, userId: string) => Promise<{
statusCode: number;
headers: {
"Content-Type": string;
};
body: string;
}>;