@enre/pop-runtypes
Version:
runtypes for validating data using simple-runtypes
23 lines (22 loc) • 623 B
TypeScript
import * as st from "simple-runtypes";
export declare const AddCommentRequestDefinition: {
commentBody: st.Runtype<string>;
parentComment: st.OptionalRuntype<{
commentId: string;
authorUid: string;
}>;
authorDisplayName: st.Runtype<string>;
postId: st.Runtype<string>;
};
export declare const AddCommentRequestSloppy: st.Runtype<{
commentBody: string;
authorDisplayName: string;
postId: string;
parentComment?: {
commentId: string;
authorUid: string;
} | undefined;
}>;
export declare const AddCommentResponse: {
commentId: st.Runtype<string>;
};