@enre/pop-runtypes
Version:
runtypes for validating data using simple-runtypes
52 lines (51 loc) • 1.61 kB
TypeScript
import * as st from "simple-runtypes";
export declare const AddChatMessageRequestTypemap: {
post: st.OptionalRuntype<{
postId: string;
postTitle?: string | null | undefined;
hidePostLink?: boolean | null | undefined;
}>;
parentMessage: st.OptionalRuntype<{
id: string;
authorDisplayName: string;
createdAt: Date;
authorId: string;
messageBody: string;
isBlocked?: boolean | undefined;
post?: {
postId: string;
postTitle?: string | null | undefined;
hidePostLink?: boolean | null | undefined;
} | undefined;
authorPhotoUrl?: string | undefined;
}>;
authorDisplayName: st.Runtype<string>;
messageBody: st.Runtype<string>;
channelId: st.Runtype<string>;
chatOwnerId: st.Runtype<string>;
};
export declare const AddChatMessageRequestSloppy: st.Runtype<{
authorDisplayName: string;
messageBody: string;
channelId: string;
chatOwnerId: string;
post?: {
postId: string;
postTitle?: string | null | undefined;
hidePostLink?: boolean | null | undefined;
} | undefined;
parentMessage?: {
id: string;
authorDisplayName: string;
createdAt: Date;
authorId: string;
messageBody: string;
isBlocked?: boolean | undefined;
post?: {
postId: string;
postTitle?: string | null | undefined;
hidePostLink?: boolean | null | undefined;
} | undefined;
authorPhotoUrl?: string | undefined;
} | undefined;
}>;