starboard: localized timestamps; add link to original message again
This commit is contained in:
parent
c7103ac432
commit
5ab6f59593
2 changed files with 7 additions and 2 deletions
|
@ -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}>`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue