@enre/pop-runtypes
Version:
runtypes for validating data using simple-runtypes
102 lines (101 loc) • 3.19 kB
TypeScript
import * as st from "simple-runtypes";
export declare const ChatMessageTypemap: {
isBlocked: st.OptionalRuntype<boolean>;
post: st.OptionalRuntype<{
postId: string;
postTitle?: string | null | undefined;
hidePostLink?: boolean | null | undefined;
}>;
authorPhotoUrl: st.OptionalRuntype<string>;
authorDisplayName: st.Runtype<string>;
createdAt: st.Runtype<Date>;
messageBody: st.Runtype<string>;
authorId: st.Runtype<string>;
id: st.Runtype<string>;
};
export declare const HasOptionalParentMessage: {
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;
}>;
};
export declare const ChatMessageWithParentTypemap: {
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;
}>;
isBlocked: st.OptionalRuntype<boolean>;
post: st.OptionalRuntype<{
postId: string;
postTitle?: string | null | undefined;
hidePostLink?: boolean | null | undefined;
}>;
authorPhotoUrl: st.OptionalRuntype<string>;
authorDisplayName: st.Runtype<string>;
createdAt: st.Runtype<Date>;
messageBody: st.Runtype<string>;
authorId: st.Runtype<string>;
id: st.Runtype<string>;
};
export declare const ChatMessageSloppy: st.Runtype<{
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;
}>;
export declare const ChatMessageWithParentSloppy: st.Runtype<{
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;
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;
}>;