@enre/pop-runtypes
Version:
runtypes for validating data using simple-runtypes
54 lines (53 loc) • 1.38 kB
TypeScript
import * as st from "simple-runtypes";
export declare const CommentRuntype: {
postAuthorUid: st.Runtype<string>;
authorId: st.Runtype<string>;
createdAt: st.Runtype<Date>;
commentBody: st.Runtype<string>;
parentComment: st.OptionalRuntype<{
commentId: string;
authorUid: string;
}>;
authorDisplayName: st.Runtype<string>;
postId: st.Runtype<string>;
id: st.Runtype<string>;
};
export declare const CommentRuntypeRecord: st.Runtype<{
id: string;
commentBody: string;
authorDisplayName: string;
postId: string;
createdAt: Date;
postAuthorUid: string;
authorId: string;
parentComment?: {
commentId: string;
authorUid: string;
} | undefined;
}>;
export declare const CommentRuntypeSloppy: st.Runtype<{
id: string;
commentBody: string;
authorDisplayName: string;
postId: string;
createdAt: Date;
postAuthorUid: string;
authorId: string;
parentComment?: {
commentId: string;
authorUid: string;
} | undefined;
}>;
export declare const CommentArrayRuntype: st.Runtype<{
id: string;
commentBody: string;
authorDisplayName: string;
postId: string;
createdAt: Date;
postAuthorUid: string;
authorId: string;
parentComment?: {
commentId: string;
authorUid: string;
} | undefined;
}[]>;