3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-11 04:45:02 +00:00

starboard: localized timestamps; add link to original message again

This commit is contained in:
Dragory 2019-12-02 01:11:40 +02:00
parent c7103ac432
commit 5ab6f59593
2 changed files with 7 additions and 2 deletions

View file

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