UNPKG

@enre/pop-runtypes

Version:

runtypes for validating data using simple-runtypes

18 lines (17 loc) 617 B
import * as st from "simple-runtypes"; export declare const ValidPostTypemap: { postTitle: st.OptionalRuntype<string | null>; requiresPremium: st.OptionalRuntype<boolean | null>; description: st.OptionalRuntype<string | null>; minClientVersion: st.Runtype<string>; createdAt: st.Runtype<Date>; authorId: st.Runtype<string>; }; export declare const ValidPostSloppy: st.Runtype<{ createdAt: Date; authorId: string; minClientVersion: string; description?: string | null | undefined; postTitle?: string | null | undefined; requiresPremium?: boolean | null | undefined; }>;