Add repeat options for scheduled posts

This commit is contained in:
Dragory 2019-12-01 23:23:34 +02:00
parent 646156344a
commit 2ff65e89fd
7 changed files with 320 additions and 113 deletions

View file

@ -47,6 +47,7 @@ export const SECONDS = 1000 * MS;
export const MINUTES = 60 * SECONDS;
export const HOURS = 60 * MINUTES;
export const DAYS = 24 * HOURS;
export const WEEKS = 7 * 24 * HOURS;
export function tNullable<T extends t.Type<any, any>>(type: T) {
return t.union([type, t.undefined, t.null], `Nullable<${type.name}>`);